OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ | 5 #ifndef CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ |
6 #define CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ | 6 #define CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/test/test_reg_util_win.h" | 9 #include "base/test/test_reg_util_win.h" |
9 | 10 |
10 // Overrides the registry throughout its lifetime; used by GCAPI tests | 11 // Overrides the registry throughout its lifetime; used by GCAPI tests |
11 // overriding the registry. | 12 // overriding the registry. |
12 class GCAPITestRegistryOverrider { | 13 class GCAPITestRegistryOverrider { |
13 public: | 14 public: |
14 GCAPITestRegistryOverrider(); | 15 GCAPITestRegistryOverrider(); |
15 ~GCAPITestRegistryOverrider(); | 16 ~GCAPITestRegistryOverrider(); |
16 | 17 |
17 private: | 18 private: |
18 registry_util::RegistryOverrideManager override_manager_; | 19 registry_util::RegistryOverrideManager override_manager_; |
19 | 20 |
20 DISALLOW_COPY_AND_ASSIGN(GCAPITestRegistryOverrider); | 21 DISALLOW_COPY_AND_ASSIGN(GCAPITestRegistryOverrider); |
21 }; | 22 }; |
22 | 23 |
23 #endif // CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ | 24 #endif // CHROME_INSTALLER_GCAPI_GCAPI_TEST_REGISTRY_OVERRIDER_H_ |
OLD | NEW |