Remove not needed methods.

Change-Id: If8be6e18054381cabba129fc0d05802f32cc0d34
This commit is contained in:
Mrozek, Michal
2018-01-08 17:09:09 +01:00
parent b00819cafe
commit 45990a8181
5 changed files with 0 additions and 39 deletions

View File

@@ -47,8 +47,6 @@ TEST_F(clGetPlatformIDsTests, getInfo) {
EXPECT_EQ(CL_SUCCESS, retVal);
EXPECT_NE(nullptr, platform);
pContext->deleteSpecialQueue();
}
TEST_F(clGetPlatformIDsTests, NoPlatformListReturnsError) {

View File

@@ -43,7 +43,5 @@ TEST_F(clGetPlatformIDsMtTests, mtsafeGet) {
t1.join();
EXPECT_EQ(threadPlatform, platform);
pContext->deleteSpecialQueue();
}
} // namespace ULT

View File

@@ -123,15 +123,6 @@ TEST_F(ContextTest, specialQueue) {
EXPECT_NE(specialQ, nullptr);
}
TEST_F(ContextTest, isSpecialQueue) {
MockContext context((Device *)devices[0]);
auto specialQ = context.getSpecialQueue();
EXPECT_NE(specialQ, nullptr);
EXPECT_TRUE(context.isSpecialQueue(specialQ));
}
TEST_F(ContextTest, setSpecialQueue) {
MockContext context((Device *)devices[0], true);
@@ -139,14 +130,9 @@ TEST_F(ContextTest, setSpecialQueue) {
EXPECT_EQ(specialQ, nullptr);
auto cmdQ = new CommandQueue(&context, (Device *)devices[0], 0);
EXPECT_FALSE(context.isSpecialQueue(cmdQ));
context.setSpecialQueue(cmdQ);
specialQ = context.getSpecialQueue();
EXPECT_NE(specialQ, nullptr);
EXPECT_TRUE(context.isSpecialQueue(specialQ));
}
TEST_F(ContextTest, defaultQueue) {
@@ -157,14 +143,6 @@ TEST_F(ContextTest, defaultQueue) {
delete dq;
}
TEST_F(ContextTest, deleteSpecialQueue) {
context->deleteSpecialQueue();
EXPECT_EQ(context->getSpecialQueue(), nullptr);
context->deleteSpecialQueue();
EXPECT_EQ(context->getSpecialQueue(), nullptr);
}
TEST_F(ContextTest, givenCmdQueueWithoutContextWhenBeingCreatedNextDeletedThenContextRefCountShouldNeitherBeIncrementedNorNextDecremented) {
MockContext context((Device *)devices[0]);
EXPECT_EQ(1, context.getRefInternalCount());