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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; | 101 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; |
102 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE; | 102 virtual DownloadStatusUpdater* download_status_updater() OVERRIDE; |
103 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE; | 103 virtual DownloadRequestLimiter* download_request_limiter() OVERRIDE; |
104 | 104 |
105 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 105 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
106 virtual void StartAutoupdateTimer() OVERRIDE {} | 106 virtual void StartAutoupdateTimer() OVERRIDE {} |
107 #endif | 107 #endif |
108 | 108 |
109 virtual ChromeNetLog* net_log() OVERRIDE; | 109 virtual ChromeNetLog* net_log() OVERRIDE; |
110 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 110 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
111 virtual ComponentUpdateService* component_updater() OVERRIDE; | 111 virtual component_updater::ComponentUpdateService* |
| 112 component_updater() OVERRIDE; |
112 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 113 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
113 virtual PnaclComponentInstaller* pnacl_component_installer() OVERRIDE; | 114 virtual component_updater::PnaclComponentInstaller* |
| 115 pnacl_component_installer() OVERRIDE; |
114 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; | 116 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; |
115 virtual StorageMonitor* storage_monitor() OVERRIDE; | 117 virtual StorageMonitor* storage_monitor() OVERRIDE; |
116 virtual MediaFileSystemRegistry* media_file_system_registry() OVERRIDE; | 118 virtual MediaFileSystemRegistry* media_file_system_registry() OVERRIDE; |
117 virtual bool created_local_state() const OVERRIDE; | 119 virtual bool created_local_state() const OVERRIDE; |
118 | 120 |
119 #if defined(ENABLE_WEBRTC) | 121 #if defined(ENABLE_WEBRTC) |
120 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; | 122 virtual WebRtcLogUploader* webrtc_log_uploader() OVERRIDE; |
121 #endif | 123 #endif |
122 | 124 |
123 // Set the local state for tests. Consumer is responsible for cleaning it up | 125 // Set the local state for tests. Consumer is responsible for cleaning it up |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 class TestingBrowserProcessInitializer { | 199 class TestingBrowserProcessInitializer { |
198 public: | 200 public: |
199 TestingBrowserProcessInitializer(); | 201 TestingBrowserProcessInitializer(); |
200 ~TestingBrowserProcessInitializer(); | 202 ~TestingBrowserProcessInitializer(); |
201 | 203 |
202 private: | 204 private: |
203 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 205 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
204 }; | 206 }; |
205 | 207 |
206 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 208 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |