OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_TEST_TESTING_PROFILE_H_ | 5 #ifndef CHROME_TEST_TESTING_PROFILE_H_ |
6 #define CHROME_TEST_TESTING_PROFILE_H_ | 6 #define CHROME_TEST_TESTING_PROFILE_H_ |
7 | 7 |
8 #include "base/base_paths.h" | 8 #include "base/base_paths.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual TabRestoreService* GetTabRestoreService() { return NULL; } | 166 virtual TabRestoreService* GetTabRestoreService() { return NULL; } |
167 virtual void ResetTabRestoreService() {} | 167 virtual void ResetTabRestoreService() {} |
168 virtual void ReinitializeSpellChecker() {} | 168 virtual void ReinitializeSpellChecker() {} |
169 virtual SpellChecker* GetSpellChecker() { return NULL; } | 169 virtual SpellChecker* GetSpellChecker() { return NULL; } |
170 virtual void DeleteSpellChecker() {} | 170 virtual void DeleteSpellChecker() {} |
171 virtual WebKitContext* GetWebKitContext() { return NULL; } | 171 virtual WebKitContext* GetWebKitContext() { return NULL; } |
172 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } | 172 virtual WebKitContext* GetOffTheRecordWebKitContext() { return NULL; } |
173 virtual void MarkAsCleanShutdown() {} | 173 virtual void MarkAsCleanShutdown() {} |
174 virtual void InitExtensions() {} | 174 virtual void InitExtensions() {} |
175 virtual void InitWebResources() {} | 175 virtual void InitWebResources() {} |
| 176 virtual DesktopNotificationService* GetDesktopNotificationService() { |
| 177 return NULL; |
| 178 } |
176 | 179 |
177 // Schedules a task on the history backend and runs a nested loop until the | 180 // Schedules a task on the history backend and runs a nested loop until the |
178 // task is processed. This has the effect of blocking the caller until the | 181 // task is processed. This has the effect of blocking the caller until the |
179 // history service processes all pending requests. | 182 // history service processes all pending requests. |
180 void BlockUntilHistoryProcessesPendingRequests(); | 183 void BlockUntilHistoryProcessesPendingRequests(); |
181 | 184 |
182 // Creates and initializes a profile sync service if the tests require one. | 185 // Creates and initializes a profile sync service if the tests require one. |
183 void CreateProfileSyncService(); | 186 void CreateProfileSyncService(); |
184 virtual ProfileSyncService* GetProfileSyncService(); | 187 virtual ProfileSyncService* GetProfileSyncService(); |
185 | 188 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 | 241 |
239 virtual ProfileId GetRuntimeId() { | 242 virtual ProfileId GetRuntimeId() { |
240 return original_profile_->GetRuntimeId(); | 243 return original_profile_->GetRuntimeId(); |
241 } | 244 } |
242 | 245 |
243 protected: | 246 protected: |
244 Profile* original_profile_; | 247 Profile* original_profile_; |
245 }; | 248 }; |
246 | 249 |
247 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 250 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |