OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
7 | 7 |
8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Though you could use this constructor, you probably want to use | 51 // Though you could use this constructor, you probably want to use |
52 // CreateDefaultInitParams(), and then make a change or two. | 52 // CreateDefaultInitParams(), and then make a change or two. |
53 ExtensionServiceInitParams(); | 53 ExtensionServiceInitParams(); |
54 }; | 54 }; |
55 | 55 |
56 protected: | 56 protected: |
57 ExtensionServiceTestBase(); | 57 ExtensionServiceTestBase(); |
58 virtual ~ExtensionServiceTestBase(); | 58 virtual ~ExtensionServiceTestBase(); |
59 | 59 |
60 // testing::Test implementation. | 60 // testing::Test implementation. |
61 virtual void SetUp() OVERRIDE; | 61 virtual void SetUp() override; |
62 static void SetUpTestCase(); // faux-verride (static override). | 62 static void SetUpTestCase(); // faux-verride (static override). |
63 | 63 |
64 // Create a set of InitParams to install an ExtensionService into |temp_dir_|. | 64 // Create a set of InitParams to install an ExtensionService into |temp_dir_|. |
65 ExtensionServiceInitParams CreateDefaultInitParams(); | 65 ExtensionServiceInitParams CreateDefaultInitParams(); |
66 | 66 |
67 // Initialize an ExtensionService according to the given |params|. | 67 // Initialize an ExtensionService according to the given |params|. |
68 void InitializeExtensionService(const ExtensionServiceInitParams& params); | 68 void InitializeExtensionService(const ExtensionServiceInitParams& params); |
69 | 69 |
70 // Initialize an empty ExtensionService using the default init params. | 70 // Initialize an empty ExtensionService using the default init params. |
71 void InitializeEmptyExtensionService(); | 71 void InitializeEmptyExtensionService(); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 #if defined OS_CHROMEOS | 136 #if defined OS_CHROMEOS |
137 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; | 137 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; |
138 chromeos::ScopedTestCrosSettings test_cros_settings_; | 138 chromeos::ScopedTestCrosSettings test_cros_settings_; |
139 chromeos::ScopedTestUserManager test_user_manager_; | 139 chromeos::ScopedTestUserManager test_user_manager_; |
140 #endif | 140 #endif |
141 }; | 141 }; |
142 | 142 |
143 } // namespace extensions | 143 } // namespace extensions |
144 | 144 |
145 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 145 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
OLD | NEW |