Pass execution environment to Platform

Related-To: NEO-4208
Change-Id: Iec8c6bedfd4a3fce160651768fb45f74cf3a36e8
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-02-07 12:15:46 +01:00
committed by sys_ocldev
parent b5535ec547
commit c739500047
19 changed files with 101 additions and 84 deletions

View File

@@ -47,11 +47,11 @@ TEST(SourceLevelDebugger, givenPlatformWhenItIsCreatedThenSourceLevelDebuggerIsC
if (platformDevices[0]->capabilityTable.sourceLevelDebuggerSupported) {
DebuggerLibrary::setLibraryAvailable(true);
DebuggerLibrary::setDebuggerActive(true);
Platform platform;
auto executionEnvironment = new ExecutionEnvironment();
Platform platform(*executionEnvironment);
platform.initialize();
EXPECT_NE(nullptr, platform.peekExecutionEnvironment()->sourceLevelDebugger);
EXPECT_NE(nullptr, executionEnvironment->sourceLevelDebugger);
}
}