compute-runtime/opencl/test/unit_test/libult/create_tbx_sockets.cpp

21 lines
445 B
C++
Raw Normal View History

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