| 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 // An implementation of BrowserProcess for unit tests that fails for most | 5 // An implementation of BrowserProcess for unit tests that fails for most |
| 6 // services. By preventing creation of services, we reduce dependencies and | 6 // services. By preventing creation of services, we reduce dependencies and |
| 7 // keep the profile clean. Clients of this class must handle the NULL return | 7 // keep the profile clean. Clients of this class must handle the NULL return |
| 8 // value, however. | 8 // value, however. |
| 9 | 9 |
| 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual MetricsService* metrics_service() OVERRIDE; | 64 virtual MetricsService* metrics_service() OVERRIDE; |
| 65 virtual rappor::RapporService* rappor_service() OVERRIDE; | 65 virtual rappor::RapporService* rappor_service() OVERRIDE; |
| 66 virtual IOThread* io_thread() OVERRIDE; | 66 virtual IOThread* io_thread() OVERRIDE; |
| 67 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 67 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
| 68 virtual ProfileManager* profile_manager() OVERRIDE; | 68 virtual ProfileManager* profile_manager() OVERRIDE; |
| 69 virtual PrefService* local_state() OVERRIDE; | 69 virtual PrefService* local_state() OVERRIDE; |
| 70 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 70 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
| 71 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; | 71 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; |
| 72 virtual policy::PolicyService* policy_service() OVERRIDE; | 72 virtual policy::PolicyService* policy_service() OVERRIDE; |
| 73 virtual IconManager* icon_manager() OVERRIDE; | 73 virtual IconManager* icon_manager() OVERRIDE; |
| 74 virtual GLStringManager* gl_string_manager() OVERRIDE; | |
| 75 virtual GpuModeManager* gpu_mode_manager() OVERRIDE; | 74 virtual GpuModeManager* gpu_mode_manager() OVERRIDE; |
| 75 virtual GpuPrefManager* gpu_pref_manager() OVERRIDE; |
| 76 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; | 76 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; |
| 77 virtual void set_background_mode_manager_for_test( | 77 virtual void set_background_mode_manager_for_test( |
| 78 scoped_ptr<BackgroundModeManager> manager) OVERRIDE; | 78 scoped_ptr<BackgroundModeManager> manager) OVERRIDE; |
| 79 virtual StatusTray* status_tray() OVERRIDE; | 79 virtual StatusTray* status_tray() OVERRIDE; |
| 80 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; | 80 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; |
| 81 virtual safe_browsing::ClientSideDetectionService* | 81 virtual safe_browsing::ClientSideDetectionService* |
| 82 safe_browsing_detection_service() OVERRIDE; | 82 safe_browsing_detection_service() OVERRIDE; |
| 83 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 83 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
| 84 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; | 84 virtual BrowserProcessPlatformPart* platform_part() OVERRIDE; |
| 85 | 85 |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 class TestingBrowserProcessInitializer { | 201 class TestingBrowserProcessInitializer { |
| 202 public: | 202 public: |
| 203 TestingBrowserProcessInitializer(); | 203 TestingBrowserProcessInitializer(); |
| 204 ~TestingBrowserProcessInitializer(); | 204 ~TestingBrowserProcessInitializer(); |
| 205 | 205 |
| 206 private: | 206 private: |
| 207 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 207 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
| 208 }; | 208 }; |
| 209 | 209 |
| 210 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 210 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |