OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 // Note that we need a MessageLoop for the next call to work. | 103 // Note that we need a MessageLoop for the next call to work. |
104 clipboard_.reset(new Clipboard); | 104 clipboard_.reset(new Clipboard); |
105 } | 105 } |
106 return clipboard_.get(); | 106 return clipboard_.get(); |
107 } | 107 } |
108 | 108 |
109 virtual NotificationUIManager* notification_ui_manager() { | 109 virtual NotificationUIManager* notification_ui_manager() { |
110 return NULL; | 110 return NULL; |
111 } | 111 } |
112 | 112 |
| 113 virtual StatusTrayManager* status_tray_manager() { |
| 114 return NULL; |
| 115 } |
| 116 |
113 virtual GoogleURLTracker* google_url_tracker() { | 117 virtual GoogleURLTracker* google_url_tracker() { |
114 return NULL; | 118 return NULL; |
115 } | 119 } |
116 | 120 |
117 virtual IntranetRedirectDetector* intranet_redirect_detector() { | 121 virtual IntranetRedirectDetector* intranet_redirect_detector() { |
118 return NULL; | 122 return NULL; |
119 } | 123 } |
120 | 124 |
121 virtual AutomationProviderList* InitAutomationProviderList() { | 125 virtual AutomationProviderList* InitAutomationProviderList() { |
122 return NULL; | 126 return NULL; |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 private: | 165 private: |
162 NotificationService notification_service_; | 166 NotificationService notification_service_; |
163 scoped_ptr<base::WaitableEvent> shutdown_event_; | 167 scoped_ptr<base::WaitableEvent> shutdown_event_; |
164 scoped_ptr<Clipboard> clipboard_; | 168 scoped_ptr<Clipboard> clipboard_; |
165 std::string app_locale_; | 169 std::string app_locale_; |
166 | 170 |
167 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 171 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
168 }; | 172 }; |
169 | 173 |
170 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 174 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |