mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-10 12:53:42 +08:00
Cleanup includes in mock_device.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0cea7fe6d1
commit
4882f51721
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "shared/source/gen9/hw_cmds_glk.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/test/common/fixtures/device_fixture.h"
|
||||
#include "shared/test/common/test_macros/header/per_product_test_definitions.h"
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
|
@ -15,6 +15,7 @@
|
||||
#include "shared/test/common/helpers/kernel_filename_helper.h"
|
||||
#include "shared/test/common/libult/global_environment.h"
|
||||
#include "shared/test/common/mocks/mock_compiler_interface.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
#include "shared/test/common/mocks/mock_modules_zebin.h"
|
||||
#include "shared/test/common/mocks/mock_source_level_debugger.h"
|
||||
#include "shared/test/common/test_macros/hw_test.h"
|
||||
@ -415,4 +416,4 @@ TEST_F(ProgramWithKernelDebuggingTest, givenProgramWithNonZebinaryFormatAndKerne
|
||||
EXPECT_TRUE(program->wasProcessDebugDataCalled);
|
||||
EXPECT_EQ(++counter, sourceLevelDebugger->notifyKernelDebugDataCalled);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "shared/test/common/mocks/mock_modules_zebin.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_buffer.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
@ -49,4 +50,6 @@ void ProgramWithZebinFixture::populateProgramWithSegments(NEO::MockProgram *prog
|
||||
|
||||
program->buildInfos[rootDeviceIndex].constStringSectionData.initData = &strings;
|
||||
program->buildInfos[rootDeviceIndex].constStringSectionData.size = sizeof(strings);
|
||||
}
|
||||
}
|
||||
ProgramWithZebinFixture::ProgramWithZebinFixture() = default;
|
||||
ProgramWithZebinFixture::~ProgramWithZebinFixture() = default;
|
||||
|
@ -6,9 +6,13 @@
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
#include "opencl/test/unit_test/program/program_tests.h"
|
||||
|
||||
namespace NEO {
|
||||
class MockGraphicsAllocation;
|
||||
class MockProgram;
|
||||
} // namespace NEO
|
||||
|
||||
using namespace NEO;
|
||||
|
||||
class MockBuffer;
|
||||
@ -24,5 +28,6 @@ class ProgramWithZebinFixture : public ProgramTests {
|
||||
void TearDown() override;
|
||||
void addEmptyZebin(MockProgram *program);
|
||||
void populateProgramWithSegments(MockProgram *program);
|
||||
~ProgramWithZebinFixture() override = default;
|
||||
~ProgramWithZebinFixture() override;
|
||||
ProgramWithZebinFixture();
|
||||
};
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
|
||||
#include "opencl/test/unit_test/mocks/mock_buffer.h"
|
||||
#include "opencl/test/unit_test/mocks/mock_program.h"
|
||||
#include "opencl/test/unit_test/program/program_with_zebin.h"
|
||||
|
||||
#include <memory>
|
||||
@ -152,4 +153,4 @@ TEST_F(ProgramWithZebinFixture, givenZebinFormatAndDebuggerAvailableWhenNotifyin
|
||||
EXPECT_GT(program->buildInfos[rootDeviceIndex].debugDataSize, 0u);
|
||||
|
||||
EXPECT_EQ(1u, sourceLevelDebugger->notifyKernelDebugDataCalled);
|
||||
}
|
||||
}
|
||||
|
@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include "shared/source/execution_environment/execution_environment.h"
|
||||
#include "shared/source/memory_manager/os_agnostic_memory_manager.h"
|
||||
#include "shared/source/os_interface/os_interface.h"
|
||||
#include "shared/test/common/mocks/mock_csr.h"
|
||||
#include "shared/test/common/mocks/mock_device.h"
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include "shared/source/helpers/engine_node_helper.h"
|
||||
#include "shared/source/xe_hpc_core/hw_cmds_pvc.h"
|
||||
#include "shared/test/common/helpers/debug_manager_state_restore.h"
|
||||
#include "shared/test/common/mocks/mock_graphics_allocation.h"
|
||||
#include "shared/test/common/test_macros/header/per_product_test_definitions.h"
|
||||
#include "shared/test/common/test_macros/test.h"
|
||||
|
||||
@ -544,4 +545,4 @@ PVCTEST_F(EngineNodeHelperPvcTests, givenNonTile0AccessWhenGettingIsBlitCopyRequ
|
||||
memoryBanks = 0b1;
|
||||
EXPECT_FALSE(hwInfoConfig.isBlitCopyRequiredForLocalMemory(hwInfo, graphicsAllocation));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user