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

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

Issue 10584019: sync: Remove ClearUserData command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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/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 f3c8ccdfb4b19076079aeafebe87063a7043e316..84a07ddcd513897cdc6cf1bf7f734113c505f1a0 100644
--- a/sync/test/engine/mock_connection_manager.cc
+++ b/sync/test/engine/mock_connection_manager.cc
@@ -145,8 +145,6 @@ bool MockConnectionManager::PostBufferToPath(PostBufferParams* params,
ProcessCommit(&post, &response);
} else if (post.message_contents() == ClientToServerMessage::GET_UPDATES) {
ProcessGetUpdates(&post, &response);
- } else if (post.message_contents() == ClientToServerMessage::CLEAR_DATA) {
- ProcessClearData(&post, &response);
} else {
EXPECT_TRUE(false) << "Unknown/unsupported ClientToServerMessage";
return false;
@@ -452,21 +450,6 @@ void MockConnectionManager::ProcessGetUpdates(ClientToServerMessage* csm,
update_queue_.pop_front();
}
-void MockConnectionManager::SetClearUserDataResponseStatus(
- sync_pb::SyncEnums::ErrorType errortype ) {
- // Note: this is not a thread-safe set, ok for now. NOT ok if tests
- // run the syncer on the background thread while this method is called.
- clear_user_data_response_errortype_ = errortype;
-}
-
-void MockConnectionManager::ProcessClearData(ClientToServerMessage* csm,
- ClientToServerResponse* response) {
- CHECK(csm->has_clear_user_data());
- ASSERT_EQ(csm->message_contents(), ClientToServerMessage::CLEAR_DATA);
- response->clear_user_data();
- response->set_error_code(clear_user_data_response_errortype_);
-}
-
bool MockConnectionManager::ShouldConflictThisCommit() {
bool conflict = false;
if (conflict_all_commits_) {
« 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