2018-03-21 19:58:30 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2018-2019 Intel Corporation
|
2018-03-21 19:58:30 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-03-21 19:58:30 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
#include "unit_tests/mocks/mock_context.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2018-10-19 19:41:42 +08:00
|
|
|
#include "gtest/gtest.h"
|
2018-03-21 19:58:30 +08:00
|
|
|
|
2018-07-25 23:12:44 +08:00
|
|
|
class EnqueueHandlerTest : public OCLRT::DeviceFixture,
|
2018-03-21 19:58:30 +08:00
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
void SetUp() override {
|
|
|
|
DeviceFixture::SetUp();
|
2018-07-25 23:12:44 +08:00
|
|
|
context = new OCLRT::MockContext(pDevice);
|
2018-03-21 19:58:30 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
context->decRefInternal();
|
2018-07-25 23:12:44 +08:00
|
|
|
DeviceFixture::TearDown();
|
2018-03-21 19:58:30 +08:00
|
|
|
}
|
|
|
|
OCLRT::MockContext *context;
|
|
|
|
};
|