Add createAubManager function

- unit tests are using mocked version of createAubManager
- dynamic library, aub and tbx tests are using functional
version using aub_stream

Change-Id: I12d69d84d00645009b026df266b8b64adebb86d4
This commit is contained in:
Hoppe, Mateusz
2018-12-10 17:12:32 +01:00
committed by sys_ocldev
parent 23d72e40b0
commit 82078074bc
16 changed files with 75 additions and 8 deletions

View File

@@ -23,6 +23,7 @@
#include "unit_tests/mocks/mock_execution_environment.h"
#include "unit_tests/mocks/mock_memory_manager.h"
#include "unit_tests/utilities/destructor_counted.h"
#include "unit_tests/helpers/debug_manager_state_restore.h"
#include "unit_tests/helpers/unit_test_helper.h"
using namespace OCLRT;
@@ -132,7 +133,10 @@ TEST(ExecutionEnvironment, givenExecutionEnvironmentWhenInitializeAubCenterIsCal
EXPECT_STREQ(executionEnvironment.aubFileNameReceived.c_str(), "test.aub");
}
TEST(ExecutionEnvironment, givenExecutionEnvironmentWhenGetAubManagerIsCalledThenReturnNull) {
TEST(ExecutionEnvironment, givenUseAubStreamFalseWhenGetAubManagerIsCalledThenReturnNull) {
DebugManagerStateRestore dbgRestore;
DebugManager.flags.UseAubStream.set(false);
ExecutionEnvironment executionEnvironment;
executionEnvironment.initAubCenter(platformDevices[0], false, "");
auto aubManager = executionEnvironment.aubCenter->getAubManager();