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 #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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 return NULL; | 248 return NULL; |
249 } | 249 } |
250 | 250 |
251 // Schedules a task on the history backend and runs a nested loop until the | 251 // Schedules a task on the history backend and runs a nested loop until the |
252 // task is processed. This has the effect of blocking the caller until the | 252 // task is processed. This has the effect of blocking the caller until the |
253 // history service processes all pending requests. | 253 // history service processes all pending requests. |
254 void BlockUntilHistoryProcessesPendingRequests(); | 254 void BlockUntilHistoryProcessesPendingRequests(); |
255 | 255 |
256 // Creates and initializes a profile sync service if the tests require one. | 256 // Creates and initializes a profile sync service if the tests require one. |
257 virtual ProfileSyncService* GetProfileSyncService(); | 257 virtual ProfileSyncService* GetProfileSyncService(); |
| 258 virtual CloudPrintProxyService* GetCloudPrintProxyService() { return NULL; } |
258 | 259 |
259 protected: | 260 protected: |
260 // The path of the profile; the various database and other files are relative | 261 // The path of the profile; the various database and other files are relative |
261 // to this. | 262 // to this. |
262 FilePath path_; | 263 FilePath path_; |
263 base::Time start_time_; | 264 base::Time start_time_; |
264 scoped_ptr<PrefService> prefs_; | 265 scoped_ptr<PrefService> prefs_; |
265 | 266 |
266 private: | 267 private: |
267 // Destroys favicon service if it has been created. | 268 // Destroys favicon service if it has been created. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 | 348 |
348 virtual ProfileId GetRuntimeId() { | 349 virtual ProfileId GetRuntimeId() { |
349 return original_profile_->GetRuntimeId(); | 350 return original_profile_->GetRuntimeId(); |
350 } | 351 } |
351 | 352 |
352 protected: | 353 protected: |
353 Profile* original_profile_; | 354 Profile* original_profile_; |
354 }; | 355 }; |
355 | 356 |
356 #endif // CHROME_TEST_TESTING_PROFILE_H_ | 357 #endif // CHROME_TEST_TESTING_PROFILE_H_ |
OLD | NEW |