| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 virtual void SetApplicationLocale(const std::string& app_locale) { | 142 virtual void SetApplicationLocale(const std::string& app_locale) { |
| 143 app_locale_ = app_locale; | 143 app_locale_ = app_locale; |
| 144 } | 144 } |
| 145 | 145 |
| 146 virtual base::WaitableEvent* shutdown_event() { | 146 virtual base::WaitableEvent* shutdown_event() { |
| 147 return shutdown_event_.get(); | 147 return shutdown_event_.get(); |
| 148 } | 148 } |
| 149 | 149 |
| 150 virtual void CheckForInspectorFiles() {} | 150 virtual void CheckForInspectorFiles() {} |
| 151 | 151 |
| 152 #if defined(OS_WIN) | 152 #if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| 153 virtual void StartAutoupdateTimer() {} | 153 virtual void StartAutoupdateTimer() {} |
| 154 #endif // OS_WIN | 154 #endif |
| 155 | 155 |
| 156 virtual bool have_inspector_files() const { return true; } | 156 virtual bool have_inspector_files() const { return true; } |
| 157 #if defined(IPC_MESSAGE_LOG_ENABLED) | 157 #if defined(IPC_MESSAGE_LOG_ENABLED) |
| 158 virtual void SetIPCLoggingEnabled(bool enable) {} | 158 virtual void SetIPCLoggingEnabled(bool enable) {} |
| 159 #endif | 159 #endif |
| 160 | 160 |
| 161 private: | 161 private: |
| 162 NotificationService notification_service_; | 162 NotificationService notification_service_; |
| 163 scoped_ptr<base::WaitableEvent> shutdown_event_; | 163 scoped_ptr<base::WaitableEvent> shutdown_event_; |
| 164 scoped_ptr<Clipboard> clipboard_; | 164 scoped_ptr<Clipboard> clipboard_; |
| 165 std::string app_locale_; | 165 std::string app_locale_; |
| 166 | 166 |
| 167 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 167 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
| 168 }; | 168 }; |
| 169 | 169 |
| 170 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 170 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
| OLD | NEW |