2018-03-21 12:58:30 +01:00
|
|
|
/*
|
2020-01-14 14:32:11 +01:00
|
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
2018-03-21 12:58:30 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2018-03-21 12:58:30 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2020-02-23 15:20:22 +01:00
|
|
|
#include "opencl/test/unit_test/fixtures/device_fixture.h"
|
|
|
|
#include "opencl/test/unit_test/mocks/mock_context.h"
|
|
|
|
|
2018-10-19 13:41:42 +02:00
|
|
|
#include "gtest/gtest.h"
|
2018-03-21 12:58:30 +01:00
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
class EnqueueHandlerTest : public NEO::DeviceFixture,
|
2018-03-21 12:58:30 +01:00
|
|
|
public testing::Test {
|
|
|
|
public:
|
|
|
|
void SetUp() override {
|
|
|
|
DeviceFixture::SetUp();
|
2020-01-14 14:32:11 +01:00
|
|
|
context = new NEO::MockContext(pClDevice);
|
2018-03-21 12:58:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
context->decRefInternal();
|
2018-07-25 17:12:44 +02:00
|
|
|
DeviceFixture::TearDown();
|
2018-03-21 12:58:30 +01:00
|
|
|
}
|
2019-03-26 11:59:46 +01:00
|
|
|
NEO::MockContext *context;
|
2018-03-21 12:58:30 +01:00
|
|
|
};
|