OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 26 matching lines...) Expand all Loading... |
37 } | 37 } |
38 | 38 |
39 virtual MetricsService* metrics_service() { | 39 virtual MetricsService* metrics_service() { |
40 return NULL; | 40 return NULL; |
41 } | 41 } |
42 | 42 |
43 virtual base::Thread* io_thread() { | 43 virtual base::Thread* io_thread() { |
44 return NULL; | 44 return NULL; |
45 } | 45 } |
46 | 46 |
| 47 #if defined(OS_LINUX) |
| 48 virtual base::Thread* background_x11_thread() { |
| 49 return NULL; |
| 50 } |
| 51 #endif |
| 52 |
47 virtual base::Thread* file_thread() { | 53 virtual base::Thread* file_thread() { |
48 return NULL; | 54 return NULL; |
49 } | 55 } |
50 | 56 |
51 virtual base::Thread* db_thread() { | 57 virtual base::Thread* db_thread() { |
52 return NULL; | 58 return NULL; |
53 } | 59 } |
54 | 60 |
55 virtual ProfileManager* profile_manager() { | 61 virtual ProfileManager* profile_manager() { |
56 return NULL; | 62 return NULL; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 | 142 |
137 private: | 143 private: |
138 NotificationService notification_service_; | 144 NotificationService notification_service_; |
139 scoped_ptr<base::WaitableEvent> shutdown_event_; | 145 scoped_ptr<base::WaitableEvent> shutdown_event_; |
140 scoped_ptr<ClipboardService> clipboard_service_; | 146 scoped_ptr<ClipboardService> clipboard_service_; |
141 | 147 |
142 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 148 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
143 }; | 149 }; |
144 | 150 |
145 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 151 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |