diff options
author | Sean Hall <r.sean.hall@gmail.com> | 2022-02-28 18:38:46 -0600 |
---|---|---|
committer | Sean Hall <r.sean.hall@gmail.com> | 2022-03-01 11:37:00 -0600 |
commit | 7e61f48f6be0849cb0c0da796ec77603c14532e5 (patch) | |
tree | 154019fc14c82f62a2480023c92775ccf2995a76 /src/burn/test/BurnUnitTest/TestRegistryFixture.h | |
parent | 815b407c1f370dd71efc21248b49e63519a57cb4 (diff) | |
download | wix-7e61f48f6be0849cb0c0da796ec77603c14532e5.tar.gz wix-7e61f48f6be0849cb0c0da796ec77603c14532e5.tar.bz2 wix-7e61f48f6be0849cb0c0da796ec77603c14532e5.zip |
Factor out TestRegistryFixture so other tests can mock regutil API's.
Diffstat (limited to 'src/burn/test/BurnUnitTest/TestRegistryFixture.h')
-rw-r--r-- | src/burn/test/BurnUnitTest/TestRegistryFixture.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/burn/test/BurnUnitTest/TestRegistryFixture.h b/src/burn/test/BurnUnitTest/TestRegistryFixture.h new file mode 100644 index 00000000..283efe42 --- /dev/null +++ b/src/burn/test/BurnUnitTest/TestRegistryFixture.h | |||
@@ -0,0 +1,30 @@ | |||
1 | #pragma once | ||
2 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
3 | |||
4 | namespace WixBuildTools | ||
5 | { | ||
6 | namespace TestSupport | ||
7 | { | ||
8 | using namespace System; | ||
9 | |||
10 | public ref class TestRegistryFixture : IDisposable | ||
11 | { | ||
12 | private: | ||
13 | String^ rootPath; | ||
14 | String^ hkcuPath; | ||
15 | String^ hklmPath; | ||
16 | public: | ||
17 | TestRegistryFixture(); | ||
18 | |||
19 | ~TestRegistryFixture(); | ||
20 | |||
21 | void SetUp(); | ||
22 | |||
23 | void TearDown(); | ||
24 | |||
25 | String^ GetDirectHkcuPath(... array<String^>^ paths); | ||
26 | |||
27 | String^ GetDirectHklmPath(... array<String^>^ paths); | ||
28 | }; | ||
29 | } | ||
30 | } | ||