package com.lemenzo.gallery.viewer;
public final class MotionPhotoXmpParserTest {
 public static void main(String[] args){
  String modern="<Camera:MotionPhoto=\"1\"/><Container:Item Item:Mime=\"image/jpeg\" Item:Length=\"0\"/><Container:Item Item:Mime=\"video/mp4\" Item:Length=\"12345\"/>";
  if(MotionPhotoXmpParser.candidateVideoLength(modern)!=12345L)throw new AssertionError("modern");
  String legacy="<GCamera:MicroVideo=\"1\" GCamera:MicroVideoOffset=\"777\"/>";
  if(MotionPhotoXmpParser.candidateVideoLength(legacy)!=777L)throw new AssertionError("legacy");
  if(MotionPhotoXmpParser.candidateVideoLength("<Camera:MotionPhoto=\"0\"/>")!=0L)throw new AssertionError("flag");
 }
}
