refactor: remove ReturnSubDevicesAsApiDevices from shared code

Related-To: NEO-9437

Signed-off-by: Baj, Tomasz <tomasz.baj@intel.com>
This commit is contained in:
Baj, Tomasz
2023-11-08 12:55:37 +00:00
committed by Compute-Runtime-Automation
parent 12b4a9f71d
commit c49a9b9787
8 changed files with 6 additions and 111 deletions

View File

@@ -41,24 +41,6 @@ TEST(ExecutionEnvironment, givenDefaultConstructorWhenItIsCalledThenExecutionEnv
EXPECT_EQ(0, environment.getRefApiCount());
}
TEST(ExecutionEnvironment, givenDefaultConstructoWhenItIsCalledAndReturnSubDevicesAsApiDevicesIsSetTrueThenSubDevicesAsDevicesIsTrue) {
DebugManagerStateRestore dbgRestore;
DebugManager.flags.ReturnSubDevicesAsApiDevices.set(1);
MockExecutionEnvironment environment;
environment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
environment.setDeviceHierarchy(environment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>());
EXPECT_TRUE(environment.isExposingSubDevicesAsDevices());
}
TEST(ExecutionEnvironment, givenDefaultConstructoWhenItIsCalledAndReturnSubDevicesAsApiDevicesIsSetFalseThenSubDevicesAsDevicesIsFalse) {
DebugManagerStateRestore dbgRestore;
DebugManager.flags.ReturnSubDevicesAsApiDevices.set(0);
MockExecutionEnvironment environment;
environment.rootDeviceEnvironments[0]->setHwInfoAndInitHelpers(defaultHwInfo.get());
environment.setDeviceHierarchy(environment.rootDeviceEnvironments[0]->getHelper<GfxCoreHelper>());
EXPECT_FALSE(environment.isExposingSubDevicesAsDevices());
}
TEST(ExecutionEnvironment, WhenCreatingDevicesThenThoseDevicesAddRefcountsToExecutionEnvironment) {
auto executionEnvironment = new ExecutionEnvironment();