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

Unified Diff: sync/test/fake_server/unique_client_entity.h

Issue 414953002: Make client tag IDs consistent in sync fake server (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: sync/test/fake_server/unique_client_entity.h
diff --git a/sync/test/fake_server/unique_client_entity.h b/sync/test/fake_server/unique_client_entity.h
index fecf0440412bed680ef4033224798013a0c3fae6..289034e54b85c6cc88ca8a8e5b6a4280f097377f 100644
--- a/sync/test/fake_server/unique_client_entity.h
+++ b/sync/test/fake_server/unique_client_entity.h
@@ -28,6 +28,10 @@ class UniqueClientEntity : public FakeServerEntity {
const sync_pb::SyncEntity& client_entity,
FakeServerEntity* current_server_entity);
+ // Derives an ID from a unique client tagged entity.
+ static std::string EffectiveIdForClientTaggedEntity(
+ const sync_pb::SyncEntity& entity);
+
// FakeServerEntity implementation.
virtual std::string GetParentId() const OVERRIDE;
virtual sync_pb::SyncEntity* SerializeAsProto() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698