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

Unified Diff: chrome/test/live_sync/profile_sync_service_test_harness.h

Issue 3078031: Simple offline startup integration test. (Closed)
Patch Set: Disable test. Created 10 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/live_sync/profile_sync_service_test_harness.h
diff --git a/chrome/test/live_sync/profile_sync_service_test_harness.h b/chrome/test/live_sync/profile_sync_service_test_harness.h
index aeae4a2ad4953bcb621183c477a1c3db7a07ea3e..bb88e4c79331caed35bb8d59ed1e4c01f0394d21 100644
--- a/chrome/test/live_sync/profile_sync_service_test_harness.h
+++ b/chrome/test/live_sync/profile_sync_service_test_harness.h
@@ -31,6 +31,10 @@ class ProfileSyncServiceTestHarness : public ProfileSyncServiceObserver {
// authenticated, and we are ready to process changes.
bool SetupSync();
+ // Retries a sync setup when the previous attempt was aborted by an
+ // authentication failure.
+ bool RetryAuthentication();
+
// ProfileSyncServiceObserver implementation.
virtual void OnStateChanged();
@@ -87,7 +91,9 @@ class ProfileSyncServiceTestHarness : public ProfileSyncServiceObserver {
WAITING_FOR_UPDATES,
// The sync client is fully synced and there are no pending updates.
FULLY_SYNCED,
- NUMBER_OF_STATES
+ // An authentication error has occurred.
+ AUTH_ERROR,
+ NUMBER_OF_STATES,
};
// Called from the observer when the current wait state has been completed.
@@ -102,8 +108,10 @@ class ProfileSyncServiceTestHarness : public ProfileSyncServiceObserver {
virtual bool AwaitStatusChangeWithTimeout(int timeout_seconds,
const std::string& reason);
- // Returns true if the service initialized correctly.
- bool WaitForServiceInit();
+ // Returns true if the service initialized correctly. Set
+ // is_auth_retry to true when calling this method second time after
+ // an autentication failure.
+ bool WaitForServiceInit(bool is_auth_retry);
WaitState wait_state_;
« no previous file with comments | « chrome/test/live_sync/offline_sync_test.cc ('k') | chrome/test/live_sync/profile_sync_service_test_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698