Skip to content

Commit 24ba7a0

Browse files
using mock registry in Wddm23Tests
prevent reading from Windows registry in unit tests Change-Id: I83f5d6f1db03aac4bc09665f8900606c07e757a5
1 parent 52d03a1 commit 24ba7a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

unit_tests/os_interface/windows/wddm23_tests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
#include "runtime/os_interface/windows/gdi_interface.h"
2424
#include "runtime/os_interface/windows/wddm/wddm23.h"
25+
#include "unit_tests/helpers/debug_manager_state_restore.h"
2526
#include "unit_tests/mocks/mock_wddm23.h"
2627
#include "unit_tests/os_interface/windows/gdi_dll_fixture.h"
2728
#include "test.h"
@@ -32,6 +33,7 @@ struct Wddm23Tests : public ::testing::Test, GdiDllFixture {
3233
void SetUp() override {
3334
GdiDllFixture::SetUp();
3435
wddm.reset(static_cast<WddmMock23 *>(Wddm::createWddm(WddmInterfaceVersion::Wddm23)));
36+
wddm->registryReader.reset(new RegistryReaderMock());
3537
}
3638

3739
void TearDown() override {

0 commit comments

Comments
 (0)