Files
compute-runtime/unit_tests/libult/create_tbx_sockets.cpp
Hoppe, Mateusz fe912704b8 Enhance AubTests with TBX server capability
- aub_tests started with "--tbx" option connects to TBX server
- CSR is created in dual mode: TBX + AUB to dump aub file
- with this enhancement it is possible to debug aub tests live

Change-Id: I0302f5f4bac4c293661a149f64888770dd49343c
2018-09-19 15:34:36 +02:00

20 lines
415 B
C++

/*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "runtime/tbx/tbx_sockets_imp.h"
#include "unit_tests/mocks/mock_tbx_sockets.h"
#include "unit_tests/tests_configuration.h"
namespace OCLRT {
TbxSockets *TbxSockets::create() {
if (testMode == TestMode::AubTestsWithTbx) {
return new TbxSocketsImp;
}
return new MockTbxSockets;
}
} // namespace OCLRT