Files
compute-runtime/opencl/test/unit_test/fixtures/cl_device_fixture.h
Mateusz Jablonski c90f3b3c93 Correct naming: SetUpImpl -> setUpImpl
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2022-06-28 17:59:37 +02:00

33 lines
877 B
C++

/*
* Copyright (C) 2020-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/test/common/mocks/mock_device.h"
#include "opencl/test/unit_test/mocks/mock_cl_device.h"
namespace NEO {
struct HardwareInfo;
struct ClDeviceFixture {
void SetUp(); // NOLINT(readability-identifier-naming)
void setUpImpl(const NEO::HardwareInfo *hardwareInfo);
void TearDown(); // NOLINT(readability-identifier-naming)
MockDevice *createWithUsDeviceId(unsigned short usDeviceId);
MockDevice *pDevice = nullptr;
MockClDevice *pClDevice = nullptr;
volatile uint32_t *pTagMemory = nullptr;
HardwareInfo hardwareInfo = {};
PLATFORM platformHelper = {};
OsContext *osContext = nullptr;
const uint32_t rootDeviceIndex = 0u;
MockClExecutionEnvironment *pClExecutionEnvironment = nullptr;
};
} // namespace NEO