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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 #else | 149 #else |
150 scoped_ptr<policy::PolicyService> policy_service_; | 150 scoped_ptr<policy::PolicyService> policy_service_; |
151 #endif | 151 #endif |
152 scoped_ptr<ProfileManager> profile_manager_; | 152 scoped_ptr<ProfileManager> profile_manager_; |
153 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 153 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
154 | 154 |
155 #if defined(ENABLE_PRINTING) | 155 #if defined(ENABLE_PRINTING) |
156 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 156 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
157 #endif | 157 #endif |
158 | 158 |
159 #if defined(ENABLE_FULL_PRINTING) | 159 #if defined(ENABLE_PRINT_PREVIEW) |
160 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 160 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
161 scoped_refptr<printing::PrintPreviewDialogController> | 161 scoped_refptr<printing::PrintPreviewDialogController> |
162 print_preview_dialog_controller_; | 162 print_preview_dialog_controller_; |
163 #endif | 163 #endif |
164 | 164 |
165 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 165 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
166 scoped_refptr<SafeBrowsingService> sb_service_; | 166 scoped_refptr<SafeBrowsingService> sb_service_; |
167 #endif // !defined(OS_IOS) | 167 #endif // !defined(OS_IOS) |
168 | 168 |
169 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; | 169 scoped_ptr<network_time::NetworkTimeTracker> network_time_tracker_; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 class TestingBrowserProcessInitializer { | 201 class TestingBrowserProcessInitializer { |
202 public: | 202 public: |
203 TestingBrowserProcessInitializer(); | 203 TestingBrowserProcessInitializer(); |
204 ~TestingBrowserProcessInitializer(); | 204 ~TestingBrowserProcessInitializer(); |
205 | 205 |
206 private: | 206 private: |
207 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 207 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
208 }; | 208 }; |
209 | 209 |
210 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 210 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |