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;
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_;