mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Add aub_stream headers
Change-Id: I4d9420210e2a06d8a36abc0cf272901514ff3547
This commit is contained in:

committed by
sys_ocldev

parent
8504b37a08
commit
e6b93941ee
@ -6,6 +6,7 @@
|
||||
|
||||
set(IGDRCL_SRCS_aub_helper_tests
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_center_tests.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/aub_helper_tests.cpp
|
||||
)
|
||||
target_sources(igdrcl_tests PRIVATE ${IGDRCL_SRCS_aub_helper_tests})
|
||||
|
28
unit_tests/aub/aub_center_tests.cpp
Normal file
28
unit_tests/aub/aub_center_tests.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
/*
|
||||
* Copyright (C) 2018 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "runtime/command_stream/aub_center.h"
|
||||
#include "runtime/os_interface/debug_settings_manager.h"
|
||||
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
using namespace OCLRT;
|
||||
|
||||
class MockAubCenter : public AubCenter {
|
||||
public:
|
||||
using AubCenter::AubCenter;
|
||||
using AubCenter::aubManager;
|
||||
};
|
||||
|
||||
TEST(AubCenter, GivenUseAubStreamDebugVarSetWhenAubCenterIsCreatedThenAubMangerIsInitialized) {
|
||||
DebugManagerStateRestore restorer;
|
||||
DebugManager.flags.UseAubStream.set(true);
|
||||
|
||||
MockAubCenter aubCenter;
|
||||
|
||||
EXPECT_NE(nullptr, aubCenter.aubManager.get());
|
||||
}
|
Reference in New Issue
Block a user