Remove unnecessary casts.

Change-Id: I2d293d065c7efa006efe7d60a625cba0c6116c86
This commit is contained in:
Piotr Fusik
2018-12-11 17:06:47 +01:00
committed by sys_ocldev
parent 4b4b886eff
commit e8a71132a4
16 changed files with 51 additions and 51 deletions

View File

@ -207,7 +207,7 @@ TEST_F(AsyncEventsHandlerTests, givenEventsNotHandledByHandlderWhenAsyncExecutio
EXPECT_EQ(3, event1->getRefInternalCount());
EXPECT_EQ(3, event2->getRefInternalCount());
handler->allowAsyncProcess.store(false);
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get())); // enter and exit because of allowAsyncProcess == false
MockHandler::asyncProcess(handler.get()); // enter and exit because of allowAsyncProcess == false
EXPECT_EQ(2, event1->getRefInternalCount());
EXPECT_EQ(2, event2->getRefInternalCount());
EXPECT_TRUE(handler->peekIsListEmpty());
@ -349,7 +349,7 @@ TEST_F(AsyncEventsHandlerTests, givenSleepCandidateWhenProcessedThenCallWaitWith
EXPECT_CALL(*event1, wait(true, true)).Times(1).WillOnce(Invoke(unsetAsyncFlag));
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get()));
MockHandler::asyncProcess(handler.get());
event1->setStatus(CL_COMPLETE);
}
@ -360,7 +360,7 @@ TEST_F(AsyncEventsHandlerTests, asyncProcessCallsProcessListBeforeReturning) {
handler->registerEvent(event);
handler->allowAsyncProcess.store(false);
MockHandler::asyncProcess(reinterpret_cast<void *>(handler.get()));
MockHandler::asyncProcess(handler.get());
EXPECT_TRUE(handler->peekIsListEmpty());
EXPECT_EQ(1, event->getRefInternalCount());