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

Unified Diff: sync/test/engine/mock_connection_manager.h

Issue 10107004: Revert 132455 - Abort sync cycles when download step fails (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_unittest.cc ('k') | sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_connection_manager.h
===================================================================
--- sync/test/engine/mock_connection_manager.h (revision 132475)
+++ sync/test/engine/mock_connection_manager.h (working copy)
@@ -117,8 +117,7 @@
// issue multiple requests during a sync cycle.
void NextUpdateBatch();
- void FailNextPostBufferToPathCall() { countdown_to_postbuffer_fail_ = 1; }
- void FailNthPostBufferToPathCall(int n) { countdown_to_postbuffer_fail_ = n; }
+ void FailNextPostBufferToPathCall() { fail_next_postbuffer_ = true; }
void SetClearUserDataResponseStatus(sync_pb::SyncEnums::ErrorType errortype);
@@ -223,11 +222,6 @@
return store_birthday_;
}
- // Explicitly indicate that we will not be fetching some updates.
- void ClearUpdatesQueue() {
- update_queue_.clear();
- }
-
// Locate the most recent update message for purpose of alteration.
sync_pb::SyncEntity* GetMutableLastUpdate();
@@ -305,9 +299,8 @@
bool client_stuck_;
std::string commit_time_rename_prepended_string_;
- // On each PostBufferToPath() call, we decrement this counter. The call fails
- // iff we hit zero at that call.
- int countdown_to_postbuffer_fail_;
+ // Fail on the next call to PostBufferToPath().
+ bool fail_next_postbuffer_;
// Our directory. Used only to ensure that we are not holding the transaction
// lock when performing network I/O. Can be NULL if the test author is
« no previous file with comments | « sync/sessions/sync_session_unittest.cc ('k') | sync/test/engine/mock_connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698