Files
compute-runtime/core/unit_tests/preamble/preamble_fixture.h
Mateusz Jablonski 5fa53f4516 Move headers to core
- address_patch.h
- options.h
- registered_method_dispatcher.h
- grf_config.h

Rename OCL_RUNTIME_PROFILING -> KMD_PROFILING

Related-To: NEO-3982

Change-Id: I06cf72729e9d7d7d2ff0bd169fcbada00c4b509a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
2019-12-10 12:19:29 +01:00

54 lines
1.5 KiB
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/helpers/options.h"
#include "core/helpers/preamble.h"
#include "unit_tests/command_stream/linear_stream_fixture.h"
#include "unit_tests/fixtures/device_fixture.h"
#include "unit_tests/fixtures/platform_fixture.h"
#include "unit_tests/helpers/hw_parse.h"
using namespace NEO;
struct PreambleFixture : public DeviceFixture,
public LinearStreamFixture,
public HardwareParse,
public ::testing::Test {
void SetUp() override {
DeviceFixture::SetUp();
HardwareParse::SetUp();
}
void TearDown() override {
HardwareParse::TearDown();
DeviceFixture::TearDown();
}
};
class PreambleVfeState : public PlatformFixture,
public ::testing::Test,
public LinearStreamFixture,
public HardwareParse {
public:
void SetUp() override {
::testing::Test::SetUp();
LinearStreamFixture::SetUp();
HardwareParse::SetUp();
PlatformFixture::SetUp();
testWaTable = &pPlatform->peekExecutionEnvironment()->getMutableHardwareInfo()->workaroundTable;
}
void TearDown() override {
PlatformFixture::TearDown();
HardwareParse::TearDown();
LinearStreamFixture::TearDown();
::testing::Test::TearDown();
}
WorkaroundTable *testWaTable;
};