compute-runtime/unit_tests/libult/create_tbx_sockets.cpp

20 lines
416 B
C++

/*
* Copyright (C) 2018-2019 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 NEO {
TbxSockets *TbxSockets::create() {
if (testMode == TestMode::AubTestsWithTbx) {
return new TbxSocketsImp;
}
return new MockTbxSockets;
}
} // namespace NEO