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

Side by Side Diff: components/sync/test/fake_server/tombstone_entity.h

Issue 2969643002: Reland - Replace FakeServer's implementation with LoopbackServer invocations. (Closed)
Patch Set: Rebased on master. Created 3 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
6 #define COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
7
8 #include <memory>
9 #include <string>
10
11 #include "components/sync/base/model_type.h"
12 #include "components/sync/protocol/sync.pb.h"
13 #include "components/sync/test/fake_server/fake_server_entity.h"
14
15 namespace fake_server {
16
17 // A Sync entity that represents a deleted item.
18 class TombstoneEntity : public FakeServerEntity {
19 public:
20 ~TombstoneEntity() override;
21
22 // Factory function for TombstoneEntity.
23 static std::unique_ptr<FakeServerEntity> Create(
24 const std::string& id,
25 const std::string& client_defined_unique_tag);
26
27 // FakeServerEntity implementation.
28 bool RequiresParentId() const override;
29 std::string GetParentId() const override;
30 void SerializeAsProto(sync_pb::SyncEntity* proto) const override;
31 bool IsDeleted() const override;
32
33 private:
34 TombstoneEntity(const std::string& id,
35 const std::string& client_defined_unique_tag,
36 const syncer::ModelType& model_type);
37 };
38
39 } // namespace fake_server
40
41 #endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
OLDNEW
« no previous file with comments | « components/sync/test/fake_server/permanent_entity.cc ('k') | components/sync/test/fake_server/tombstone_entity.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698