OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 12 #pragma once |
13 | 13 |
14 #include <string> | 14 #include <string> |
15 | 15 |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
19 #include "content/common/notification_service.h" | 19 #include "content/common/notification_service.h" |
20 | 20 |
21 class BackgroundModeManager; | 21 class BackgroundModeManager; |
22 class IOThread; | 22 class IOThread; |
23 class GoogleURLTracker; | 23 class GoogleURLTracker; |
24 class MHTMLGenerationManager; | 24 class MHTMLGenerationManager; |
25 class NotificationUIManager; | 25 class NotificationUIManager; |
26 class PrefService; | 26 class PrefService; |
| 27 class SpdyConfigServiceManager; |
27 class WatchDogThread; | 28 class WatchDogThread; |
28 | 29 |
29 namespace base { | 30 namespace base { |
30 class WaitableEvent; | 31 class WaitableEvent; |
31 } | 32 } |
32 | 33 |
33 namespace policy { | 34 namespace policy { |
34 class BrowserPolicyConnector; | 35 class BrowserPolicyConnector; |
35 } | 36 } |
36 | 37 |
(...skipping 19 matching lines...) Expand all Loading... |
56 virtual base::Thread* db_thread(); | 57 virtual base::Thread* db_thread(); |
57 virtual base::Thread* cache_thread(); | 58 virtual base::Thread* cache_thread(); |
58 virtual WatchDogThread* watchdog_thread(); | 59 virtual WatchDogThread* watchdog_thread(); |
59 | 60 |
60 #if defined(OS_CHROMEOS) | 61 #if defined(OS_CHROMEOS) |
61 virtual base::Thread* web_socket_proxy_thread(); | 62 virtual base::Thread* web_socket_proxy_thread(); |
62 #endif | 63 #endif |
63 | 64 |
64 virtual ProfileManager* profile_manager(); | 65 virtual ProfileManager* profile_manager(); |
65 virtual PrefService* local_state(); | 66 virtual PrefService* local_state(); |
| 67 virtual SpdyConfigServiceManager* spdy_config_service_manager(); |
66 virtual policy::BrowserPolicyConnector* browser_policy_connector(); | 68 virtual policy::BrowserPolicyConnector* browser_policy_connector(); |
67 virtual IconManager* icon_manager(); | 69 virtual IconManager* icon_manager(); |
68 virtual ThumbnailGenerator* GetThumbnailGenerator(); | 70 virtual ThumbnailGenerator* GetThumbnailGenerator(); |
69 virtual DevToolsManager* devtools_manager(); | 71 virtual DevToolsManager* devtools_manager(); |
70 virtual SidebarManager* sidebar_manager(); | 72 virtual SidebarManager* sidebar_manager(); |
71 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); | 73 virtual TabCloseableStateWatcher* tab_closeable_state_watcher(); |
72 virtual BackgroundModeManager* background_mode_manager(); | 74 virtual BackgroundModeManager* background_mode_manager(); |
73 virtual StatusTray* status_tray(); | 75 virtual StatusTray* status_tray(); |
74 virtual SafeBrowsingService* safe_browsing_service(); | 76 virtual SafeBrowsingService* safe_browsing_service(); |
75 virtual safe_browsing::ClientSideDetectionService* | 77 virtual safe_browsing::ClientSideDetectionService* |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 scoped_ptr<NotificationUIManager> notification_ui_manager_; | 144 scoped_ptr<NotificationUIManager> notification_ui_manager_; |
143 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; | 145 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; |
144 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; | 146 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; |
145 IOThread* io_thread_; | 147 IOThread* io_thread_; |
146 scoped_ptr<DevToolsManager> devtools_manager_; | 148 scoped_ptr<DevToolsManager> devtools_manager_; |
147 | 149 |
148 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 150 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
149 }; | 151 }; |
150 | 152 |
151 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 153 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |