Index: sync/test/engine/mock_connection_manager.cc |
=================================================================== |
--- sync/test/engine/mock_connection_manager.cc (revision 132475) |
+++ sync/test/engine/mock_connection_manager.cc (working copy) |
@@ -48,7 +48,7 @@ |
store_birthday_sent_(false), |
client_stuck_(false), |
commit_time_rename_prepended_string_(""), |
- countdown_to_postbuffer_fail_(0), |
+ fail_next_postbuffer_(false), |
directory_(directory), |
mid_commit_observer_(NULL), |
throttling_(false), |
@@ -111,9 +111,8 @@ |
InvalidateAndClearAuthToken(); |
} |
- if (--countdown_to_postbuffer_fail_ == 0) { |
- // Fail as countdown hits zero. |
- params->response.server_status = HttpResponse::SYNC_SERVER_ERROR; |
+ if (fail_next_postbuffer_) { |
+ fail_next_postbuffer_ = false; |
return false; |
} |