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 | 7 |
8 #include <windows.h> | 8 #include <windows.h> |
9 | 9 |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/files/scoped_temp_dir.h" | 11 #include "base/files/scoped_temp_dir.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 | 13 |
14 class TestWithTempDir : public testing::Test { | 14 class TestWithTempDir : public testing::Test { |
15 protected: | 15 protected: |
16 virtual void SetUp(); | 16 void SetUp() override; |
17 virtual void TearDown(); | 17 void TearDown() override; |
18 | 18 |
19 base::ScopedTempDir test_dir_; | 19 base::ScopedTempDir test_dir_; |
20 }; | 20 }; |
21 | 21 |
22 class TestWithTempDirAndDeleteTempOverrideKeys : public TestWithTempDir { | 22 class TestWithTempDirAndDeleteTempOverrideKeys : public TestWithTempDir { |
23 protected: | 23 protected: |
24 virtual void SetUp(); | 24 void SetUp() override; |
25 virtual void TearDown(); | 25 void TearDown() override; |
26 }; | 26 }; |
27 | 27 |
28 #endif // CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ | 28 #endif // CHROME_INSTALLER_UTIL_PRODUCT_UNITTEST_H_ |
OLD | NEW |