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

Unified Diff: components/sync/test/fake_server/tombstone_entity.cc

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 side-by-side diff with in-line comments
Download patch
Index: components/sync/test/fake_server/tombstone_entity.cc
diff --git a/components/sync/test/fake_server/tombstone_entity.cc b/components/sync/test/fake_server/tombstone_entity.cc
deleted file mode 100644
index 014fca19311a4723c5d1698294577df6ca568e5a..0000000000000000000000000000000000000000
--- a/components/sync/test/fake_server/tombstone_entity.cc
+++ /dev/null
@@ -1,49 +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 "components/sync/test/fake_server/tombstone_entity.h"
-
-using std::string;
-using syncer::ModelType;
-
-namespace fake_server {
-
-TombstoneEntity::~TombstoneEntity() {}
-
-// static
-std::unique_ptr<FakeServerEntity> TombstoneEntity::Create(
- const string& id,
- const string& client_defined_unique_tag) {
- 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, client_defined_unique_tag, model_type));
-}
-
-TombstoneEntity::TombstoneEntity(const string& id,
- const string& client_defined_unique_tag,
- const ModelType& model_type)
- : FakeServerEntity(id, client_defined_unique_tag, 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
« no previous file with comments | « components/sync/test/fake_server/tombstone_entity.h ('k') | components/sync/test/fake_server/unique_client_entity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698