Remove command queue constructor

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
This commit is contained in:
Maciej Dziuban
2021-07-23 10:36:36 +00:00
committed by Compute-Runtime-Automation
parent b37d46dd3d
commit 9bca773b91
44 changed files with 165 additions and 167 deletions

View File

@@ -117,7 +117,7 @@ TEST_F(ContextTest, WhenSettingSpecialQueueThenQueueIsAvailable) {
auto specialQ = context.getSpecialQueue(0u);
EXPECT_EQ(specialQ, nullptr);
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0);
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0, false);
context.setSpecialQueue(cmdQ, 0u);
specialQ = context.getSpecialQueue(0u);
EXPECT_NE(specialQ, nullptr);
@@ -142,7 +142,7 @@ TEST_F(ContextTest, givenCmdQueueWithoutContextWhenBeingCreatedNextDeletedThenCo
delete cmdQ1;
EXPECT_EQ(1, context.getRefInternalCount());
auto cmdQ2 = new MockCommandQueue(nullptr, (ClDevice *)devices[0], 0);
auto cmdQ2 = new MockCommandQueue(nullptr, (ClDevice *)devices[0], 0, false);
EXPECT_EQ(1, context.getRefInternalCount());
delete cmdQ2;
@@ -172,7 +172,7 @@ TEST_F(ContextTest, givenCmdQueueWithContextWhenBeingCreatedNextDeletedThenConte
MockContext context((ClDevice *)devices[0]);
EXPECT_EQ(1, context.getRefInternalCount());
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0);
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0, false);
EXPECT_EQ(2, context.getRefInternalCount());
delete cmdQ;
@@ -234,7 +234,7 @@ TEST_F(ContextTest, givenSpecialCmdQueueWithContextWhenBeingCreatedNextAutoDelet
MockContext context((ClDevice *)devices[0], true);
EXPECT_EQ(1, context.getRefInternalCount());
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0);
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0, false);
context.overrideSpecialQueueAndDecrementRefCount(cmdQ, 0u);
EXPECT_EQ(1, context.getRefInternalCount());
@@ -245,7 +245,7 @@ TEST_F(ContextTest, givenSpecialCmdQueueWithContextWhenBeingCreatedNextDeletedTh
MockContext context((ClDevice *)devices[0], true);
EXPECT_EQ(1, context.getRefInternalCount());
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0);
auto cmdQ = new MockCommandQueue(&context, (ClDevice *)devices[0], 0, false);
context.overrideSpecialQueueAndDecrementRefCount(cmdQ, 0u);
EXPECT_EQ(1, context.getRefInternalCount());