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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 virtual MetricsService* metrics_service() OVERRIDE; | 51 virtual MetricsService* metrics_service() OVERRIDE; |
52 virtual IOThread* io_thread() OVERRIDE; | 52 virtual IOThread* io_thread() OVERRIDE; |
53 virtual WatchDogThread* watchdog_thread() OVERRIDE; | 53 virtual WatchDogThread* watchdog_thread() OVERRIDE; |
54 virtual ProfileManager* profile_manager() OVERRIDE; | 54 virtual ProfileManager* profile_manager() OVERRIDE; |
55 virtual PrefService* local_state() OVERRIDE; | 55 virtual PrefService* local_state() OVERRIDE; |
56 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; | 56 virtual chrome_variations::VariationsService* variations_service() OVERRIDE; |
57 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; | 57 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; |
58 virtual policy::PolicyService* policy_service() OVERRIDE; | 58 virtual policy::PolicyService* policy_service() OVERRIDE; |
59 virtual IconManager* icon_manager() OVERRIDE; | 59 virtual IconManager* icon_manager() OVERRIDE; |
60 virtual GLStringManager* gl_string_manager() OVERRIDE; | 60 virtual GLStringManager* gl_string_manager() OVERRIDE; |
| 61 virtual GpuModeManager* gpu_mode_manager() OVERRIDE; |
61 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() OVERRIDE; | 62 virtual RenderWidgetSnapshotTaker* GetRenderWidgetSnapshotTaker() OVERRIDE; |
62 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; | 63 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; |
63 virtual StatusTray* status_tray() OVERRIDE; | 64 virtual StatusTray* status_tray() OVERRIDE; |
64 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; | 65 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; |
65 virtual safe_browsing::ClientSideDetectionService* | 66 virtual safe_browsing::ClientSideDetectionService* |
66 safe_browsing_detection_service() OVERRIDE; | 67 safe_browsing_detection_service() OVERRIDE; |
67 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; | 68 virtual net::URLRequestContextGetter* system_request_context() OVERRIDE; |
68 | 69 |
69 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
70 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; | 71 virtual chromeos::OomPriorityManager* oom_priority_manager() OVERRIDE; |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 148 |
148 // The following objects are not owned by TestingBrowserProcess: | 149 // The following objects are not owned by TestingBrowserProcess: |
149 PrefService* local_state_; | 150 PrefService* local_state_; |
150 IOThread* io_thread_; | 151 IOThread* io_thread_; |
151 net::URLRequestContextGetter* system_request_context_; | 152 net::URLRequestContextGetter* system_request_context_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
154 }; | 155 }; |
155 | 156 |
156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 157 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |