| OLD | NEW |
| 1 // Copyright (c) 2010 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_ |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 virtual ProfileManager* profile_manager() { | 70 virtual ProfileManager* profile_manager() { |
| 71 return NULL; | 71 return NULL; |
| 72 } | 72 } |
| 73 | 73 |
| 74 virtual PrefService* local_state() { | 74 virtual PrefService* local_state() { |
| 75 return NULL; | 75 return NULL; |
| 76 } | 76 } |
| 77 | 77 |
| 78 virtual WebAppInstallerService* web_app_installer_service() { | |
| 79 return NULL; | |
| 80 } | |
| 81 | |
| 82 virtual IconManager* icon_manager() { | 78 virtual IconManager* icon_manager() { |
| 83 return NULL; | 79 return NULL; |
| 84 } | 80 } |
| 85 | 81 |
| 86 virtual ThumbnailGenerator* GetThumbnailGenerator() { | 82 virtual ThumbnailGenerator* GetThumbnailGenerator() { |
| 87 return NULL; | 83 return NULL; |
| 88 } | 84 } |
| 89 | 85 |
| 90 virtual DevToolsManager* devtools_manager() { | 86 virtual DevToolsManager* devtools_manager() { |
| 91 return NULL; | 87 return NULL; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 NotificationService notification_service_; | 165 NotificationService notification_service_; |
| 170 scoped_ptr<base::WaitableEvent> shutdown_event_; | 166 scoped_ptr<base::WaitableEvent> shutdown_event_; |
| 171 unsigned int module_ref_count_; | 167 unsigned int module_ref_count_; |
| 172 scoped_ptr<Clipboard> clipboard_; | 168 scoped_ptr<Clipboard> clipboard_; |
| 173 std::string app_locale_; | 169 std::string app_locale_; |
| 174 | 170 |
| 175 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 171 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 176 }; | 172 }; |
| 177 | 173 |
| 178 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 174 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |