compute-runtime/shared/test/common/fixtures/device_fixture.h

32 lines
701 B
C++

/*
* Copyright (C) 2021-2022 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/test/common/mocks/mock_device.h"
namespace NEO {
struct HardwareInfo;
struct DeviceFixture {
void setUp();
void setUpImpl(const NEO::HardwareInfo *hardwareInfo);
void tearDown();
MockDevice *createWithUsDeviceIdRevId(unsigned short usDeviceId, unsigned short usRevId);
MockDevice *pDevice = nullptr;
volatile TagAddressType *pTagMemory = nullptr;
HardwareInfo hardwareInfo = {};
PLATFORM platformHelper = {};
const uint32_t rootDeviceIndex = 0u;
template <typename HelperType>
HelperType &getHelper() const;
};
} // namespace NEO