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

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
Index: sync/sessions/test_util.h
diff --git a/sync/sessions/test_util.h b/sync/sessions/test_util.h
index c670128c6d095c9d2264802ba404f7321bddb4a6..2e18834bb47843029e79d0bac1963a0d7d738ed7 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,
+ int delay_seconds);
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_seconds) {
+ SimulateGuRetryDelayCommandImpl(arg0, delay_seconds);
+}
+
} // namespace test_util
} // namespace sessions
} // namespace syncer

Powered by Google App Engine
This is Rietveld 408576698