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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 #if defined(OS_LINUX) | 52 #if defined(OS_LINUX) |
53 virtual base::Thread* background_x11_thread(); | 53 virtual base::Thread* background_x11_thread(); |
54 #endif | 54 #endif |
55 | 55 |
56 virtual base::Thread* file_thread(); | 56 virtual base::Thread* file_thread(); |
57 | 57 |
58 virtual base::Thread* db_thread(); | 58 virtual base::Thread* db_thread(); |
59 | 59 |
60 virtual base::Thread* cache_thread(); | 60 virtual base::Thread* cache_thread(); |
61 | 61 |
62 virtual base::Thread* gpu_thread(); | |
63 | |
64 virtual WatchDogThread* watchdog_thread(); | 62 virtual WatchDogThread* watchdog_thread(); |
65 | 63 |
66 #if defined(OS_CHROMEOS) | 64 #if defined(OS_CHROMEOS) |
67 virtual base::Thread* web_socket_proxy_thread(); | 65 virtual base::Thread* web_socket_proxy_thread(); |
68 #endif | 66 #endif |
69 | 67 |
70 virtual ProfileManager* profile_manager(); | 68 virtual ProfileManager* profile_manager(); |
71 | 69 |
72 virtual PrefService* local_state(); | 70 virtual PrefService* local_state(); |
73 | 71 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 179 |
182 private: | 180 private: |
183 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. | 181 // TODO(phajdan.jr): Temporary, for http://crbug.com/61062. |
184 // After the transition is over, we should just stack-allocate it. | 182 // After the transition is over, we should just stack-allocate it. |
185 scoped_ptr<TestingBrowserProcess> browser_process_; | 183 scoped_ptr<TestingBrowserProcess> browser_process_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); | 185 DISALLOW_COPY_AND_ASSIGN(ScopedTestingBrowserProcess); |
188 }; | 186 }; |
189 | 187 |
190 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 188 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |