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

Unified Diff: sync/sessions/test_util.cc

Issue 10537032: [Sync] Fix sync scheduler/session logic determining successful commands. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove comment Created 8 years, 6 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.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/test_util.cc
diff --git a/sync/sessions/test_util.cc b/sync/sessions/test_util.cc
index 0b1ad2418c8be86c75e3f78ca7b90734ab024ce4..701072ee99a8d747c0433f10c246c6de0aa43351 100644
--- a/sync/sessions/test_util.cc
+++ b/sync/sessions/test_util.cc
@@ -38,6 +38,15 @@ void SimulateSuccess(sessions::SyncSession* session,
ADD_FAILURE() << "Shouldn't have more to sync";
}
ASSERT_EQ(0U, session->status_controller().num_server_changes_remaining());
+ session->SetFinished();
+ if (end == SYNCER_END) {
+ session->mutable_status_controller()->set_last_download_updates_result(
+ SYNCER_OK);
+ session->mutable_status_controller()->set_last_post_commit_result(
+ SYNCER_OK);
+ session->mutable_status_controller()->
+ set_last_process_commit_response_result(SYNCER_OK);
+ }
}
void SimulateThrottledImpl(sessions::SyncSession* session,
« no previous file with comments | « sync/sessions/sync_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698