Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Side by Side Diff: rlz/test/rlz_test_helpers.cc

Issue 575253002: Clean up unused param in RegistryOverrideManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more callers Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome_elf/chrome_elf_util_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome_elf/chrome_elf_util_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698