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

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

Issue 1505953002: [Sync] Remove ScopedServerStatusWatcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change format of deprecated names. Created 5 years 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/test/engine/mock_connection_manager.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/test/engine/mock_connection_manager.cc
diff --git a/sync/test/engine/mock_connection_manager.cc b/sync/test/engine/mock_connection_manager.cc
index 42e3ec779c741f7710d94e92fa78f89304f8edb9..a82ac6343621d3349801e2388b68e19bf0c943e6 100644
--- a/sync/test/engine/mock_connection_manager.cc
+++ b/sync/test/engine/mock_connection_manager.cc
@@ -48,7 +48,6 @@ MockConnectionManager::MockConnectionManager(syncable::Directory* directory,
mid_commit_observer_(NULL),
throttling_(false),
partialThrottling_(false),
- fail_with_auth_invalid_(false),
fail_non_periodic_get_updates_(false),
next_position_in_parent_(2),
use_legacy_bookmarks_protocol_(false),
@@ -76,9 +75,8 @@ void MockConnectionManager::SetMidCommitObserver(
}
bool MockConnectionManager::PostBufferToPath(PostBufferParams* params,
- const string& path,
- const string& auth_token,
- ScopedServerStatusWatcher* watcher) {
+ const string& path,
+ const string& auth_token) {
ClientToServerMessage post;
CHECK(post.ParseFromString(params->buffer_in));
CHECK(post.has_protocol_version());
@@ -171,9 +169,6 @@ bool MockConnectionManager::PostBufferToPath(PostBufferParams* params,
}
partialThrottling_ = false;
}
-
- if (fail_with_auth_invalid_)
- response.set_error_code(SyncEnums::AUTH_INVALID);
}
response.SerializeToString(&params->buffer_out);
« no previous file with comments | « sync/test/engine/mock_connection_manager.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698