2018-03-21 19:58:30 +08:00
|
|
|
/*
|
2020-01-14 21:32:11 +08:00
|
|
|
* Copyright (C) 2018-2020 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
|
2020-02-23 22:20:22 +08:00
|
|
|
#include "opencl/test/unit_test/fixtures/device_fixture.h"
|
|
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
|
|
|
|
2018-10-19 19:41:42 +08:00
|
|
|
#include "gtest/gtest.h"
|
2018-03-21 19:58:30 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
class EnqueueHandlerTest : public NEO::DeviceFixture,
|
2018-03-21 19:58:30 +08:00
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
void SetUp() override {
|
|
|
|
DeviceFixture::SetUp();
|
2020-01-14 21:32:11 +08:00
|
|
|
context = new NEO::MockContext(pClDevice);
|
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
|
|
|
}
|
2019-03-26 18:59:46 +08:00
|
|
|
NEO::MockContext *context;
|
2018-03-21 19:58:30 +08:00
|
|
|
};
|