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

Unified Diff: trunk/src/sync/sessions/test_util.cc

Issue 135923002: Revert 244381 "Support GU retry command in sync engine. The comm..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « trunk/src/sync/sessions/test_util.h ('k') | trunk/src/sync/test/engine/fake_sync_scheduler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/sync/sessions/test_util.cc
===================================================================
--- trunk/src/sync/sessions/test_util.cc (revision 244437)
+++ trunk/src/sync/sessions/test_util.cc (working copy)
@@ -81,15 +81,15 @@
NETWORK_CONNECTION_UNAVAILABLE);
}
-void SimulatePollRetrySuccess(ModelTypeSet requested_types,
- sessions::SyncSession* session) {
+void SimulatePollSuccess(ModelTypeSet requested_types,
+ sessions::SyncSession* session) {
ASSERT_EQ(0U, session->status_controller().num_server_changes_remaining());
session->mutable_status_controller()->set_last_download_updates_result(
SYNCER_OK);
}
-void SimulatePollRetryFailed(ModelTypeSet requested_types,
- sessions::SyncSession* session) {
+void SimulatePollFailed(ModelTypeSet requested_types,
+ sessions::SyncSession* session) {
ASSERT_EQ(0U, session->status_controller().num_server_changes_remaining());
session->mutable_status_controller()->set_last_download_updates_result(
SERVER_RETURN_TRANSIENT_ERROR);
@@ -116,7 +116,7 @@
ModelTypeSet requested_types,
sessions::SyncSession* session,
const base::TimeDelta& new_poll) {
- SimulatePollRetrySuccess(requested_types, session);
+ SimulatePollSuccess(requested_types, session);
session->delegate()->OnReceivedLongPollIntervalUpdate(new_poll);
}
@@ -129,13 +129,6 @@
session->delegate()->OnReceivedSessionsCommitDelay(new_delay);
}
-void SimulateGuRetryDelayCommandImpl(sessions::SyncSession* session,
- base::TimeDelta delay) {
- session->mutable_status_controller()->set_last_download_updates_result(
- SYNCER_OK);
- session->delegate()->OnReceivedGuRetryDelay(delay);
-}
-
} // namespace test_util
} // namespace sessions
} // namespace syncer
« no previous file with comments | « trunk/src/sync/sessions/test_util.h ('k') | trunk/src/sync/test/engine/fake_sync_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698