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

Unified Diff: sync/sessions/test_util.h

Issue 124083002: Client-side changes to support retry GU. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
« no previous file with comments | « sync/sessions/sync_session.h ('k') | sync/sessions/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/test_util.h
diff --git a/sync/sessions/test_util.h b/sync/sessions/test_util.h
index c670128c6d095c9d2264802ba404f7321bddb4a6..bbdf32a5af5ea2d4ea419909138870ac813802dc 100644
--- a/sync/sessions/test_util.h
+++ b/sync/sessions/test_util.h
@@ -47,11 +47,14 @@ void SimulateConnectionFailure(ModelTypeSet requested_types,
const sessions::NudgeTracker& nudge_tracker,
sessions::SyncSession* session);
-// Poll successes and failures.
-void SimulatePollSuccess(ModelTypeSet requested_types,
- sessions::SyncSession* session);
-void SimulatePollFailed(ModelTypeSet requested_types,
- sessions::SyncSession* session);
+// Poll/Retry successes and failures.
+void SimulatePollRetrySuccess(ModelTypeSet requested_types,
+ sessions::SyncSession* session);
+void SimulatePollRetryFailed(ModelTypeSet requested_types,
+ sessions::SyncSession* session);
+
+void SimulateGuRetryDelayCommandImpl(sessions::SyncSession* session,
+ base::TimeDelta delay);
void SimulateThrottledImpl(sessions::SyncSession* session,
const base::TimeDelta& delta);
@@ -90,6 +93,10 @@ ACTION_P(SimulateSessionsCommitDelayUpdate, poll) {
SimulateSessionsCommitDelayUpdateImpl(arg0, arg1, arg2, poll);
}
+ACTION_P(SimulateGuRetryDelayCommand, delay) {
+ SimulateGuRetryDelayCommandImpl(arg0, delay);
+}
+
} // namespace test_util
} // namespace sessions
} // namespace syncer
« no previous file with comments | « sync/sessions/sync_session.h ('k') | sync/sessions/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698