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

Side by Side Diff: components/sync/test/fake_server/unique_client_entity.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 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/fake_server/unique_client_entity.h" 5 #include "components/sync/test/fake_server/unique_client_entity.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
11 11
12 #include "base/guid.h" 12 #include "base/guid.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/protocol/sync.pb.h" 14 #include "components/sync/protocol/sync.pb.h"
15 #include "components/sync/syncable/syncable_util.h" 15 #include "components/sync/syncable/syncable_util.h"
16 #include "components/sync/test/fake_server/fake_server_entity.h" 16 #include "components/sync/test/fake_server/fake_server_entity.h"
17 #include "components/sync/test/fake_server/permanent_entity.h" 17 #include "components/sync/test/fake_server/permanent_entity.h"
18 18
19 using std::string; 19 using std::string;
20
21 using syncer::GetModelTypeFromSpecifics; 20 using syncer::GetModelTypeFromSpecifics;
22 using syncer::ModelType; 21 using syncer::ModelType;
23 using syncer::syncable::GenerateSyncableHash; 22 using syncer::syncable::GenerateSyncableHash;
24 23
25 namespace fake_server { 24 namespace fake_server {
26 25
27 namespace { 26 namespace {
28 27
29 // A version must be passed when creating a FakeServerEntity, but this value 28 // A version must be passed when creating a FakeServerEntity, but this value
30 // is overrideen immediately when saving the entity in FakeServer. 29 // is overrideen immediately when saving the entity in FakeServer.
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 100 }
102 101
103 void UniqueClientEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const { 102 void UniqueClientEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const {
104 FakeServerEntity::SerializeBaseProtoFields(proto); 103 FakeServerEntity::SerializeBaseProtoFields(proto);
105 104
106 proto->set_ctime(creation_time_); 105 proto->set_ctime(creation_time_);
107 proto->set_mtime(last_modified_time_); 106 proto->set_mtime(last_modified_time_);
108 } 107 }
109 108
110 } // namespace fake_server 109 } // namespace fake_server
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698