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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 bool created_local_state() const override; | 116 bool created_local_state() const override; |
117 | 117 |
118 #if defined(ENABLE_WEBRTC) | 118 #if defined(ENABLE_WEBRTC) |
119 WebRtcLogUploader* webrtc_log_uploader() override; | 119 WebRtcLogUploader* webrtc_log_uploader() override; |
120 #endif | 120 #endif |
121 | 121 |
122 network_time::NetworkTimeTracker* network_time_tracker() override; | 122 network_time::NetworkTimeTracker* network_time_tracker() override; |
123 | 123 |
124 gcm::GCMDriver* gcm_driver() override; | 124 gcm::GCMDriver* gcm_driver() override; |
125 memory::OomPriorityManager* GetOomPriorityManager() override; | 125 memory::OomPriorityManager* GetOomPriorityManager() override; |
| 126 ShellIntegration::DefaultWebClientState CachedDefaultWebClientState() |
| 127 override; |
126 | 128 |
127 // Set the local state for tests. Consumer is responsible for cleaning it up | 129 // Set the local state for tests. Consumer is responsible for cleaning it up |
128 // afterwards (using ScopedTestingLocalState, for example). | 130 // afterwards (using ScopedTestingLocalState, for example). |
129 void SetLocalState(PrefService* local_state); | 131 void SetLocalState(PrefService* local_state); |
130 void SetProfileManager(ProfileManager* profile_manager); | 132 void SetProfileManager(ProfileManager* profile_manager); |
131 void SetIOThread(IOThread* io_thread); | 133 void SetIOThread(IOThread* io_thread); |
132 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); | 134 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); |
133 void SetSafeBrowsingService(SafeBrowsingService* sb_service); | 135 void SetSafeBrowsingService(SafeBrowsingService* sb_service); |
134 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); | 136 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); |
135 void SetNotificationUIManager( | 137 void SetNotificationUIManager( |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 class TestingBrowserProcessInitializer { | 204 class TestingBrowserProcessInitializer { |
203 public: | 205 public: |
204 TestingBrowserProcessInitializer(); | 206 TestingBrowserProcessInitializer(); |
205 ~TestingBrowserProcessInitializer(); | 207 ~TestingBrowserProcessInitializer(); |
206 | 208 |
207 private: | 209 private: |
208 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 210 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
209 }; | 211 }; |
210 | 212 |
211 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 213 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |