mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Move Deleter struct definition to mock_cmdqueue.h
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
66bf806018
commit
4d5ca8997b
@@ -81,5 +81,10 @@ struct MockCommandQueueHw : public L0::CommandQueueHw<gfxCoreFamily> {
|
||||
NEO::ResidencyContainer residencyContainerSnapshot;
|
||||
};
|
||||
|
||||
struct Deleter {
|
||||
void operator()(CommandQueueImp *cmdQ) {
|
||||
cmdQ->destroy();
|
||||
}
|
||||
};
|
||||
} // namespace ult
|
||||
} // namespace L0
|
||||
|
||||
@@ -20,12 +20,6 @@ namespace ult {
|
||||
|
||||
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
|
||||
|
||||
struct Deleter {
|
||||
void operator()(CommandQueueImp *cmdQ) {
|
||||
cmdQ->destroy();
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(L0DebuggerTest, givenL0DebuggerWhenCallingIsLegacyThenFalseIsReturned) {
|
||||
EXPECT_FALSE(neoDevice->getDebugger()->isLegacy());
|
||||
}
|
||||
|
||||
@@ -417,12 +417,6 @@ HWTEST2_F(L0DebuggerInternalUsageTest, givenUseCsrImmediateSubmissionDisabledCom
|
||||
commandList->destroy();
|
||||
}
|
||||
|
||||
struct Deleter {
|
||||
void operator()(CommandQueueImp *cmdQ) {
|
||||
cmdQ->destroy();
|
||||
}
|
||||
};
|
||||
|
||||
HWTEST2_F(L0DebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUsedThenDebuggerPathsAreNotExecuted, IsAtLeastSkl) {
|
||||
ze_command_queue_desc_t queueDesc = {};
|
||||
|
||||
|
||||
@@ -164,12 +164,6 @@ HWTEST2_F(SLDebuggerInternalUsageTest, givenDebuggingEnabledWhenInternalCmdQIsUs
|
||||
using STATE_SIP = typename FamilyType::STATE_SIP;
|
||||
ze_command_queue_desc_t queueDesc = {};
|
||||
|
||||
struct Deleter {
|
||||
void operator()(CommandQueueImp *cmdQ) {
|
||||
cmdQ->destroy();
|
||||
}
|
||||
};
|
||||
|
||||
device->setPreemptionMode(NEO::PreemptionMode::Disabled);
|
||||
|
||||
std::unique_ptr<MockCommandQueueHw<gfxCoreFamily>, Deleter> commandQueue(new MockCommandQueueHw<gfxCoreFamily>(deviceL0, device->getDefaultEngine().commandStreamReceiver, &queueDesc));
|
||||
|
||||
Reference in New Issue
Block a user