Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / sync / test / fake_server / fake_server_entity.h
index 7f30bb0..b7c5990 100644 (file)
@@ -26,6 +26,9 @@ class FakeServerEntity {
   static std::string CreateId(const syncer::ModelType& model_type,
                               const std::string& inner_id);
 
+  // Returns the ID string of the top level node for the specified type.
+  static std::string GetTopLevelId(const syncer::ModelType& model_type);
+
   virtual ~FakeServerEntity();
   const std::string& GetId() const;
   syncer::ModelType GetModelType() const;
@@ -51,13 +54,13 @@ class FakeServerEntity {
 
   void SerializeBaseProtoFields(sync_pb::SyncEntity* sync_entity);
 
+  // The ModelType that categorizes this entity.
+  syncer::ModelType model_type_;
+
  private:
   // The entity's ID.
   std::string id_;
 
-  // The ModelType that categorizes this entity.
-  syncer::ModelType model_type_;
-
   // The version of this entity.
   int64 version_;