| Index: components/sync/engine_impl/net/loopback_server/tombstone_entity.h
|
| diff --git a/components/sync/test/fake_server/tombstone_entity.h b/components/sync/engine_impl/net/loopback_server/tombstone_entity.h
|
| similarity index 54%
|
| copy from components/sync/test/fake_server/tombstone_entity.h
|
| copy to components/sync/engine_impl/net/loopback_server/tombstone_entity.h
|
| index 656d05dab5296b560801d2b4335f37b966ae35cd..93227c94193aafc923452f9d6ce318e6b62c231c 100644
|
| --- a/components/sync/test/fake_server/tombstone_entity.h
|
| +++ b/components/sync/engine_impl/net/loopback_server/tombstone_entity.h
|
| @@ -2,28 +2,28 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
|
| -#define COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
|
| +#ifndef COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_
|
| +#define COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_
|
|
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "components/sync/base/model_type.h"
|
| +#include "components/sync/engine_impl/net/loopback_server/loopback_server_entity.h"
|
| #include "components/sync/protocol/sync.pb.h"
|
| -#include "components/sync/test/fake_server/fake_server_entity.h"
|
|
|
| -namespace fake_server {
|
| +namespace syncer {
|
|
|
| // A Sync entity that represents a deleted item.
|
| -class TombstoneEntity : public FakeServerEntity {
|
| +class TombstoneEntity : public LoopbackServerEntity {
|
| public:
|
| ~TombstoneEntity() override;
|
|
|
| // Factory function for TombstoneEntity.
|
| - static std::unique_ptr<FakeServerEntity> Create(
|
| - const std::string& id,
|
| - const std::string& client_defined_unique_tag);
|
| + static std::unique_ptr<LoopbackServerEntity> Create(
|
| + const sync_pb::SyncEntity& id);
|
|
|
| - // FakeServerEntity implementation.
|
| + // LoopbackServerEntity implementation.
|
| bool RequiresParentId() const override;
|
| std::string GetParentId() const override;
|
| void SerializeAsProto(sync_pb::SyncEntity* proto) const override;
|
| @@ -31,10 +31,10 @@ class TombstoneEntity : public FakeServerEntity {
|
|
|
| private:
|
| TombstoneEntity(const std::string& id,
|
| - const std::string& client_defined_unique_tag,
|
| + int64_t version,
|
| const syncer::ModelType& model_type);
|
| };
|
|
|
| -} // namespace fake_server
|
| +} // namespace syncer
|
|
|
| -#endif // COMPONENTS_SYNC_TEST_FAKE_SERVER_TOMBSTONE_ENTITY_H_
|
| +#endif // COMPONENTS_SYNC_ENGINE_IMPL_NET_LOOPBACK_SERVER_TOMBSTONE_ENTITY_H_
|
|
|