2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-02-27 18:39:32 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "runtime/device/device.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "test.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "unit_tests/fixtures/platform_fixture.h"
|
|
|
|
|
|
|
|
#include "gtest/gtest.h"
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
struct HwInfoConfigTest : public ::testing::Test,
|
|
|
|
public PlatformFixture {
|
|
|
|
void SetUp() override;
|
|
|
|
void TearDown() override;
|
|
|
|
void ReleaseOutHwInfoStructs();
|
|
|
|
|
|
|
|
HardwareInfo *pInHwInfo;
|
|
|
|
HardwareInfo outHwInfo;
|
|
|
|
|
|
|
|
RuntimeCapabilityTable originalCapTable;
|
|
|
|
|
|
|
|
const PLATFORM *pOldPlatform;
|
|
|
|
PLATFORM testPlatform;
|
|
|
|
|
|
|
|
const FeatureTable *pOldSkuTable;
|
|
|
|
FeatureTable testSkuTable;
|
|
|
|
|
|
|
|
const WorkaroundTable *pOldWaTable;
|
|
|
|
WorkaroundTable testWaTable;
|
|
|
|
|
|
|
|
const GT_SYSTEM_INFO *pOldSysInfo;
|
|
|
|
GT_SYSTEM_INFO testSysInfo;
|
|
|
|
};
|