2018-01-19 17:00:51 +08:00
|
|
|
/*
|
2020-02-22 16:28:27 +08:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-01-19 17:00:51 +08:00
|
|
|
*
|
2018-09-19 07:45:45 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-01-19 17:00:51 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "unit_tests/mocks/mock_tbx_sockets.h"
|
2018-09-19 07:45:45 +08:00
|
|
|
#include "unit_tests/tests_configuration.h"
|
2018-01-19 17:00:51 +08:00
|
|
|
|
2020-02-22 16:28:27 +08:00
|
|
|
#include "tbx/tbx_sockets_imp.h"
|
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2018-01-19 17:00:51 +08:00
|
|
|
TbxSockets *TbxSockets::create() {
|
2018-09-19 07:45:45 +08:00
|
|
|
if (testMode == TestMode::AubTestsWithTbx) {
|
|
|
|
return new TbxSocketsImp;
|
|
|
|
}
|
2018-01-19 17:00:51 +08:00
|
|
|
return new MockTbxSockets;
|
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|