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

Unified Diff: sync/engine/backoff_delay_provider_unittest.cc

Issue 1553433002: [Sync] Sync should run canary cycle after any network related error (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix android test Created 4 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/engine/backoff_delay_provider.cc ('k') | sync/engine/net/server_connection_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/backoff_delay_provider_unittest.cc
diff --git a/sync/engine/backoff_delay_provider_unittest.cc b/sync/engine/backoff_delay_provider_unittest.cc
index 2e5818665f2f94b092e2e0f1ae00323078e7dfe9..f1a78d8a4b65934970bc3f6ebcc9f502bc004249 100644
--- a/sync/engine/backoff_delay_provider_unittest.cc
+++ b/sync/engine/backoff_delay_provider_unittest.cc
@@ -46,7 +46,7 @@ TEST_F(BackoffDelayProviderTest, GetInitialDelay) {
delay->GetInitialDelay(state).InSeconds());
state.last_download_updates_result = NETWORK_CONNECTION_UNAVAILABLE;
- EXPECT_EQ(kInitialBackoffImmediateRetrySeconds,
+ EXPECT_EQ(kInitialBackoffRetrySeconds,
delay->GetInitialDelay(state).InSeconds());
state.last_download_updates_result = SERVER_RETURN_TRANSIENT_ERROR;
@@ -74,7 +74,7 @@ TEST_F(BackoffDelayProviderTest, GetInitialDelay) {
delay->GetInitialDelay(state).InSeconds());
state.commit_result = NETWORK_CONNECTION_UNAVAILABLE;
- EXPECT_EQ(kInitialBackoffImmediateRetrySeconds,
+ EXPECT_EQ(kInitialBackoffRetrySeconds,
delay->GetInitialDelay(state).InSeconds());
state.commit_result = SERVER_RETURN_CONFLICT;
« no previous file with comments | « sync/engine/backoff_delay_provider.cc ('k') | sync/engine/net/server_connection_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698