Setup registry reader in DriverInfoWindows constructor

Related-To: NEO-4457
Change-Id: I6d4dcced724c56ea350e27eb9494f32b3299e88a
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-03-16 17:04:06 +01:00
committed by sys_ocldev
parent 2869d83657
commit 196409f24c
6 changed files with 34 additions and 56 deletions

View File

@@ -991,7 +991,7 @@ TEST_F(DeviceGetCapsTest, givenSystemWithDriverInfoWhenGettingNameAndVersionThen
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
DriverInfoMock *driverInfoMock = new DriverInfoMock();
device->setDriverInfo(driverInfoMock);
device->driverInfo.reset(driverInfoMock);
device->initializeCaps();
const auto &caps = device->getDeviceInfo();
@@ -1003,7 +1003,7 @@ TEST_F(DeviceGetCapsTest, givenSystemWithDriverInfoWhenGettingNameAndVersionThen
TEST_F(DeviceGetCapsTest, givenSystemWithNoDriverInfoWhenGettingNameAndVersionThenReturnDefaultValues) {
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
device->setDriverInfo(nullptr);
device->driverInfo.reset();
device->name.clear();
device->initializeCaps();