Stop creating MockContext in MockParentKernel

Change-Id: I398d7e6f159e246e4f66cd73ac1f04eb09ea04ca
This commit is contained in:
Maciej Dziuban
2018-07-30 14:13:37 +02:00
committed by sys_ocldev
parent d53e1c3979
commit b83b9ac120
9 changed files with 62 additions and 72 deletions

View File

@@ -573,7 +573,8 @@ HWTEST_F(ParentKernelEnqueueFixture, givenCsrInBatchingModeWhenExecutionModelKer
size_t offset[3] = {0, 0, 0};
size_t gws[3] = {1, 1, 1};
std::unique_ptr<MockParentKernel> kernelToRun(MockParentKernel::create(*pDevice, false, false, false, false, false));
MockContext context(pDevice);
std::unique_ptr<MockParentKernel> kernelToRun(MockParentKernel::create(context, false, false, false, false, false));
pCmdQ->enqueueKernel(kernelToRun.get(), 1, offset, gws, gws, 0, nullptr, nullptr);