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

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

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "components/sync/test/engine/single_type_mock_server.h" 5 #include "components/sync/test/engine/single_type_mock_server.h"
6 6
7 #include "components/sync/base/time.h" 7 #include "components/sync/base/time.h"
8 8
9 using google::protobuf::RepeatedPtrField; 9 using google::protobuf::RepeatedPtrField;
10 10
11 namespace syncer { 11 namespace syncer {
12 12
13 SingleTypeMockServer::SingleTypeMockServer(ModelType type) 13 SingleTypeMockServer::SingleTypeMockServer(syncer::ModelType type)
14 : type_(type), type_root_id_(ModelTypeToRootTag(type)) {} 14 : type_(type), type_root_id_(ModelTypeToRootTag(type)) {}
15 15
16 SingleTypeMockServer::~SingleTypeMockServer() {} 16 SingleTypeMockServer::~SingleTypeMockServer() {}
17 17
18 sync_pb::SyncEntity SingleTypeMockServer::TypeRootUpdate() { 18 sync_pb::SyncEntity SingleTypeMockServer::TypeRootUpdate() {
19 sync_pb::SyncEntity entity; 19 sync_pb::SyncEntity entity;
20 20
21 entity.set_id_string(type_root_id_); 21 entity.set_id_string(type_root_id_);
22 entity.set_parent_id_string("r"); 22 entity.set_parent_id_string("r");
23 entity.set_version(1000); 23 entity.set_version(1000);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 return it->second; 167 return it->second;
168 } 168 }
169 } 169 }
170 170
171 void SingleTypeMockServer::SetServerVersion(const std::string& tag_hash, 171 void SingleTypeMockServer::SetServerVersion(const std::string& tag_hash,
172 int64_t version) { 172 int64_t version) {
173 server_versions_[tag_hash] = version; 173 server_versions_[tag_hash] = version;
174 } 174 }
175 175
176 } // namespace syncer 176 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/test/engine/single_type_mock_server.h ('k') | components/sync/test/engine/test_directory_setter_upper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698