Move Deleter struct definition to mock_cmdqueue.h

Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski 2021-12-16 19:45:09 +00:00 committed by Compute-Runtime-Automation
parent 66bf806018
commit 4d5ca8997b
4 changed files with 5 additions and 18 deletions

View File

@ -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

View File

@ -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());
}

View File

@ -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 = {};

View File

@ -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));