| Index: sync/test/fake_server/tombstone_entity.cc
|
| diff --git a/sync/test/fake_server/tombstone_entity.cc b/sync/test/fake_server/tombstone_entity.cc
|
| deleted file mode 100644
|
| index 0b62bd89b96551694cbae999bd4e835a68fd79a1..0000000000000000000000000000000000000000
|
| --- a/sync/test/fake_server/tombstone_entity.cc
|
| +++ /dev/null
|
| @@ -1,52 +0,0 @@
|
| -// 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.
|
| -
|
| -#include "sync/test/fake_server/tombstone_entity.h"
|
| -
|
| -#include <string>
|
| -
|
| -#include "sync/internal_api/public/base/model_type.h"
|
| -#include "sync/protocol/sync.pb.h"
|
| -#include "sync/test/fake_server/fake_server_entity.h"
|
| -
|
| -using std::string;
|
| -
|
| -using syncer::ModelType;
|
| -
|
| -namespace fake_server {
|
| -
|
| -TombstoneEntity::~TombstoneEntity() { }
|
| -
|
| -// static
|
| -std::unique_ptr<FakeServerEntity> TombstoneEntity::Create(const string& id) {
|
| - const ModelType model_type = GetModelTypeFromId(id);
|
| - CHECK_NE(model_type, syncer::UNSPECIFIED) << "Invalid ID was given: " << id;
|
| - return std::unique_ptr<FakeServerEntity>(new TombstoneEntity(id, model_type));
|
| -}
|
| -
|
| -TombstoneEntity::TombstoneEntity(const string& id,
|
| - const ModelType& model_type)
|
| - : FakeServerEntity(id, model_type, 0, string()) {
|
| - sync_pb::EntitySpecifics specifics;
|
| - AddDefaultFieldValue(model_type, &specifics);
|
| - SetSpecifics(specifics);
|
| -}
|
| -
|
| -bool TombstoneEntity::RequiresParentId() const {
|
| - return false;
|
| -}
|
| -
|
| -string TombstoneEntity::GetParentId() const {
|
| - return string();
|
| -}
|
| -
|
| -void TombstoneEntity::SerializeAsProto(sync_pb::SyncEntity* proto) const {
|
| - FakeServerEntity::SerializeBaseProtoFields(proto);
|
| -}
|
| -
|
| -bool TombstoneEntity::IsDeleted() const {
|
| - return true;
|
| -}
|
| -
|
| -} // namespace fake_server
|
|
|