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/tombstone_entity.h" | 5 #include "components/sync/test/fake_server/tombstone_entity.h" |
6 | 6 |
7 #include <string> | |
8 | |
9 #include "components/sync/base/model_type.h" | |
10 #include "components/sync/protocol/sync.pb.h" | |
11 #include "components/sync/test/fake_server/fake_server_entity.h" | |
12 | |
13 using std::string; | 7 using std::string; |
14 | 8 |
15 using syncer::ModelType; | 9 using syncer::ModelType; |
16 | 10 |
17 namespace fake_server { | 11 namespace fake_server { |
18 | 12 |
19 TombstoneEntity::~TombstoneEntity() {} | 13 TombstoneEntity::~TombstoneEntity() {} |
20 | 14 |
21 // static | 15 // static |
22 std::unique_ptr<FakeServerEntity> TombstoneEntity::Create( | 16 std::unique_ptr<FakeServerEntity> TombstoneEntity::Create( |
(...skipping 24 matching lines...) Expand all Loading... |
47 | 41 |
48 void TombstoneEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const { | 42 void TombstoneEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const { |
49 FakeServerEntity::SerializeBaseProtoFields(proto); | 43 FakeServerEntity::SerializeBaseProtoFields(proto); |
50 } | 44 } |
51 | 45 |
52 bool TombstoneEntity::IsDeleted() const { | 46 bool TombstoneEntity::IsDeleted() const { |
53 return true; | 47 return true; |
54 } | 48 } |
55 | 49 |
56 } // namespace fake_server | 50 } // namespace fake_server |
OLD | NEW |