| OLD | NEW |
| 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> | |
| 8 | |
| 9 #include <memory> | |
| 10 #include <string> | |
| 11 | |
| 12 #include "base/guid.h" | 7 #include "base/guid.h" |
| 13 #include "components/sync/base/model_type.h" | |
| 14 #include "components/sync/protocol/sync.pb.h" | 8 #include "components/sync/protocol/sync.pb.h" |
| 15 #include "components/sync/syncable/syncable_util.h" | 9 #include "components/sync/syncable/syncable_util.h" |
| 16 #include "components/sync/test/fake_server/fake_server_entity.h" | |
| 17 #include "components/sync/test/fake_server/permanent_entity.h" | 10 #include "components/sync/test/fake_server/permanent_entity.h" |
| 18 | 11 |
| 19 using std::string; | 12 using std::string; |
| 20 | 13 |
| 21 using syncer::GetModelTypeFromSpecifics; | 14 using syncer::GetModelTypeFromSpecifics; |
| 22 using syncer::ModelType; | 15 using syncer::ModelType; |
| 23 using syncer::syncable::GenerateSyncableHash; | 16 using syncer::syncable::GenerateSyncableHash; |
| 24 | 17 |
| 25 namespace fake_server { | 18 namespace fake_server { |
| 26 | 19 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 } | 94 } |
| 102 | 95 |
| 103 void UniqueClientEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const { | 96 void UniqueClientEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const { |
| 104 FakeServerEntity::SerializeBaseProtoFields(proto); | 97 FakeServerEntity::SerializeBaseProtoFields(proto); |
| 105 | 98 |
| 106 proto->set_ctime(creation_time_); | 99 proto->set_ctime(creation_time_); |
| 107 proto->set_mtime(last_modified_time_); | 100 proto->set_mtime(last_modified_time_); |
| 108 } | 101 } |
| 109 | 102 |
| 110 } // namespace fake_server | 103 } // namespace fake_server |
| OLD | NEW |