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

Unified Diff: sync/sessions/status_controller_unittest.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/status_controller.cc ('k') | sync/sessions/sync_session.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/status_controller_unittest.cc
diff --git a/sync/sessions/status_controller_unittest.cc b/sync/sessions/status_controller_unittest.cc
index 9f38e8091b47de70c8b8921866181e1518ff1f89..2e0f44dc7070e216cf90df6638bb45e48d168e33 100644
--- a/sync/sessions/status_controller_unittest.cc
+++ b/sync/sessions/status_controller_unittest.cc
@@ -66,12 +66,8 @@ TEST_F(StatusControllerTest, ReadYourWrites) {
status.set_last_download_updates_result(SYNCER_OK);
EXPECT_EQ(SYNCER_OK, status.error().last_download_updates_result);
- status.set_last_post_commit_result(SYNC_AUTH_ERROR);
- EXPECT_EQ(SYNC_AUTH_ERROR, status.error().last_post_commit_result);
-
- status.set_last_process_commit_response_result(SYNC_SERVER_ERROR);
- EXPECT_EQ(SYNC_SERVER_ERROR,
- status.error().last_process_commit_response_result);
+ status.set_commit_result(SYNC_AUTH_ERROR);
+ EXPECT_EQ(SYNC_AUTH_ERROR, status.error().commit_result);
for (int i = 0; i < 14; i++)
status.increment_num_successful_commits();
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/sessions/sync_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698