Add control on platform life cycle.

Change-Id: I5c24b41747d822b71dd57e9a949cf25fcc78a453
This commit is contained in:
Mrozek, Michal
2018-06-26 16:15:48 +02:00
committed by sys_ocldev
parent 0f91c3bc47
commit a21c0a0074
27 changed files with 90 additions and 31 deletions

View File

@@ -52,11 +52,8 @@ const char *gCBadDompilerDllName = "libbad_compiler.so";
class CompilerInterfaceTest : public DeviceFixture,
public ::testing::Test {
public:
CompilerInterfaceTest() {
//
}
void SetUp() override {
constructPlatform();
DeviceFixture::SetUp();
retVal = CL_SUCCESS;
@@ -102,6 +99,7 @@ class CompilerInterfaceTest : public DeviceFixture,
pCompilerInterface.reset();
DeviceFixture::TearDown();
platformImpl.reset(nullptr);
}
std::unique_ptr<MockCompilerInterface> pCompilerInterface = nullptr;