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

Unified Diff: components/sync/engine_impl/cycle/test_util.h

Issue 2475043002: [Sync] Sync client should to exponential backoff when receive partial failure (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « components/sync/engine_impl/cycle/sync_cycle.h ('k') | components/sync/engine_impl/cycle/test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/engine_impl/cycle/test_util.h
diff --git a/components/sync/engine_impl/cycle/test_util.h b/components/sync/engine_impl/cycle/test_util.h
index cd49a66cfa9a1b7f8b6681bf683c6ddf2a0042d6..ece69060f0af5a5175d4cbfd6d9f5d37bc584139 100644
--- a/components/sync/engine_impl/cycle/test_util.h
+++ b/components/sync/engine_impl/cycle/test_util.h
@@ -59,6 +59,8 @@ void SimulateTypesThrottledImpl(SyncCycle* cycle,
ModelTypeSet types,
const base::TimeDelta& delta);
+void SimulatePartialFailureImpl(SyncCycle* cycle, ModelTypeSet types);
+
// Works with poll cycles.
void SimulatePollIntervalUpdateImpl(ModelTypeSet requested_types,
SyncCycle* cycle,
@@ -78,6 +80,10 @@ ACTION_P2(SimulateTypesThrottled, types, throttle) {
SimulateTypesThrottledImpl(arg0, types, throttle);
}
+ACTION_P(SimulatePartialFailure, types) {
+ SimulatePartialFailureImpl(arg0, types);
+}
+
ACTION_P(SimulatePollIntervalUpdate, poll) {
SimulatePollIntervalUpdateImpl(arg0, arg1, poll);
}
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle.h ('k') | components/sync/engine_impl/cycle/test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698