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

Unified Diff: chrome/browser/sync/profile_sync_service_mock.h

Issue 8665011: sync: remove GetAuthenticatedUsername from ProfileSyncService/SyncBackendHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review2 Created 9 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service_mock.h
diff --git a/chrome/browser/sync/profile_sync_service_mock.h b/chrome/browser/sync/profile_sync_service_mock.h
index 0868f5c640141c88b882d671d1db4bf25420a937..23dcce2a5c94639da6b26f0357dd263ff7f7c67e 100644
--- a/chrome/browser/sync/profile_sync_service_mock.h
+++ b/chrome/browser/sync/profile_sync_service_mock.h
@@ -21,8 +21,13 @@
class ProfileSyncServiceMock : public ProfileSyncService {
public:
ProfileSyncServiceMock();
+ explicit ProfileSyncServiceMock(Profile* profile);
virtual ~ProfileSyncServiceMock();
+ // A utility used by sync tests to create a TestingProfile with a Google
+ // Services username stored in a (Testing)PrefService.
+ static Profile* MakeSignedInTestingProfile();
+
MOCK_METHOD0(DisableForUser, void());
MOCK_METHOD2(OnBackendInitialized,
void(const browser_sync::WeakHandle<browser_sync::JsBackend>&,
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698