Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(660)

Side by Side Diff: chrome/test/testing_profile.h

Issue 1566047: First cut of Cloud Print Proxy implementation. The code is not enabled for no... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Final review changes Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/common/pref_names.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698