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