| 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_PRODUCT_UNITTEST_H_ | 5 #ifndef CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ |
| 6 #define CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ | 6 #define CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| 11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
| 12 #include "base/file_util.h" | 12 #include "base/file_util.h" |
| 13 #include "base/memory/scoped_temp_dir.h" | |
| 14 #include "base/path_service.h" | 13 #include "base/path_service.h" |
| 14 #include "base/scoped_temp_dir.h" |
| 15 #include "base/win/registry.h" | 15 #include "base/win/registry.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 class TestWithTempDir : public testing::Test { | 18 class TestWithTempDir : public testing::Test { |
| 19 protected: | 19 protected: |
| 20 virtual void SetUp(); | 20 virtual void SetUp(); |
| 21 virtual void TearDown(); | 21 virtual void TearDown(); |
| 22 | 22 |
| 23 ScopedTempDir test_dir_; | 23 ScopedTempDir test_dir_; |
| 24 }; | 24 }; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 static void DeleteAllTempKeys(); | 41 static void DeleteAllTempKeys(); |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 HKEY override_; | 44 HKEY override_; |
| 45 base::win::RegKey temp_key_; | 45 base::win::RegKey temp_key_; |
| 46 std::wstring temp_name_; | 46 std::wstring temp_name_; |
| 47 }; | 47 }; |
| 48 | 48 |
| 49 #endif // CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ | 49 #endif // CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ |
| OLD | NEW |