| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 void SetRulesetService( | 142 void SetRulesetService( |
| 143 std::unique_ptr<subresource_filter::RulesetService> ruleset_service); | 143 std::unique_ptr<subresource_filter::RulesetService> ruleset_service); |
| 144 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); | 144 void SetSystemRequestContext(net::URLRequestContextGetter* context_getter); |
| 145 void SetNotificationUIManager( | 145 void SetNotificationUIManager( |
| 146 std::unique_ptr<NotificationUIManager> notification_ui_manager); | 146 std::unique_ptr<NotificationUIManager> notification_ui_manager); |
| 147 void SetNotificationPlatformBridge( | 147 void SetNotificationPlatformBridge( |
| 148 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge); | 148 std::unique_ptr<NotificationPlatformBridge> notification_platform_bridge); |
| 149 void SetRapporService(rappor::RapporService* rappor_service); | 149 void SetRapporService(rappor::RapporService* rappor_service); |
| 150 void SetShuttingDown(bool is_shutting_down); | 150 void SetShuttingDown(bool is_shutting_down); |
| 151 void ShutdownBrowserPolicyConnector(); | 151 void ShutdownBrowserPolicyConnector(); |
| 152 void SetPrintPreviewDialogController( |
| 153 printing::PrintPreviewDialogController* controller); |
| 152 | 154 |
| 153 private: | 155 private: |
| 154 // See CreateInstance() and DestoryInstance() above. | 156 // See CreateInstance() and DestoryInstance() above. |
| 155 TestingBrowserProcess(); | 157 TestingBrowserProcess(); |
| 156 ~TestingBrowserProcess() override; | 158 ~TestingBrowserProcess() override; |
| 157 | 159 |
| 158 std::unique_ptr<content::NotificationService> notification_service_; | 160 std::unique_ptr<content::NotificationService> notification_service_; |
| 159 std::string app_locale_; | 161 std::string app_locale_; |
| 160 bool is_shutting_down_; | 162 bool is_shutting_down_; |
| 161 | 163 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 class TestingBrowserProcessInitializer { | 225 class TestingBrowserProcessInitializer { |
| 224 public: | 226 public: |
| 225 TestingBrowserProcessInitializer(); | 227 TestingBrowserProcessInitializer(); |
| 226 ~TestingBrowserProcessInitializer(); | 228 ~TestingBrowserProcessInitializer(); |
| 227 | 229 |
| 228 private: | 230 private: |
| 229 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 231 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
| 230 }; | 232 }; |
| 231 | 233 |
| 232 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 234 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |