OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BASE_TESTING_BROWSER_PROCESS_H_ | 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 11 #define CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
12 | 12 |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
16 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
17 #include "build/build_config.h" | 17 #include "build/build_config.h" |
18 #include "chrome/browser/browser_process.h" | 18 #include "chrome/browser/browser_process.h" |
| 19 #include "chrome/browser/browser_process_platform_part.h" |
19 | 20 |
20 class BackgroundModeManager; | 21 class BackgroundModeManager; |
21 class CRLSetFetcher; | 22 class CRLSetFetcher; |
22 class IOThread; | 23 class IOThread; |
23 class MHTMLGenerationManager; | 24 class MHTMLGenerationManager; |
24 class NotificationUIManager; | 25 class NotificationUIManager; |
25 class PrefService; | 26 class PrefService; |
26 class WatchDogThread; | 27 class WatchDogThread; |
27 | 28 |
28 namespace content { | 29 namespace content { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 PrefService* local_state_; | 148 PrefService* local_state_; |
148 IOThread* io_thread_; | 149 IOThread* io_thread_; |
149 net::URLRequestContextGetter* system_request_context_; | 150 net::URLRequestContextGetter* system_request_context_; |
150 | 151 |
151 scoped_ptr<BrowserProcessPlatformPart> platform_part_; | 152 scoped_ptr<BrowserProcessPlatformPart> platform_part_; |
152 | 153 |
153 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 154 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
154 }; | 155 }; |
155 | 156 |
156 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ | 157 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |