| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "chrome/browser/chromeos/settings/cros_settings.h" | 26 #include "chrome/browser/chromeos/settings/cros_settings.h" |
| 27 #include "chrome/browser/chromeos/settings/device_settings_service.h" | 27 #include "chrome/browser/chromeos/settings/device_settings_service.h" |
| 28 #endif | 28 #endif |
| 29 | 29 |
| 30 class ExtensionService; | 30 class ExtensionService; |
| 31 class Profile; | 31 class Profile; |
| 32 class TestingProfile; | 32 class TestingProfile; |
| 33 | 33 |
| 34 namespace content { | 34 namespace content { |
| 35 class BrowserContext; | 35 class BrowserContext; |
| 36 class ShellContext; |
| 36 } | 37 } |
| 37 | 38 |
| 38 namespace extensions { | 39 namespace extensions { |
| 39 | 40 |
| 40 class ExtensionRegistry; | 41 class ExtensionRegistry; |
| 41 class ManagementPolicy; | 42 class ManagementPolicy; |
| 42 | 43 |
| 43 // A unittest infrastructure which creates an ExtensionService. Whenever | 44 // A unittest infrastructure which creates an ExtensionService. Whenever |
| 44 // possible, use this instead of creating a browsertest. | 45 // possible, use this instead of creating a browsertest. |
| 45 // Note: Before adding methods to this class, please, please, please think about | 46 // Note: Before adding methods to this class, please, please, please think about |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 base::FilePath extensions_install_dir_; | 164 base::FilePath extensions_install_dir_; |
| 164 | 165 |
| 165 // chrome/test/data/extensions/ | 166 // chrome/test/data/extensions/ |
| 166 base::FilePath data_dir_; | 167 base::FilePath data_dir_; |
| 167 | 168 |
| 168 content::InProcessUtilityThreadHelper in_process_utility_thread_helper_; | 169 content::InProcessUtilityThreadHelper in_process_utility_thread_helper_; |
| 169 | 170 |
| 170 // The associated ExtensionRegistry, for convenience. | 171 // The associated ExtensionRegistry, for convenience. |
| 171 extensions::ExtensionRegistry* registry_; | 172 extensions::ExtensionRegistry* registry_; |
| 172 | 173 |
| 174 std::unique_ptr<content::ShellContext> shell_context_; |
| 175 |
| 173 #if defined OS_CHROMEOS | 176 #if defined OS_CHROMEOS |
| 174 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; | 177 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; |
| 175 chromeos::ScopedTestCrosSettings test_cros_settings_; | 178 chromeos::ScopedTestCrosSettings test_cros_settings_; |
| 176 chromeos::ScopedTestUserManager test_user_manager_; | 179 chromeos::ScopedTestUserManager test_user_manager_; |
| 177 #endif | 180 #endif |
| 178 | 181 |
| 179 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestBase); | 182 DISALLOW_COPY_AND_ASSIGN(ExtensionServiceTestBase); |
| 180 }; | 183 }; |
| 181 | 184 |
| 182 } // namespace extensions | 185 } // namespace extensions |
| 183 | 186 |
| 184 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ | 187 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_TEST_BASE_H_ |
| OLD | NEW |