| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UTIL_REGISTRY_TEST_DATA_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_REGISTRY_TEST_DATA_H_ |
| 6 #define CHROME_INSTALLER_UTIL_REGISTRY_TEST_DATA_H_ | 6 #define CHROME_INSTALLER_UTIL_REGISTRY_TEST_DATA_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 13 | 13 |
| 14 // A helper class for use by unit tests that need some registry space and data. | 14 // A helper class for use by unit tests that need some registry space and data. |
| 15 // BEWARE: Instances of this class irrevocably and recursively delete keys and | 15 // BEWARE: Instances of this class irrevocably and recursively delete keys and |
| 16 // values from the registry. Carefully read the comments for Initialize and | 16 // values from the registry. Carefully read the comments for Initialize and |
| 17 // Reset before use. | 17 // Reset before use. |
| 18 class RegistryTestData { | 18 class RegistryTestData { |
| 19 public: | 19 public: |
| 20 RegistryTestData(); | 20 RegistryTestData(); |
| 21 // Invokes Reset() on its way out. | 21 // Invokes Reset() on its way out. |
| 22 ~RegistryTestData(); | 22 ~RegistryTestData(); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 | 49 |
| 50 HKEY root_key_; | 50 HKEY root_key_; |
| 51 std::wstring base_path_; | 51 std::wstring base_path_; |
| 52 std::wstring empty_key_path_; | 52 std::wstring empty_key_path_; |
| 53 std::wstring non_empty_key_path_; | 53 std::wstring non_empty_key_path_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(RegistryTestData); | 55 DISALLOW_COPY_AND_ASSIGN(RegistryTestData); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 #endif // CHROME_INSTALLER_UTIL_REGISTRY_TEST_DATA_H_ | 58 #endif // CHROME_INSTALLER_UTIL_REGISTRY_TEST_DATA_H_ |
| OLD | NEW |