Chromium Code Reviews| Index: chrome_frame/test/chrome_frame_test_utils.h |
| =================================================================== |
| --- chrome_frame/test/chrome_frame_test_utils.h (revision 97861) |
| +++ chrome_frame/test/chrome_frame_test_utils.h (working copy) |
| @@ -17,6 +17,7 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "base/message_loop.h" |
| #include "base/process_util.h" |
| +#include "base/test/test_reg_util_win.h" |
| #include "base/win/registry.h" |
| #include "base/win/scoped_comptr.h" |
| @@ -285,21 +286,6 @@ |
| // during test runs. |
| base::ProcessHandle StartCrashService(); |
| -class TempRegKeyOverride { |
| - public: |
| - static const wchar_t kTempTestKeyPath[]; |
| - |
| - TempRegKeyOverride(HKEY override, const wchar_t* temp_name); |
| - ~TempRegKeyOverride(); |
| - |
| - static void DeleteAllTempKeys(); |
| - |
| - protected: |
| - HKEY override_; |
| - base::win::RegKey temp_key_; |
| - std::wstring temp_name_; |
| -}; |
| - |
| // Used in tests where we reference the registry and don't want to run into |
| // problems where existing registry settings might conflict with the |
| // expectations of the test. |
| @@ -308,11 +294,13 @@ |
| ScopedVirtualizeHklmAndHkcu(); |
| ~ScopedVirtualizeHklmAndHkcu(); |
| + // Removes all overrides and deletes all temporary test keys used by the |
| + // overrides. |
| + void RemoveAllOverrides(); |
| + |
| protected: |
| - scoped_ptr<TempRegKeyOverride> hklm_; |
| - scoped_ptr<TempRegKeyOverride> hkcu_; |
| + registry_util::RegistryOverrideManager override_manager_; |
| }; |
| - |
|
tommi (sloooow) - chröme
2011/08/23 20:33:24
empty line removed by accident?
Roger Tawa OOO till Jul 10th
2011/08/23 21:08:02
Oops, fixed.
|
| // Attempts to kill all the processes on the current machine that were launched |
| // from the given executable name, ending them with the given exit code. If |
| // filter is non-null, then only processes selected by the filter are killed. |