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

Side by Side Diff: components/sync/test/engine/mock_connection_manager.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Fix tools and iOS. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Mock ServerConnectionManager class for use in client regression tests. 5 // Mock ServerConnectionManager class for use in client regression tests.
6 6
7 #include "components/sync/test/engine/mock_connection_manager.h" 7 #include "components/sync/test/engine/mock_connection_manager.h"
8 8
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 12 matching lines...) Expand all
23 using std::map; 23 using std::map;
24 using std::string; 24 using std::string;
25 using sync_pb::ClientToServerMessage; 25 using sync_pb::ClientToServerMessage;
26 using sync_pb::CommitMessage; 26 using sync_pb::CommitMessage;
27 using sync_pb::CommitResponse; 27 using sync_pb::CommitResponse;
28 using sync_pb::GetUpdatesMessage; 28 using sync_pb::GetUpdatesMessage;
29 using sync_pb::SyncEnums; 29 using sync_pb::SyncEnums;
30 30
31 namespace syncer { 31 namespace syncer {
32 32
33 using syncable::WriteTransaction; 33 using syncer::syncable::WriteTransaction;
34 34
35 static char kValidAuthToken[] = "AuthToken"; 35 static char kValidAuthToken[] = "AuthToken";
36 static char kCacheGuid[] = "kqyg7097kro6GSUod+GSg=="; 36 static char kCacheGuid[] = "kqyg7097kro6GSUod+GSg==";
37 37
38 MockConnectionManager::MockConnectionManager(syncable::Directory* directory, 38 MockConnectionManager::MockConnectionManager(syncable::Directory* directory,
39 CancelationSignal* signal) 39 CancelationSignal* signal)
40 : ServerConnectionManager("unused", 0, false, signal), 40 : ServerConnectionManager("unused", 0, false, signal),
41 server_reachable_(true), 41 server_reachable_(true),
42 conflict_all_commits_(false), 42 conflict_all_commits_(false),
43 conflict_n_commits_(0), 43 conflict_n_commits_(0),
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
759 server_status_ = HttpResponse::SERVER_CONNECTION_OK; 759 server_status_ = HttpResponse::SERVER_CONNECTION_OK;
760 } 760 }
761 } 761 }
762 762
763 void MockConnectionManager::SetServerStatus( 763 void MockConnectionManager::SetServerStatus(
764 HttpResponse::ServerConnectionCode server_status) { 764 HttpResponse::ServerConnectionCode server_status) {
765 server_status_ = server_status; 765 server_status_ = server_status;
766 } 766 }
767 767
768 } // namespace syncer 768 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698