blob: e7f86db2d65f829f2e33bb31d27798939d603fcd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
#define SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
#include <string>
#include "base/basictypes.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/sync.pb.h"
#include "sync/test/fake_server/fake_server_entity.h"
namespace fake_server {
// A Sync entity that represents a deleted item.
class TombstoneEntity : public FakeServerEntity {
public:
virtual ~TombstoneEntity();
// Factory function for TombstoneEntity.
static FakeServerEntity* Create(const std::string& id);
// FakeServerEntity implementation.
virtual std::string GetParentId() const override;
virtual void SerializeAsProto(sync_pb::SyncEntity* proto) override;
virtual bool IsDeleted() const override;
virtual bool IsFolder() const override;
private:
TombstoneEntity(const std::string& id, const syncer::ModelType& model_type);
};
} // namespace fake_server
#endif // SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
|