| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 } | 134 } |
| 135 | 135 |
| 136 virtual bool IsShuttingDown() { | 136 virtual bool IsShuttingDown() { |
| 137 return false; | 137 return false; |
| 138 } | 138 } |
| 139 | 139 |
| 140 virtual printing::PrintJobManager* print_job_manager() { | 140 virtual printing::PrintJobManager* print_job_manager() { |
| 141 return NULL; | 141 return NULL; |
| 142 } | 142 } |
| 143 | 143 |
| 144 virtual printing::PrintPreviewTabController* print_preview_tab_controller() { |
| 145 return NULL; |
| 146 } |
| 147 |
| 144 virtual const std::string& GetApplicationLocale() { | 148 virtual const std::string& GetApplicationLocale() { |
| 145 return app_locale_; | 149 return app_locale_; |
| 146 } | 150 } |
| 147 | 151 |
| 148 virtual void SetApplicationLocale(const std::string& app_locale) { | 152 virtual void SetApplicationLocale(const std::string& app_locale) { |
| 149 app_locale_ = app_locale; | 153 app_locale_ = app_locale; |
| 150 } | 154 } |
| 151 | 155 |
| 152 virtual DownloadStatusUpdater* download_status_updater() { | 156 virtual DownloadStatusUpdater* download_status_updater() { |
| 153 return NULL; | 157 return NULL; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 182 scoped_ptr<Clipboard> clipboard_; | 186 scoped_ptr<Clipboard> clipboard_; |
| 183 std::string app_locale_; | 187 std::string app_locale_; |
| 184 | 188 |
| 185 PrefService* pref_service_; | 189 PrefService* pref_service_; |
| 186 scoped_ptr<GoogleURLTracker> google_url_tracker_; | 190 scoped_ptr<GoogleURLTracker> google_url_tracker_; |
| 187 | 191 |
| 188 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 192 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 189 }; | 193 }; |
| 190 | 194 |
| 191 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 195 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |