mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
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:
committed by
sys_ocldev
parent
23d72e40b0
commit
82078074bc
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user