mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 22:12:59 +08:00
Move wddm_fixture.h and releted files from opencl to shared
Related-To: NEO-5894 Signed-off-by: Piotr Obst <piotr.obst@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
0f072a93e0
commit
acf3e58a64
@@ -7,8 +7,6 @@
|
||||
target_sources(${TARGET_NAME} PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/command_container_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_fixture.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/device_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/direct_submission_fixture.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/front_window_fixture.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/front_window_fixture.h
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
* Copyright (C) 2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/test/common/fixtures/mock_execution_environment_gmm_fixture.h"
|
||||
|
||||
#include "shared/test/common/mocks/mock_execution_environment.h"
|
||||
|
||||
namespace NEO {
|
||||
void MockExecutionEnvironmentGmmFixture::SetUp() {
|
||||
executionEnvironment = std::make_unique<MockExecutionEnvironment>();
|
||||
executionEnvironment->rootDeviceEnvironments[0]->initGmm();
|
||||
executionEnvironment->incRefInternal();
|
||||
}
|
||||
void MockExecutionEnvironmentGmmFixture::TearDown() {}
|
||||
|
||||
GmmHelper *MockExecutionEnvironmentGmmFixture::getGmmHelper() {
|
||||
return executionEnvironment->rootDeviceEnvironments[0]->getGmmHelper();
|
||||
}
|
||||
|
||||
GmmClientContext *MockExecutionEnvironmentGmmFixture::getGmmClientContext() {
|
||||
return executionEnvironment->rootDeviceEnvironments[0]->getGmmClientContext();
|
||||
}
|
||||
} // namespace NEO
|
||||
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (C) 2020-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <memory>
|
||||
|
||||
namespace NEO {
|
||||
|
||||
struct MockExecutionEnvironment;
|
||||
class GmmHelper;
|
||||
class GmmClientContext;
|
||||
|
||||
class MockExecutionEnvironmentGmmFixture {
|
||||
protected:
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
|
||||
std::unique_ptr<MockExecutionEnvironment> executionEnvironment;
|
||||
|
||||
public:
|
||||
GmmHelper *getGmmHelper();
|
||||
GmmClientContext *getGmmClientContext();
|
||||
};
|
||||
} // namespace NEO
|
||||
Reference in New Issue
Block a user