Files
compute-runtime/unit_tests/os_interface/linux/device_factory_tests.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

42 lines
876 B
C++

/*
* Copyright (C) 2017-2019 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "core/helpers/options.h"
#include "runtime/device/device.h"
#include "runtime/execution_environment/execution_environment.h"
#include "runtime/os_interface/device_factory.h"
#include "test.h"
#include "unit_tests/mocks/mock_device_factory.h"
#include "unit_tests/os_interface/linux/drm_mock.h"
#include "gtest/gtest.h"
namespace NEO {
void pushDrmMock(Drm *mock);
void popDrmMock();
}; // namespace NEO
using namespace NEO;
struct DeviceFactoryLinuxTest : public ::testing::Test {
void SetUp() override {
pDrm = new DrmMock;
pDrm->setGtType(GTTYPE_GT2);
pushDrmMock(pDrm);
}
void TearDown() override {
popDrmMock();
delete pDrm;
}
DrmMock *pDrm;
ExecutionEnvironment executionEnvironment;
};