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

Unified Diff: sync/sessions/test_util.cc

Issue 10523003: Refactor following sync commit loop change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Another rebase 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 701072ee99a8d747c0433f10c246c6de0aa43351..a54c8f004641c0296e823613ff3816ed26763bf6 100644
--- a/sync/sessions/test_util.cc
+++ b/sync/sessions/test_util.cc
@@ -22,7 +22,7 @@ void SimulateDownloadUpdatesFailed(sessions::SyncSession* session,
void SimulateCommitFailed(sessions::SyncSession* session,
SyncerStep begin, SyncerStep end) {
- session->mutable_status_controller()->set_last_post_commit_result(
+ session->mutable_status_controller()->set_commit_result(
SERVER_RETURN_TRANSIENT_ERROR);
}
@@ -42,10 +42,7 @@ void SimulateSuccess(sessions::SyncSession* session,
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);
+ session->mutable_status_controller()->set_commit_result(SYNCER_OK);
}
}
« 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