mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 06:23:01 +08:00
Change namespace from OCLRT to NEO
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
#include "gmock/gmock.h"
|
||||
|
||||
using namespace OCLRT;
|
||||
using namespace NEO;
|
||||
using namespace ::testing;
|
||||
|
||||
class AsyncEventsHandlerTests : public ::testing::Test {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
namespace OCLRT {
|
||||
namespace NEO {
|
||||
|
||||
struct SmallEventBuilderEventMock : MockEvent<Event> {
|
||||
SmallEventBuilderEventMock(int param1, float param2)
|
||||
@@ -366,4 +366,4 @@ TEST(EventBuilder, parentListDoesNotHaveDuplicates) {
|
||||
delete eventBuilder;
|
||||
}
|
||||
|
||||
} // namespace OCLRT
|
||||
} // namespace NEO
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
#include <memory>
|
||||
|
||||
using namespace OCLRT;
|
||||
using namespace NEO;
|
||||
|
||||
struct CallbackData {
|
||||
static void CL_CALLBACK callback(cl_event event, cl_int status, void *userData) {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
using namespace OCLRT;
|
||||
using namespace NEO;
|
||||
|
||||
struct EventTest
|
||||
: public DeviceFixture,
|
||||
|
||||
@@ -180,10 +180,10 @@ TEST_F(MockEventTests, blockedUserEventPassedToEnqueueNdRangeWithoutReturnEventI
|
||||
auto taskCountAfter = csr.peekTaskCount();
|
||||
|
||||
//queue should be in blocked state at this moment, task level should be inherited from user event
|
||||
EXPECT_EQ(OCLRT::Event::eventNotReady, pCmdQ->taskLevel);
|
||||
EXPECT_EQ(NEO::Event::eventNotReady, pCmdQ->taskLevel);
|
||||
|
||||
//queue should be in blocked state at this moment, task count should be inherited from user event
|
||||
EXPECT_EQ(OCLRT::Event::eventNotReady, pCmdQ->taskCount);
|
||||
EXPECT_EQ(NEO::Event::eventNotReady, pCmdQ->taskCount);
|
||||
|
||||
//queue should be in blocked state
|
||||
EXPECT_EQ(pCmdQ->isQueueBlocked(), true);
|
||||
@@ -213,10 +213,10 @@ TEST_F(MockEventTests, blockedUserEventPassedToEnqueueNdRangeWithReturnEventIsNo
|
||||
auto taskCountAfter = csr.peekTaskCount();
|
||||
|
||||
//queue should be in blocked state at this moment, task level should be inherited from user event
|
||||
EXPECT_EQ(OCLRT::Event::eventNotReady, pCmdQ->taskLevel);
|
||||
EXPECT_EQ(NEO::Event::eventNotReady, pCmdQ->taskLevel);
|
||||
|
||||
//queue should be in blocked state at this moment, task count should be inherited from user event
|
||||
EXPECT_EQ(OCLRT::Event::eventNotReady, pCmdQ->taskCount);
|
||||
EXPECT_EQ(NEO::Event::eventNotReady, pCmdQ->taskCount);
|
||||
|
||||
//queue should be in blocked state
|
||||
EXPECT_EQ(pCmdQ->isQueueBlocked(), true);
|
||||
@@ -232,7 +232,7 @@ TEST_F(MockEventTests, blockedUserEventPassedToEnqueueNdRangeWithReturnEventIsNo
|
||||
|
||||
//and if normal event inherited status from user event
|
||||
Event *returnEvent = castToObject<Event>(retEvent);
|
||||
EXPECT_EQ(returnEvent->taskLevel, OCLRT::Event::eventNotReady);
|
||||
EXPECT_EQ(returnEvent->taskLevel, NEO::Event::eventNotReady);
|
||||
|
||||
EXPECT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user