2017-12-21 00:45:38 +01:00
|
|
|
/*
|
2022-03-31 17:18:58 +00:00
|
|
|
* Copyright (C) 2018-2022 Intel Corporation
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
2018-09-18 09:11:08 +02:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 00:45:38 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
#include "CL/cl.h"
|
|
|
|
|
2019-03-26 11:59:46 +01:00
|
|
|
namespace NEO {
|
2017-12-21 00:45:38 +01:00
|
|
|
class MockContext;
|
|
|
|
|
|
|
|
class ContextFixture {
|
|
|
|
protected:
|
2022-05-09 17:40:30 +00:00
|
|
|
void SetUp(cl_uint numDevices, cl_device_id *pDeviceList); // NOLINT(readability-identifier-naming)
|
|
|
|
void TearDown(); // NOLINT(readability-identifier-naming)
|
2017-12-21 00:45:38 +01:00
|
|
|
|
2020-03-13 14:59:00 +01:00
|
|
|
MockContext *pContext = nullptr;
|
2017-12-21 00:45:38 +01:00
|
|
|
};
|
2019-03-26 11:59:46 +01:00
|
|
|
} // namespace NEO
|