2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
2021-01-21 20:10:13 +08:00
|
|
|
#include "shared/test/common/mocks/mock_device.h"
|
2020-04-02 15:35:50 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
namespace NEO {
|
2017-12-21 07:45:38 +08:00
|
|
|
struct HardwareInfo;
|
|
|
|
|
|
|
|
struct DeviceFixture {
|
|
|
|
void SetUp();
|
2019-03-26 18:59:46 +08:00
|
|
|
void SetUpImpl(const NEO::HardwareInfo *hardwareInfo);
|
2017-12-21 07:45:38 +08:00
|
|
|
void TearDown();
|
|
|
|
|
2018-07-25 23:12:44 +08:00
|
|
|
MockDevice *createWithUsDeviceId(unsigned short usDeviceId);
|
|
|
|
|
|
|
|
MockDevice *pDevice = nullptr;
|
|
|
|
volatile uint32_t *pTagMemory = nullptr;
|
2019-05-08 23:16:25 +08:00
|
|
|
HardwareInfo hardwareInfo = {};
|
2018-07-25 23:12:44 +08:00
|
|
|
PLATFORM platformHelper = {};
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|