Move OsContext id setting to constructor.

Change-Id: I1b809befc02536257800e3667307b8deabd5c95d
This commit is contained in:
Mrozek, Michal
2018-09-12 07:47:55 +02:00
committed by sys_ocldev
parent 8e33ec04c5
commit 581805cc88
15 changed files with 39 additions and 27 deletions

View File

@@ -37,7 +37,7 @@ TEST(OsInterfaceTest, GivenLinuxOsInterfaceWhenDeviceHandleQueriedthenZeroIsRetu
TEST(OsContextTest, WhenOsContextIsCreatedThenImplIsAvailable) {
OSInterface osInterface;
auto osContext = std::make_unique<OsContext>(&osInterface);
auto osContext = std::make_unique<OsContext>(&osInterface, 0u);
EXPECT_NE(nullptr, osContext->get());
}
} // namespace OCLRT
} // namespace OCLRT