dashdemux: tests: added indentation in xml strings to improve readability

https://bugzilla.gnome.org/show_bug.cgi?id=752027
This commit is contained in:
Florin Apostol 2015-07-06 12:08:52 +01:00 committed by Sebastian Dröge
parent cc9885ef4e
commit 57042af9d6

View file

@ -165,11 +165,12 @@ GST_START_TEST (dash_mpdparser_programInformation)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<ProgramInformation lang=\"en\""
" <ProgramInformation lang=\"en\""
" moreInformationURL=\"TestMoreInformationUrl\">"
"<Title>TestTitle</Title>"
"<Source>TestSource</Source>"
"<Copyright>TestCopyright</Copyright> </ProgramInformation> </MPD>";
" <Title>TestTitle</Title>"
" <Source>TestSource</Source>"
" <Copyright>TestCopyright</Copyright>"
" </ProgramInformation> </MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -201,7 +202,7 @@ GST_START_TEST (dash_mpdparser_baseURL)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<BaseURL serviceLocation=\"TestServiceLocation\""
" <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL></MPD>";
gboolean ret;
@ -231,7 +232,7 @@ GST_START_TEST (dash_mpdparser_location)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Location>TestLocation</Location></MPD>";
" <Location>TestLocation</Location></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -258,7 +259,7 @@ GST_START_TEST (dash_mpdparser_metrics)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics metrics=\"TestMetric\"></Metrics></MPD>";
" <Metrics metrics=\"TestMetric\"></Metrics></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -286,8 +287,10 @@ GST_START_TEST (dash_mpdparser_metrics_range)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics><Range starttime=\"P0Y1M2DT12H10M20.5S\""
" duration=\"P0Y1M2DT12H10M20.1234567S\"></Range></Metrics></MPD>";
" <Metrics>"
" <Range starttime=\"P0Y1M2DT12H10M20.5S\""
" duration=\"P0Y1M2DT12H10M20.1234567S\">"
" </Range></Metrics></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -319,7 +322,7 @@ GST_START_TEST (dash_mpdparser_metrics_reporting)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Metrics><Reporting></Reporting></Metrics></MPD>";
" <Metrics><Reporting></Reporting></Metrics></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -346,7 +349,8 @@ GST_START_TEST (dash_mpdparser_period)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period id=\"TestId\" start=\"P0Y1M2DT12H10M20.1234567S\""
" <Period id=\"TestId\""
" start=\"P0Y1M2DT12H10M20.1234567S\""
" duration=\"P0Y1M2DT12H10M20.7654321S\""
" bitstreamSwitching=\"true\"></Period></MPD>";
@ -381,8 +385,10 @@ GST_START_TEST (dash_mpdparser_period_baseURL)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL></Period></MPD>";
" <Period>"
" <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -413,10 +419,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase timescale=\"123456\""
" <Period>"
" <SegmentBase timescale=\"123456\""
" presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\""
" indexRangeExact=\"true\"></SegmentBase></Period></MPD>";
" indexRangeExact=\"true\">"
" </SegmentBase></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -450,9 +458,11 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_initialization)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase><Initialisation"
" sourceURL=\"TestSourceURL\""
" range=\"100-200\"></Initialisation></SegmentBase></Period></MPD>";
" <Period>"
" <SegmentBase>"
" <Initialisation sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </Initialisation></SegmentBase></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -485,9 +495,11 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_representationIndex)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentBase><RepresentationIndex"
" sourceURL=\"TestSourceURL\""
" range=\"100-200\"></RepresentationIndex></SegmentBase></Period></MPD>";
" <Period>"
" <SegmentBase>"
" <RepresentationIndex sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </RepresentationIndex></SegmentBase></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -519,7 +531,7 @@ GST_START_TEST (dash_mpdparser_period_segmentList)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList></SegmentList></Period></MPD>";
" <Period><SegmentList></SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -549,8 +561,10 @@ GST_START_TEST (dash_mpdparser_period_segmentList_multipleSegmentBaseType)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList duration=\"10\" startNumber=\"11\">"
"</SegmentList></Period></MPD>";
" <Period>"
" <SegmentList duration=\"10\""
" startNumber=\"11\">"
" </SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -584,10 +598,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList timescale=\"10\""
" <Period>"
" <SegmentList timescale=\"10\""
" presentationTimeOffset=\"11\""
" indexRange=\"20-21\""
" indexRangeExact=\"false\"></SegmentList></Period></MPD>";
" indexRangeExact=\"false\">"
" </SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -625,8 +641,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentTimeline "
" ></SegmentTimeline></SegmentList></Period></MPD>";
" <Period>"
" <SegmentList>"
" <SegmentTimeline>"
" </SegmentTimeline></SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -661,8 +679,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentTimeline><S t=\"1\" d=\"2\" r=\"3\">"
"</S></SegmentTimeline></SegmentList></Period></MPD>";
" <Period>"
" <SegmentList>"
" <SegmentTimeline>"
" <S t=\"1\" d=\"2\" r=\"3\">"
" </S></SegmentTimeline></SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -699,9 +720,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><BitstreamSwitching"
" sourceURL=\"TestSourceURL\" range=\"100-200\""
"></BitstreamSwitching></SegmentList></Period></MPD>";
" <Period>"
" <SegmentList>"
" <BitstreamSwitching sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </BitstreamSwitching></SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -735,10 +758,13 @@ GST_START_TEST (dash_mpdparser_period_segmentList_segmentURL)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentList><SegmentURL"
" media=\"TestMedia\" mediaRange=\"100-200\""
" index=\"TestIndex\" indexRange=\"300-400\""
"></SegmentURL></SegmentList></Period></MPD>";
" <Period>"
" <SegmentList>"
" <SegmentURL media=\"TestMedia\""
" mediaRange=\"100-200\""
" index=\"TestIndex\""
" indexRange=\"300-400\">"
" </SegmentURL></SegmentList></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -773,11 +799,12 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate"
" media=\"TestMedia\" index=\"TestIndex\""
" <Period>"
" <SegmentTemplate media=\"TestMedia\""
" index=\"TestIndex\""
" initialization=\"TestInitialization\""
" bitstreamSwitching=\"TestBitstreamSwitching\""
"></SegmentTemplate></Period></MPD>";
" bitstreamSwitching=\"TestBitstreamSwitching\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -811,9 +838,10 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate_multipleSegmentBaseType)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate"
" duration=\"10\" startNumber=\"11\""
"></SegmentTemplate></Period></MPD>";
" <Period>"
" <SegmentTemplate duration=\"10\""
" startNumber=\"11\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -847,10 +875,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate timescale=\"123456\""
" <Period>"
" <SegmentTemplate timescale=\"123456\""
" presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\""
" indexRangeExact=\"true\"></SegmentTemplate></Period></MPD>";
" indexRangeExact=\"true\">"
" </SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -888,8 +918,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><SegmentTimeline>"
"</SegmentTimeline></SegmentTemplate></Period></MPD>";
" <Period>"
" <SegmentTemplate>"
" <SegmentTimeline>"
" </SegmentTimeline></SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -924,8 +956,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><SegmentTimeline><S t=\"1\" d=\"2\" r=\"3\">"
"</S></SegmentTimeline></SegmentTemplate></Period></MPD>";
" <Period>"
" <SegmentTemplate>"
" <SegmentTimeline>"
" <S t=\"1\" d=\"2\" r=\"3\">"
" </S></SegmentTimeline></SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -962,9 +997,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><SegmentTemplate><BitstreamSwitching"
" sourceURL=\"TestSourceURL\" range=\"100-200\""
"></BitstreamSwitching></SegmentTemplate></Period></MPD>";
" <Period>"
" <SegmentTemplate>"
" <BitstreamSwitching sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </BitstreamSwitching></SegmentTemplate></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -997,15 +1034,25 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet id=\"7\" group=\"8\" lang=\"en\""
" contentType=\"TestContentType\" par=\"4:3\""
" minBandwidth=\"100\" maxBandwidth=\"200\""
" minWidth=\"1000\" maxWidth=\"2000\""
" minHeight=\"1100\" maxHeight=\"2100\""
" minFrameRate=\"25/123\" maxFrameRate=\"26\""
" segmentAlignment=\"2\" subsegmentAlignment=\"false\""
" <Period>"
" <AdaptationSet id=\"7\""
" group=\"8\""
" lang=\"en\""
" contentType=\"TestContentType\""
" par=\"4:3\""
" minBandwidth=\"100\""
" maxBandwidth=\"200\""
" minWidth=\"1000\""
" maxWidth=\"2000\""
" minHeight=\"1100\""
" maxHeight=\"2100\""
" minFrameRate=\"25/123\""
" maxFrameRate=\"26\""
" segmentAlignment=\"2\""
" subsegmentAlignment=\"false\""
" subsegmentStartsWithSAP=\"6\""
" bitstreamSwitching=\"false\"></AdaptationSet></Period></MPD>";
" bitstreamSwitching=\"false\">"
" </AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1056,8 +1103,10 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
" <Period><AdaptationSet profiles=\"TestProfiles\""
" width=\"100\" height=\"200\""
" <Period>"
" <AdaptationSet profiles=\"TestProfiles\""
" width=\"100\""
" height=\"200\""
" sar=\"10:20\""
" frameRate=\"30/40\""
" audioSamplingRate=\"TestAudioSamplingRate\""
@ -1068,7 +1117,8 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase)
" startWithSAP=\"0\""
" maxPlayoutRate=\"1.2\""
" codingDependency=\"false\""
" scanType=\"progressive\"></AdaptationSet></Period></MPD>";
" scanType=\"progressive\">"
" </AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1117,9 +1167,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><FramePacking"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></FramePacking></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <FramePacking schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </FramePacking></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1154,9 +1206,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><AudioChannelConfiguration"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></AudioChannelConfiguration></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <AudioChannelConfiguration schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </AudioChannelConfiguration></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1192,9 +1246,11 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentProtection"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></ContentProtection></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentProtection schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </ContentProtection></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1228,9 +1284,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_accessibility)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Accessibility"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Accessibility></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Accessibility schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Accessibility></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1262,9 +1320,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_role)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Role"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Role></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Role schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Role></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1296,9 +1356,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_rating)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Rating"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Rating></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Rating schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Rating></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1330,9 +1392,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_viewpoint)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Viewpoint"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Viewpoint></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Viewpoint schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Viewpoint></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1364,9 +1428,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent"
" id=\"1\" lang=\"en\" contentType=\"TestContentType\" par=\"10:20\""
" ></ContentComponent></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentComponent id=\"1\""
" lang=\"en\""
" contentType=\"TestContentType\""
" par=\"10:20\">"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1403,9 +1471,13 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Accessibility"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Accessibility></ContentComponent></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentComponent>"
" <Accessibility schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Accessibility>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1440,9 +1512,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_role)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Role"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Role></ContentComponent></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentComponent>"
" <Role schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Role></ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1477,9 +1552,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_rating)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Rating"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Rating></ContentComponent></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentComponent>"
" <Rating schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Rating>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1514,9 +1593,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_viewpoint)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><ContentComponent><Viewpoint"
" schemeIdUri=\"TestSchemeIdUri\" value=\"TestValue\""
" ></Viewpoint></ContentComponent></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <ContentComponent>"
" <Viewpoint schemeIdUri=\"TestSchemeIdUri\""
" value=\"TestValue\">"
" </Viewpoint>"
" </ContentComponent></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1550,9 +1633,11 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_baseURL)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><BaseURL"
" serviceLocation=\"TestServiceLocation\" byteRange=\"TestByteRange\""
" >TestBaseURL</BaseURL></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1585,12 +1670,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase"
" timescale=\"123456\""
" <Period>"
" <AdaptationSet>"
" <SegmentBase timescale=\"123456\""
" presentationTimeOffset=\"123456789\""
" indexRange=\"100-200\""
" indexRangeExact=\"true\""
" ></SegmentBase></AdaptationSet></Period></MPD>";
" indexRangeExact=\"true\">"
" </SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1626,9 +1712,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase_initialization)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase><Initialisation"
" sourceURL=\"TestSourceURL\" range=\"100-200\""
"></Initialisation></SegmentBase></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <SegmentBase>"
" <Initialisation sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </Initialisation></SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1663,9 +1752,13 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentBase><RepresentationIndex"
" sourceURL=\"TestSourceURL\" range=\"100-200\""
"></RepresentationIndex></SegmentBase></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <SegmentBase>"
" <RepresentationIndex sourceURL=\"TestSourceURL\""
" range=\"100-200\">"
" </RepresentationIndex>"
" </SegmentBase></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1699,8 +1792,9 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentList)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentList"
"></SegmentList></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <SegmentList></SegmentList></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1731,11 +1825,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentTemplate)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><SegmentTemplate"
" media=\"TestMedia\" index=\"TestIndex\""
" <Period>"
" <AdaptationSet>"
" <SegmentTemplate media=\"TestMedia\""
" index=\"TestIndex\""
" initialization=\"TestInitialization\""
" bitstreamSwitching=\"TestBitstreamSwitching\""
"></SegmentTemplate></AdaptationSet></Period></MPD>";
" bitstreamSwitching=\"TestBitstreamSwitching\">"
" </SegmentTemplate></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1770,13 +1866,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation"
" id=\"Test Id\""
" <Period>"
" <AdaptationSet>"
" <Representation id=\"Test Id\""
" bandwidth=\"100\""
" qualityRanking=\"200\""
" dependencyId=\"one two three\""
" mediaStreamStructureId=\"\""
"></Representation></AdaptationSet></Period></MPD>";
" mediaStreamStructureId=\"\">"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1816,8 +1913,10 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation"
"></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1852,9 +1951,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_baseURL)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><BaseURL"
" serviceLocation=\"TestServiceLocation\" byteRange=\"TestByteRange\""
" >TestBaseURL</BaseURL></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <BaseURL serviceLocation=\"TestServiceLocation\""
" byteRange=\"TestByteRange\">TestBaseURL</BaseURL>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1890,12 +1992,15 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SubRepresentation"
" level=\"100\""
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <SubRepresentation level=\"100\""
" dependencyLevel=\"1 2 3\""
" bandwidth=\"200\""
" contentComponent=\"content1 content2\""
" ></SubRepresentation></Representation></AdaptationSet></Period></MPD>";
" contentComponent=\"content1 content2\">"
" </SubRepresentation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1940,8 +2045,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SubRepresentation"
" ></SubRepresentation></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <SubRepresentation>"
" </SubRepresentation>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -1978,8 +2087,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentBase)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentBase"
" ></SegmentBase></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <SegmentBase>"
" </SegmentBase>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2013,8 +2126,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentList)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentList"
" ></SegmentList></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <SegmentList>"
" </SegmentList>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2048,8 +2165,12 @@ GST_START_TEST
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><AdaptationSet><Representation><SegmentTemplate"
" ></SegmentTemplate></Representation></AdaptationSet></Period></MPD>";
" <Period>"
" <AdaptationSet>"
" <Representation>"
" <SegmentTemplate>"
" </SegmentTemplate>"
" </Representation></AdaptationSet></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2081,7 +2202,7 @@ GST_START_TEST (dash_mpdparser_period_subset)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">"
"<Period><Subset contains=\"1 2 3\"></Subset></Period></MPD>";
" <Period><Subset contains=\"1 2 3\"></Subset></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2308,9 +2429,9 @@ GST_START_TEST (dash_mpdparser_wrong_period_duration_inferred_from_next_period)
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\""
" availabilityStartTime=\"2015-03-24T0:0:0\""
" mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">"
"<Period id=\"Period0\" duration=\"P0Y0M0DT1H1M0S\"></Period>"
"<Period id=\"Period1\"></Period>"
"<Period id=\"Period2\" start=\"P0Y0M0DT0H0M10S\"></Period></MPD>";
" <Period id=\"Period0\" duration=\"P0Y0M0DT1H1M0S\"></Period>"
" <Period id=\"Period1\"></Period>"
" <Period id=\"Period2\" start=\"P0Y0M0DT0H0M10S\"></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
@ -2353,7 +2474,7 @@ GST_START_TEST
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\""
" availabilityStartTime=\"2015-03-24T0:0:0\""
" mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">"
"<Period id=\"Period0\" start=\"P0Y0M0DT4H0M0S\"></Period></MPD>";
" <Period id=\"Period0\" start=\"P0Y0M0DT4H0M0S\"></Period></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();