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.
5 #ifndef SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
6 #define SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
10 #include "base/basictypes.h"
11 #include "sync/internal_api/public/base/model_type.h"
12 #include "sync/protocol/sync.pb.h"
13 #include "sync/test/fake_server/fake_server_entity.h"
15 namespace fake_server
{
17 // A Sync entity that represents a deleted item.
18 class TombstoneEntity
: public FakeServerEntity
{
20 virtual ~TombstoneEntity();
22 // Factory function for TombstoneEntity.
23 static FakeServerEntity
* Create(const std::string
& id
);
25 // FakeServerEntity implementation.
26 virtual std::string
GetParentId() const OVERRIDE
;
27 virtual sync_pb::SyncEntity
* SerializeAsProto() OVERRIDE
;
28 virtual bool IsDeleted() const OVERRIDE
;
29 virtual bool IsFolder() const OVERRIDE
;
32 TombstoneEntity(const std::string
& id
, const syncer::ModelType
& model_type
);
35 } // namespace fake_server
37 #endif // SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_