2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2022-05-10 01:40:30 +08:00
|
|
|
* Copyright (C) 2021-2022 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 {
|
2022-08-11 22:01:11 +08:00
|
|
|
void setUp();
|
2022-06-29 00:27:56 +08:00
|
|
|
void setUpImpl(const NEO::HardwareInfo *hardwareInfo);
|
2022-08-11 22:01:11 +08:00
|
|
|
void tearDown();
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2022-05-28 00:47:43 +08:00
|
|
|
MockDevice *createWithUsDeviceIdRevId(unsigned short usDeviceId, unsigned short usRevId);
|
2018-07-25 23:12:44 +08:00
|
|
|
|
|
|
|
MockDevice *pDevice = nullptr;
|
2022-11-22 21:53:59 +08:00
|
|
|
volatile TagAddressType *pTagMemory = nullptr;
|
2019-05-08 23:16:25 +08:00
|
|
|
HardwareInfo hardwareInfo = {};
|
2018-07-25 23:12:44 +08:00
|
|
|
PLATFORM platformHelper = {};
|
2021-12-21 02:16:04 +08:00
|
|
|
const uint32_t rootDeviceIndex = 0u;
|
2022-11-09 00:16:37 +08:00
|
|
|
|
|
|
|
template <typename HelperType>
|
|
|
|
HelperType &getHelper() const;
|
2017-12-21 07:45:38 +08:00
|
|
|
};
|
2022-11-09 00:16:37 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
} // namespace NEO
|