mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
28 lines
825 B
C++
28 lines
825 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(); // NOLINT(readability-identifier-naming)
|
|
void SetUpImpl(const NEO::HardwareInfo *hardwareInfo); // NOLINT(readability-identifier-naming)
|
|
void TearDown(); // NOLINT(readability-identifier-naming)
|
|
|
|
MockDevice *createWithUsDeviceIdRevId(unsigned short usDeviceId, unsigned short usRevId);
|
|
|
|
MockDevice *pDevice = nullptr;
|
|
volatile uint32_t *pTagMemory = nullptr;
|
|
HardwareInfo hardwareInfo = {};
|
|
PLATFORM platformHelper = {};
|
|
const uint32_t rootDeviceIndex = 0u;
|
|
};
|
|
} // namespace NEO
|