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>&, |