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_ |
11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
12 | 12 |
| 13 #include <stdint.h> |
| 14 |
13 #include <string> | 15 #include <string> |
14 | 16 |
| 17 #include "base/macros.h" |
15 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
17 #include "build/build_config.h" | 20 #include "build/build_config.h" |
18 #include "chrome/browser/browser_process.h" | 21 #include "chrome/browser/browser_process.h" |
19 #include "chrome/browser/browser_process_platform_part.h" | 22 #include "chrome/browser/browser_process_platform_part.h" |
20 | 23 |
21 class BackgroundModeManager; | 24 class BackgroundModeManager; |
22 class CRLSetFetcher; | 25 class CRLSetFetcher; |
23 class IOThread; | 26 class IOThread; |
24 class MHTMLGenerationManager; | 27 class MHTMLGenerationManager; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 net::URLRequestContextGetter* system_request_context() override; | 85 net::URLRequestContextGetter* system_request_context() override; |
83 BrowserProcessPlatformPart* platform_part() override; | 86 BrowserProcessPlatformPart* platform_part() override; |
84 | 87 |
85 extensions::EventRouterForwarder* extension_event_router_forwarder() override; | 88 extensions::EventRouterForwarder* extension_event_router_forwarder() override; |
86 NotificationUIManager* notification_ui_manager() override; | 89 NotificationUIManager* notification_ui_manager() override; |
87 message_center::MessageCenter* message_center() override; | 90 message_center::MessageCenter* message_center() override; |
88 IntranetRedirectDetector* intranet_redirect_detector() override; | 91 IntranetRedirectDetector* intranet_redirect_detector() override; |
89 void CreateDevToolsHttpProtocolHandler( | 92 void CreateDevToolsHttpProtocolHandler( |
90 chrome::HostDesktopType host_desktop_type, | 93 chrome::HostDesktopType host_desktop_type, |
91 const std::string& ip, | 94 const std::string& ip, |
92 uint16 port) override; | 95 uint16_t port) override; |
93 unsigned int AddRefModule() override; | 96 unsigned int AddRefModule() override; |
94 unsigned int ReleaseModule() override; | 97 unsigned int ReleaseModule() override; |
95 bool IsShuttingDown() override; | 98 bool IsShuttingDown() override; |
96 printing::PrintJobManager* print_job_manager() override; | 99 printing::PrintJobManager* print_job_manager() override; |
97 printing::PrintPreviewDialogController* print_preview_dialog_controller() | 100 printing::PrintPreviewDialogController* print_preview_dialog_controller() |
98 override; | 101 override; |
99 printing::BackgroundPrintingManager* background_printing_manager() override; | 102 printing::BackgroundPrintingManager* background_printing_manager() override; |
100 const std::string& GetApplicationLocale() override; | 103 const std::string& GetApplicationLocale() override; |
101 void SetApplicationLocale(const std::string& app_locale) override; | 104 void SetApplicationLocale(const std::string& app_locale) override; |
102 DownloadStatusUpdater* download_status_updater() override; | 105 DownloadStatusUpdater* download_status_updater() override; |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 class TestingBrowserProcessInitializer { | 209 class TestingBrowserProcessInitializer { |
207 public: | 210 public: |
208 TestingBrowserProcessInitializer(); | 211 TestingBrowserProcessInitializer(); |
209 ~TestingBrowserProcessInitializer(); | 212 ~TestingBrowserProcessInitializer(); |
210 | 213 |
211 private: | 214 private: |
212 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); | 215 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcessInitializer); |
213 }; | 216 }; |
214 | 217 |
215 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 218 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |