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

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

Issue 2328393002: [Sync] Add a sanity integration test for USS. (Closed)
Patch Set: Rebase. Created 4 years, 3 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/permanent_entity.cc
diff --git a/components/sync/test/fake_server/permanent_entity.cc b/components/sync/test/fake_server/permanent_entity.cc
index ad02485aec3710d96940b86d0b24726dc6dde2c9..23cccf3fef99bfd1646920bc3f07126ae9f665dd 100644
--- a/components/sync/test/fake_server/permanent_entity.cc
+++ b/components/sync/test/fake_server/permanent_entity.cc
@@ -65,13 +65,13 @@ std::unique_ptr<FakeServerEntity> PermanentEntity::CreateTopLevel(
std::unique_ptr<FakeServerEntity> PermanentEntity::CreateUpdatedNigoriEntity(
const sync_pb::SyncEntity& client_entity,
const FakeServerEntity& current_server_entity) {
- ModelType model_type = current_server_entity.GetModelType();
+ ModelType model_type = current_server_entity.model_type();
CHECK(model_type == syncer::NIGORI) << "This factory only supports NIGORI "
<< "entities.";
return base::WrapUnique<FakeServerEntity>(new PermanentEntity(
- current_server_entity.GetId(), model_type,
- current_server_entity.GetName(), current_server_entity.GetParentId(),
+ current_server_entity.id(), model_type, current_server_entity.GetName(),
+ current_server_entity.GetParentId(),
syncer::ModelTypeToRootTag(model_type), client_entity.specifics()));
}
@@ -81,7 +81,7 @@ PermanentEntity::PermanentEntity(const string& id,
const string& parent_id,
const string& server_defined_unique_tag,
const sync_pb::EntitySpecifics& specifics)
- : FakeServerEntity(id, model_type, 0, name),
+ : FakeServerEntity(id, string(), model_type, 0, name),
server_defined_unique_tag_(server_defined_unique_tag),
parent_id_(parent_id) {
SetSpecifics(specifics);
« no previous file with comments | « components/sync/test/fake_server/fake_server_entity.cc ('k') | components/sync/test/fake_server/tombstone_entity.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698