| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 ExtensionServiceTestBase(); | 43 ExtensionServiceTestBase(); |
| 44 virtual ~ExtensionServiceTestBase(); | 44 virtual ~ExtensionServiceTestBase(); |
| 45 | 45 |
| 46 void InitializeExtensionService(const ExtensionServiceInitParams& params); | 46 void InitializeExtensionService(const ExtensionServiceInitParams& params); |
| 47 | 47 |
| 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 InitializeGoodInstalledExtensionService(); |
| 53 |
| 52 void InitializeEmptyExtensionService(); | 54 void InitializeEmptyExtensionService(); |
| 53 | 55 |
| 54 void InitializeExtensionProcessManager(); | 56 void InitializeExtensionProcessManager(); |
| 55 | 57 |
| 56 void InitializeExtensionServiceWithUpdater(); | 58 void InitializeExtensionServiceWithUpdater(); |
| 57 | 59 |
| 58 static void SetUpTestCase(); | 60 static void SetUpTestCase(); |
| 59 | 61 |
| 60 virtual void SetUp() OVERRIDE; | 62 virtual void SetUp() OVERRIDE; |
| 61 virtual void TearDown() OVERRIDE; | 63 virtual void TearDown() OVERRIDE; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 82 size_t expected_extensions_count_; | 84 size_t expected_extensions_count_; |
| 83 | 85 |
| 84 #if defined OS_CHROMEOS | 86 #if defined OS_CHROMEOS |
| 85 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; | 87 chromeos::ScopedTestDeviceSettingsService test_device_settings_service_; |
| 86 chromeos::ScopedTestCrosSettings test_cros_settings_; | 88 chromeos::ScopedTestCrosSettings test_cros_settings_; |
| 87 chromeos::ScopedTestUserManager test_user_manager_; | 89 chromeos::ScopedTestUserManager test_user_manager_; |
| 88 #endif | 90 #endif |
| 89 }; | 91 }; |
| 90 | 92 |
| 91 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ | 93 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_UNITTEST_H_ |
| OLD | NEW |