2018-01-19 17:00:51 +08:00
|
|
|
/*
|
2022-08-17 18:17:02 +08:00
|
|
|
* Copyright (C) 2018-2022 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
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-10-16 18:10:52 +08:00
|
|
|
#include "shared/source/tbx/tbx_sockets_imp.h"
|
2021-05-21 18:22:13 +08:00
|
|
|
#include "shared/test/common/mocks/mock_tbx_sockets.h"
|
2022-08-17 18:17:02 +08:00
|
|
|
#include "shared/test/common/tests_configuration.h"
|
2020-03-25 17:51:31 +08:00
|
|
|
|
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
|