OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 95 |
96 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 96 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
97 virtual void StartAutoupdateTimer() OVERRIDE {} | 97 virtual void StartAutoupdateTimer() OVERRIDE {} |
98 #endif | 98 #endif |
99 | 99 |
100 virtual ChromeNetLog* net_log() OVERRIDE; | 100 virtual ChromeNetLog* net_log() OVERRIDE; |
101 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; | 101 virtual prerender::PrerenderTracker* prerender_tracker() OVERRIDE; |
102 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; | 102 virtual MHTMLGenerationManager* mhtml_generation_manager() OVERRIDE; |
103 virtual ComponentUpdateService* component_updater() OVERRIDE; | 103 virtual ComponentUpdateService* component_updater() OVERRIDE; |
104 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; | 104 virtual CRLSetFetcher* crl_set_fetcher() OVERRIDE; |
| 105 virtual AudioManager* audio_manager() OVERRIDE; |
105 | 106 |
106 // Set the local state for tests. Consumer is responsible for cleaning it up | 107 // Set the local state for tests. Consumer is responsible for cleaning it up |
107 // afterwards (using ScopedTestingLocalState, for example). | 108 // afterwards (using ScopedTestingLocalState, for example). |
108 void SetLocalState(PrefService* local_state); | 109 void SetLocalState(PrefService* local_state); |
109 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); | 110 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); |
110 void SetProfileManager(ProfileManager* profile_manager); | 111 void SetProfileManager(ProfileManager* profile_manager); |
111 void SetIOThread(IOThread* io_thread); | 112 void SetIOThread(IOThread* io_thread); |
112 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); | 113 void SetBrowserPolicyConnector(policy::BrowserPolicyConnector* connector); |
113 | 114 |
114 private: | 115 private: |
(...skipping 11 matching lines...) Expand all Loading... |
126 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 127 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
127 scoped_refptr<printing::PrintPreviewTabController> | 128 scoped_refptr<printing::PrintPreviewTabController> |
128 print_preview_tab_controller_; | 129 print_preview_tab_controller_; |
129 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 130 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
130 IOThread* io_thread_; | 131 IOThread* io_thread_; |
131 | 132 |
132 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 133 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
133 }; | 134 }; |
134 | 135 |
135 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 136 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |