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, |