compute-runtime/unit_tests/fixtures/device_fixture.h

27 lines
545 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "unit_tests/mocks/mock_device.h"
namespace NEO {
struct HardwareInfo;
struct DeviceFixture {
void SetUp();
void SetUpImpl(const NEO::HardwareInfo *hardwareInfo);
void TearDown();
MockDevice *createWithUsDeviceId(unsigned short usDeviceId);
MockDevice *pDevice = nullptr;
volatile uint32_t *pTagMemory = nullptr;
HardwareInfo hardwareInfo = {};
PLATFORM platformHelper = {};
};
} // namespace NEO