mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00

Move code related to batch buffer submission from flush to dedicated function Add parameter to pass aub file name from AubCenter to AubManager Change-Id: I20abb3c8bd92114b3bc9caa2a6291dc1bbddad2a
25 lines
676 B
C++
25 lines
676 B
C++
/*
|
|
* Copyright (C) 2018 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "runtime/helpers/hw_info.h"
|
|
#include "runtime/helpers/options.h"
|
|
#include "runtime/os_interface/debug_settings_manager.h"
|
|
#include "unit_tests/helpers/debug_manager_state_restore.h"
|
|
#include "unit_tests/mocks/mock_aub_center.h"
|
|
|
|
#include "gtest/gtest.h"
|
|
using namespace OCLRT;
|
|
|
|
TEST(AubCenter, GivenUseAubStreamDebugVariableSetWhenAubCenterIsCreatedThenAubManagerIsNotCreated) {
|
|
DebugManagerStateRestore restorer;
|
|
DebugManager.flags.UseAubStream.set(true);
|
|
|
|
MockAubCenter aubCenter(platformDevices[0], false, "");
|
|
|
|
EXPECT_EQ(nullptr, aubCenter.aubManager.get());
|
|
}
|