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

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

Powered by Google App Engine
This is Rietveld 408576698