2020-03-30 20:11:43 +08:00
|
|
|
/*
|
2021-07-06 21:44:16 +08:00
|
|
|
* Copyright (C) 2021 Intel Corporation
|
2020-03-30 20:11:43 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: MIT
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2021-07-06 21:44:16 +08:00
|
|
|
#include "shared/test/common/fixtures/mock_execution_environment_gmm_fixture.h"
|
2020-03-30 20:11:43 +08:00
|
|
|
|
2021-07-06 21:44:16 +08:00
|
|
|
#include "shared/test/common/mocks/mock_execution_environment.h"
|
2020-03-30 20:11:43 +08:00
|
|
|
|
|
|
|
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
|