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 StartAutoupdateTimer() OVERRIDE {} | 101 virtual void StartAutoupdateTimer() OVERRIDE {} |
102 #endif | 102 #endif |
103 | 103 |
104 virtual ChromeNetLog* net_log() OVERRIDE; | 104 virtual ChromeNetLog* net_log() OVERRIDE; |
105 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 105 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
106 virtual ComponentUpdateService* component_updater() OVERRIDE; | 106 virtual ComponentUpdateService* component_updater() OVERRIDE; |
107 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 107 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
108 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; | 108 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; |
109 virtual chrome::MediaFileSystemRegistry* | 109 virtual chrome::MediaFileSystemRegistry* |
110 media_file_system_registry() OVERRIDE; | 110 media_file_system_registry() OVERRIDE; |
| 111 #if defined(OS_CHROMEOS) |
| 112 virtual policy::DevicePolicyChangeWatcher* |
| 113 device_policy_change_watcher() OVERRIDE; |
| 114 #endif |
111 virtual void PlatformSpecificCommandLineProcessing( | 115 virtual void PlatformSpecificCommandLineProcessing( |
112 const CommandLine& command_line) OVERRIDE; | 116 const CommandLine& command_line) OVERRIDE; |
113 | 117 |
114 // Set the local state for tests. Consumer is responsible for cleaning it up | 118 // Set the local state for tests. Consumer is responsible for cleaning it up |
115 // afterwards (using ScopedTestingLocalState, for example). | 119 // afterwards (using ScopedTestingLocalState, for example). |
116 void SetLocalState(PrefService* local_state); | 120 void SetLocalState(PrefService* local_state); |
117 void SetProfileManager(ProfileManager* profile_manager); | 121 void SetProfileManager(ProfileManager* profile_manager); |
118 void SetIOThread(IOThread* io_thread); | 122 void SetIOThread(IOThread* io_thread); |
119 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); | 123 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); |
120 void SetSafeBrowsingService(SafeBrowsingService* sb_service); | 124 void SetSafeBrowsingService(SafeBrowsingService* sb_service); |
(...skipping 29 matching lines...) Expand all Loading... |
150 | 154 |
151 // The following objects are not owned by TestingBrowserProcess: | 155 // The following objects are not owned by TestingBrowserProcess: |
152 PrefService* local_state_; | 156 PrefService* local_state_; |
153 IOThread* io_thread_; | 157 IOThread* io_thread_; |
154 net::URLRequestContextGetter* system_request_context_; | 158 net::URLRequestContextGetter* system_request_context_; |
155 | 159 |
156 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 160 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
157 }; | 161 }; |
158 | 162 |
159 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 163 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |