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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 value = new std::string("en"); | 133 value = new std::string("en"); |
134 return *value; | 134 return *value; |
135 } | 135 } |
136 | 136 |
137 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; } | 137 virtual MemoryModel memory_model() { return HIGH_MEMORY_MODEL; } |
138 | 138 |
139 virtual base::WaitableEvent* shutdown_event() { | 139 virtual base::WaitableEvent* shutdown_event() { |
140 return shutdown_event_.get(); | 140 return shutdown_event_.get(); |
141 } | 141 } |
142 | 142 |
| 143 virtual void CheckForInspectorFiles() {} |
| 144 virtual bool have_inspector_files() const { return true; } |
| 145 |
143 private: | 146 private: |
144 NotificationService notification_service_; | 147 NotificationService notification_service_; |
145 scoped_ptr<base::WaitableEvent> shutdown_event_; | 148 scoped_ptr<base::WaitableEvent> shutdown_event_; |
146 scoped_ptr<Clipboard> clipboard_; | 149 scoped_ptr<Clipboard> clipboard_; |
147 | 150 |
148 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); | 151 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); |
149 }; | 152 }; |
150 | 153 |
151 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ | 154 #endif // CHROME_TEST_TESTING_BROWSER_PROCESS_H_ |
OLD | NEW |