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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 virtual extensions::EventRouterForwarder* | 81 virtual extensions::EventRouterForwarder* |
82 extension_event_router_forwarder() OVERRIDE; | 82 extension_event_router_forwarder() OVERRIDE; |
83 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; | 83 virtual NotificationUIManager* notification_ui_manager() OVERRIDE; |
84 virtual message_center::MessageCenter* message_center() OVERRIDE; | 84 virtual message_center::MessageCenter* message_center() OVERRIDE; |
85 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; | 85 virtual IntranetRedirectDetector* intranet_redirect_detector() OVERRIDE; |
86 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; | 86 virtual AutomationProviderList* GetAutomationProviderList() OVERRIDE; |
87 virtual void CreateDevToolsHttpProtocolHandler( | 87 virtual void CreateDevToolsHttpProtocolHandler( |
88 chrome::HostDesktopType host_desktop_type, | 88 chrome::HostDesktopType host_desktop_type, |
89 const std::string& ip, | 89 const std::string& ip, |
90 int port, | 90 int port) OVERRIDE; |
91 const std::string& frontend_url) OVERRIDE; | |
92 virtual unsigned int AddRefModule() OVERRIDE; | 91 virtual unsigned int AddRefModule() OVERRIDE; |
93 virtual unsigned int ReleaseModule() OVERRIDE; | 92 virtual unsigned int ReleaseModule() OVERRIDE; |
94 virtual bool IsShuttingDown() OVERRIDE; | 93 virtual bool IsShuttingDown() OVERRIDE; |
95 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; | 94 virtual printing::PrintJobManager* print_job_manager() OVERRIDE; |
96 virtual printing::PrintPreviewDialogController* | 95 virtual printing::PrintPreviewDialogController* |
97 print_preview_dialog_controller() OVERRIDE; | 96 print_preview_dialog_controller() OVERRIDE; |
98 virtual printing::BackgroundPrintingManager* | 97 virtual printing::BackgroundPrintingManager* |
99 background_printing_manager() OVERRIDE; | 98 background_printing_manager() OVERRIDE; |
100 virtual const std::string& GetApplicationLocale() OVERRIDE; | 99 virtual const std::string& GetApplicationLocale() OVERRIDE; |
101 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; | 100 virtual void SetApplicationLocale(const std::string& app_locale) OVERRIDE; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 class TestingBrowserProcessInitializer { | 194 class TestingBrowserProcessInitializer { |
196 public: | 195 public: |
197 TestingBrowserProcessInitializer(); | 196 TestingBrowserProcessInitializer(); |
198 ~TestingBrowserProcessInitializer(); | 197 ~TestingBrowserProcessInitializer(); |
199 | 198 |
200 private: | 199 private: |
201 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 200 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
202 }; | 201 }; |
203 | 202 |
204 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 203 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |