| OLD | NEW |
| 1 // Copyright (c) 2009 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_ |
| 11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 11 #define CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 virtual NotificationUIManager* notification_ui_manager() { | 106 virtual NotificationUIManager* notification_ui_manager() { |
| 107 return NULL; | 107 return NULL; |
| 108 } | 108 } |
| 109 | 109 |
| 110 virtual GoogleURLTracker* google_url_tracker() { | 110 virtual GoogleURLTracker* google_url_tracker() { |
| 111 return NULL; | 111 return NULL; |
| 112 } | 112 } |
| 113 | 113 |
| 114 virtual IntranetRedirectDetector* intranet_redirect_detector() { |
| 115 return NULL; |
| 116 } |
| 117 |
| 114 virtual AutomationProviderList* InitAutomationProviderList() { | 118 virtual AutomationProviderList* InitAutomationProviderList() { |
| 115 return NULL; | 119 return NULL; |
| 116 } | 120 } |
| 117 | 121 |
| 118 virtual void InitDebuggerWrapper(int port) { | 122 virtual void InitDebuggerWrapper(int port) { |
| 119 } | 123 } |
| 120 | 124 |
| 121 virtual unsigned int AddRefModule() { | 125 virtual unsigned int AddRefModule() { |
| 122 return 1; | 126 return 1; |
| 123 } | 127 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 153 | 157 |
| 154 private: | 158 private: |
| 155 NotificationService notification_service_; | 159 NotificationService notification_service_; |
| 156 scoped_ptr<base::WaitableEvent> shutdown_event_; | 160 scoped_ptr<base::WaitableEvent> shutdown_event_; |
| 157 scoped_ptr<Clipboard> clipboard_; | 161 scoped_ptr<Clipboard> clipboard_; |
| 158 | 162 |
| 159 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 163 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 160 }; | 164 }; |
| 161 | 165 |
| 162 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 166 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |