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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 | 91 |
92 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 92 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
93 virtual void StartAutoupdateTimer() OVERRIDE {} | 93 virtual void StartAutoupdateTimer() OVERRIDE {} |
94 #endif | 94 #endif |
95 | 95 |
96 virtual ChromeNetLog* net_log() OVERRIDE; | 96 virtual ChromeNetLog* net_log() OVERRIDE; |
97 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 97 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
98 virtual ComponentUpdateService* component_updater() OVERRIDE; | 98 virtual ComponentUpdateService* component_updater() OVERRIDE; |
99 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 99 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
100 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; | 100 virtual BookmarkPromptController* bookmark_prompt_controller() OVERRIDE; |
| 101 virtual void PlatformSpecificCommandLineProcessing( |
| 102 const CommandLine& command_line) OVERRIDE; |
101 | 103 |
102 // Set the local state for tests. Consumer is responsible for cleaning it up | 104 // Set the local state for tests. Consumer is responsible for cleaning it up |
103 // afterwards (using ScopedTestingLocalState, for example). | 105 // afterwards (using ScopedTestingLocalState, for example). |
104 void SetLocalState(PrefService* local_state); | 106 void SetLocalState(PrefService* local_state); |
105 void SetProfileManager(ProfileManager* profile_manager); | 107 void SetProfileManager(ProfileManager* profile_manager); |
106 void SetIOThread(IOThread* io_thread); | 108 void SetIOThread(IOThread* io_thread); |
107 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); | 109 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); |
108 void SetSafeBrowsingService(SafeBrowsingService* sb_service); | 110 void SetSafeBrowsingService(SafeBrowsingService* sb_service); |
109 void SetBookmarkPromptController(BookmarkPromptController* controller); | 111 void SetBookmarkPromptController(BookmarkPromptController* controller); |
110 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); | 112 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); |
(...skipping 23 matching lines...) Expand all Loading... |
134 | 136 |
135 // The following objects are not owned by TestingBrowserProcess: | 137 // The following objects are not owned by TestingBrowserProcess: |
136 PrefService* local_state_; | 138 PrefService* local_state_; |
137 IOThread* io_thread_; | 139 IOThread* io_thread_; |
138 net::URLRequestContextGetter* system_request_context_; | 140 net::URLRequestContextGetter* system_request_context_; |
139 | 141 |
140 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 142 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
141 }; | 143 }; |
142 | 144 |
143 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 145 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |