2020-03-30 14:11:43 +02:00
|
|
|
/*
|
2022-08-12 14:24:49 +00:00
|
|
|
* Copyright (C) 2021-2022 Intel Corporation
|
2020-03-30 14:11:43 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
2021-07-06 15:44:16 +02:00
|
|
|
#include "shared/test/common/fixtures/mock_execution_environment_gmm_fixture.h"
|
2020-03-30 14:11:43 +02:00
|
|
|
|
2022-11-16 14:01:52 +00:00
|
|
|
#include "shared/source/execution_environment/root_device_environment.h"
|
2021-07-06 15:44:16 +02:00
|
|
|
#include "shared/test/common/mocks/mock_execution_environment.h"
|
2020-03-30 14:11:43 +02:00
|
|
|
|
|
|
|
|
namespace NEO {
|
2022-08-12 14:24:49 +00:00
|
|
|
void MockExecutionEnvironmentGmmFixture::setUp() {
|
2020-03-30 14:11:43 +02:00
|
|
|
executionEnvironment = std::make_unique<MockExecutionEnvironment>();
|
|
|
|
|
executionEnvironment->rootDeviceEnvironments[0]->initGmm();
|
|
|
|
|
executionEnvironment->incRefInternal();
|
|
|
|
|
}
|
2022-08-12 14:24:49 +00:00
|
|
|
void MockExecutionEnvironmentGmmFixture::tearDown() {}
|
2020-03-30 14:11:43 +02:00
|
|
|
|
|
|
|
|
GmmHelper *MockExecutionEnvironmentGmmFixture::getGmmHelper() {
|
|
|
|
|
return executionEnvironment->rootDeviceEnvironments[0]->getGmmHelper();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
GmmClientContext *MockExecutionEnvironmentGmmFixture::getGmmClientContext() {
|
|
|
|
|
return executionEnvironment->rootDeviceEnvironments[0]->getGmmClientContext();
|
|
|
|
|
}
|
2022-08-12 14:24:49 +00:00
|
|
|
} // namespace NEO
|