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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 | 145 |
146 private: | 146 private: |
147 // See CreateInstance() and DestoryInstance() above. | 147 // See CreateInstance() and DestoryInstance() above. |
148 TestingBrowserProcess(); | 148 TestingBrowserProcess(); |
149 ~TestingBrowserProcess() override; | 149 ~TestingBrowserProcess() override; |
150 | 150 |
151 scoped_ptr<content::NotificationService> notification_service_; | 151 scoped_ptr<content::NotificationService> notification_service_; |
152 unsigned int module_ref_count_; | 152 unsigned int module_ref_count_; |
153 std::string app_locale_; | 153 std::string app_locale_; |
154 | 154 |
155 #if defined(ENABLE_CONFIGURATION_POLICY) | |
156 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; | 155 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; |
157 bool created_browser_policy_connector_ = false; | 156 bool created_browser_policy_connector_ = false; |
158 #else | |
159 scoped_ptr<policy::PolicyService> policy_service_; | |
160 #endif | |
161 scoped_ptr<ProfileManager> profile_manager_; | 157 scoped_ptr<ProfileManager> profile_manager_; |
162 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 158 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
163 | 159 |
164 #if defined(ENABLE_PRINTING) | 160 #if defined(ENABLE_PRINTING) |
165 scoped_ptr<printing::PrintJobManager> print_job_manager_; | 161 scoped_ptr<printing::PrintJobManager> print_job_manager_; |
166 #endif | 162 #endif |
167 | 163 |
168 #if defined(ENABLE_PRINT_PREVIEW) | 164 #if defined(ENABLE_PRINT_PREVIEW) |
169 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 165 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
170 scoped_refptr<printing::PrintPreviewDialogController> | 166 scoped_refptr<printing::PrintPreviewDialogController> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 class TestingBrowserProcessInitializer { | 205 class TestingBrowserProcessInitializer { |
210 public: | 206 public: |
211 TestingBrowserProcessInitializer(); | 207 TestingBrowserProcessInitializer(); |
212 ~TestingBrowserProcessInitializer(); | 208 ~TestingBrowserProcessInitializer(); |
213 | 209 |
214 private: | 210 private: |
215 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 211 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
216 }; | 212 }; |
217 | 213 |
218 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 214 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |