OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Main entry point for all unit tests. | 5 // Main entry point for all unit tests. |
6 | 6 |
7 #include "rlz_test_helpers.h" | 7 #include "rlz_test_helpers.h" |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <vector> | 10 #include <vector> |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // win32 APIs used by the tests continue to work: | 104 // win32 APIs used by the tests continue to work: |
105 // | 105 // |
106 // HKLM\System\CurrentControlSet\Control\Lsa\AccessProviders | 106 // HKLM\System\CurrentControlSet\Control\Lsa\AccessProviders |
107 // | 107 // |
108 // This seems to be required since Win7. | 108 // This seems to be required since Win7. |
109 ReadRegistryTree(base::win::RegKey(HKEY_LOCAL_MACHINE, | 109 ReadRegistryTree(base::win::RegKey(HKEY_LOCAL_MACHINE, |
110 kHKLMAccessProviders, | 110 kHKLMAccessProviders, |
111 KEY_READ), &data); | 111 KEY_READ), &data); |
112 } | 112 } |
113 | 113 |
114 override_manager->OverrideRegistry(HKEY_LOCAL_MACHINE, L"rlz_temp_hklm"); | 114 override_manager->OverrideRegistry(HKEY_LOCAL_MACHINE); |
115 override_manager->OverrideRegistry(HKEY_CURRENT_USER, L"rlz_temp_hkcu"); | 115 override_manager->OverrideRegistry(HKEY_CURRENT_USER); |
116 | 116 |
117 if (do_copy) { | 117 if (do_copy) { |
118 base::win::RegKey key( | 118 base::win::RegKey key( |
119 HKEY_LOCAL_MACHINE, kHKLMAccessProviders, KEY_ALL_ACCESS); | 119 HKEY_LOCAL_MACHINE, kHKLMAccessProviders, KEY_ALL_ACCESS); |
120 WriteRegistryTree(data, &key); | 120 WriteRegistryTree(data, &key); |
121 } | 121 } |
122 } | 122 } |
123 | 123 |
124 } // namespace | 124 } // namespace |
125 | 125 |
(...skipping 16 matching lines...) Expand all Loading... |
142 rlz_lib::testing::SetRlzStoreDirectory(base::FilePath()); | 142 rlz_lib::testing::SetRlzStoreDirectory(base::FilePath()); |
143 #endif // defined(OS_POSIX) | 143 #endif // defined(OS_POSIX) |
144 } | 144 } |
145 | 145 |
146 void RlzLibTestBase::SetUp() { | 146 void RlzLibTestBase::SetUp() { |
147 RlzLibTestNoMachineState::SetUp(); | 147 RlzLibTestNoMachineState::SetUp(); |
148 #if defined(OS_WIN) | 148 #if defined(OS_WIN) |
149 rlz_lib::CreateMachineState(); | 149 rlz_lib::CreateMachineState(); |
150 #endif // defined(OS_WIN) | 150 #endif // defined(OS_WIN) |
151 } | 151 } |
OLD | NEW |