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_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 virtual base::WaitableEvent* shutdown_event(); | 113 virtual base::WaitableEvent* shutdown_event(); |
114 | 114 |
115 virtual void CheckForInspectorFiles() {} | 115 virtual void CheckForInspectorFiles() {} |
116 | 116 |
117 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 117 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
118 virtual void StartAutoupdateTimer() {} | 118 virtual void StartAutoupdateTimer() {} |
119 #endif | 119 #endif |
120 | 120 |
121 virtual bool have_inspector_files() const; | 121 virtual bool have_inspector_files() const; |
122 | 122 |
123 virtual ChromeNetLog* net_log() { return NULL; } | 123 virtual ChromeNetLog* net_log(); |
124 | 124 |
125 #if defined(IPC_MESSAGE_LOG_ENABLED) | 125 #if defined(IPC_MESSAGE_LOG_ENABLED) |
126 virtual void SetIPCLoggingEnabled(bool enable) {} | 126 virtual void SetIPCLoggingEnabled(bool enable) {} |
127 #endif | 127 #endif |
128 | 128 |
129 void SetPrefService(PrefService* pref_service); | 129 void SetPrefService(PrefService* pref_service); |
130 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); | 130 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); |
131 | 131 |
132 private: | 132 private: |
133 NotificationService notification_service_; | 133 NotificationService notification_service_; |
(...skipping 19 matching lines...) Expand all Loading... |
153 | 153 |
154 private: | 154 private: |
155 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 155 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
156 // After the transition is over, we should just stack-allocate it. | 156 // After the transition is over, we should just stack-allocate it. |
157 scoped_ptr<TestingBrowserProcess> browser_process_; | 157 scoped_ptr<TestingBrowserProcess> browser_process_; |
158 | 158 |
159 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 159 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
160 }; | 160 }; |
161 | 161 |
162 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 162 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |