| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 void InitializeInstalledExtensionService( | 48 void InitializeInstalledExtensionService( |
| 49 const base::FilePath& prefs_file, | 49 const base::FilePath& prefs_file, |
| 50 const base::FilePath& source_install_dir); | 50 const base::FilePath& source_install_dir); |
| 51 | 51 |
| 52 void InitializeEmptyExtensionService(); | 52 void InitializeEmptyExtensionService(); |
| 53 | 53 |
| 54 void InitializeExtensionProcessManager(); | 54 void InitializeExtensionProcessManager(); |
| 55 | 55 |
| 56 void InitializeExtensionServiceWithUpdater(); | 56 void InitializeExtensionServiceWithUpdater(); |
| 57 | 57 |
| 58 void InitializeRequestContext(); | |
| 59 | |
| 60 static void SetUpTestCase(); | 58 static void SetUpTestCase(); |
| 61 | 59 |
| 62 virtual void SetUp() OVERRIDE; | 60 virtual void SetUp() OVERRIDE; |
| 63 virtual void TearDown() OVERRIDE; | 61 virtual void TearDown() OVERRIDE; |
| 64 | 62 |
| 65 void set_extensions_enabled(bool enabled) { | 63 void set_extensions_enabled(bool enabled) { |
| 66 service_->set_extensions_enabled(enabled); | 64 service_->set_extensions_enabled(enabled); |
| 67 } | 65 } |
| 68 | 66 |
| 69 protected: | 67 protected: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 88 content::TestBrowserThread io_thread_; | 86 content::TestBrowserThread io_thread_; |
| 89 | 87 |
| 90 #if defined OS_CHROMEOS | 88 #if defined OS_CHROMEOS |
| 91 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; | 89 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; |
| 92 chromeos::ScopedTestCrosSettings test_cros_settings_; | 90 chromeos::ScopedTestCrosSettings test_cros_settings_; |
| 93 chromeos::ScopedTestUserManager test_user_manager_; | 91 chromeos::ScopedTestUserManager test_user_manager_; |
| 94 #endif | 92 #endif |
| 95 }; | 93 }; |
| 96 | 94 |
| 97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ | 95 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
| OLD | NEW |