From 57042af9d6c03440c9792c87f46a58bc8932c1bc Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Mon, 6 Jul 2015 12:08:52 +0100 Subject: [PATCH] dashdemux: tests: added indentation in xml strings to improve readability https://bugzilla.gnome.org/show_bug.cgi?id=752027 --- tests/check/elements/dash_mpd.c | 623 ++++++++++++++++++++++++---------------- 1 file changed, 372 insertions(+), 251 deletions(-) diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index 2c996d3..ba9d985 100644 --- a/tests/check/elements/dash_mpd.c +++ b/tests/check/elements/dash_mpd.c @@ -53,7 +53,7 @@ GST_START_TEST (dash_mpdparser_validsimplempd) const gchar *xml = "" " "; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"> "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -80,21 +80,21 @@ GST_START_TEST (dash_mpdparser_mpd) const gchar *xml = "" ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" + " schemaLocation=\"TestSchemaLocation\"" + " xmlns:xsi=\"TestNamespaceXSI\"" + " xmlns:ext=\"TestNamespaceEXT\"" + " id=\"testId\"" + " type=\"static\"" + " availabilityStartTime=\"2015-03-24T1:10:50\"" + " availabilityEndTime=\"2015-03-24T1:10:50\"" + " mediaPresentationDuration=\"P0Y1M2DT12H10M20.5S\"" + " minimumUpdatePeriod=\"P0Y1M2DT12H10M20.5S\"" + " minBufferTime=\"P0Y1M2DT12H10M20.5S\"" + " timeShiftBufferDepth=\"P0Y1M2DT12H10M20.5S\"" + " suggestedPresentationDelay=\"P0Y1M2DT12H10M20.5S\"" + " maxSegmentDuration=\"P0Y1M2DT12H10M20.5S\"" + " maxSubsegmentDuration=\"P0Y1M2DT12H10M20.5S\">"; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -164,12 +164,13 @@ GST_START_TEST (dash_mpdparser_programInformation) const gchar *xml = "" "" - "" - "TestTitle" - "TestSource" - "TestCopyright "; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " TestTitle" + " TestSource" + " TestCopyright" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -200,9 +201,9 @@ GST_START_TEST (dash_mpdparser_baseURL) const gchar *xml = "" "" - "TestBaseURL"; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " TestBaseURL"; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -230,8 +231,8 @@ GST_START_TEST (dash_mpdparser_location) const gchar *xml = "" "" - "TestLocation"; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " TestLocation"; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -257,8 +258,8 @@ GST_START_TEST (dash_mpdparser_metrics) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -285,9 +286,11 @@ GST_START_TEST (dash_mpdparser_metrics_range) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -318,8 +321,8 @@ GST_START_TEST (dash_mpdparser_metrics_reporting) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -345,10 +348,11 @@ GST_START_TEST (dash_mpdparser_period) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -380,9 +384,11 @@ GST_START_TEST (dash_mpdparser_period_baseURL) const gchar *xml = "" "" - "TestBaseURL"; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " TestBaseURL" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -412,11 +418,13 @@ GST_START_TEST (dash_mpdparser_period_segmentBase) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -449,10 +457,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_initialization) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -484,10 +494,12 @@ GST_START_TEST (dash_mpdparser_period_segmentBase_representationIndex) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -518,8 +530,8 @@ GST_START_TEST (dash_mpdparser_period_segmentList) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -548,9 +560,11 @@ GST_START_TEST (dash_mpdparser_period_segmentList_multipleSegmentBaseType) const gchar *xml = "" "" - "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -583,11 +597,13 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -624,9 +640,11 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -660,9 +678,12 @@ GST_START_TEST const gchar *xml = "" "" - "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -698,10 +719,12 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -734,11 +757,14 @@ GST_START_TEST (dash_mpdparser_period_segmentList_segmentURL) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -772,12 +798,13 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -810,10 +837,11 @@ GST_START_TEST (dash_mpdparser_period_segmentTemplate_multipleSegmentBaseType) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -846,11 +874,13 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -887,9 +917,11 @@ GST_START_TEST const gchar *xml = "" "" - "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -923,9 +955,12 @@ GST_START_TEST const gchar *xml = "" "" - "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -961,10 +996,12 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -996,16 +1033,26 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1055,20 +1102,23 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representationBase) const gchar *xml = "" "" - " "; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1116,10 +1166,12 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1153,10 +1205,12 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1191,10 +1245,12 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1227,10 +1283,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_accessibility) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1261,10 +1319,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_role) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1295,10 +1355,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_rating) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1329,10 +1391,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_viewpoint) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1363,10 +1427,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1402,10 +1470,14 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1439,10 +1511,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_role) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1476,10 +1551,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_rating) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1513,10 +1592,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_contentComponent_viewpoint) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1549,10 +1632,12 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_baseURL) const gchar *xml = "" "" - "TestBaseURL"; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " TestBaseURL" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1584,13 +1669,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1625,10 +1711,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentBase_initialization) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1662,10 +1751,14 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1698,9 +1791,10 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentList) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1730,12 +1824,14 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_segmentTemplate) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1769,14 +1865,15 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1815,9 +1912,11 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1851,10 +1950,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_baseURL) const gchar *xml = "" "" - "TestBaseURL"; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " TestBaseURL" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1889,13 +1991,16 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1939,9 +2044,13 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -1977,9 +2086,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentBase) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2012,9 +2125,13 @@ GST_START_TEST (dash_mpdparser_period_adaptationSet_representation_segmentList) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2047,9 +2164,13 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " " + " " + " " + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2080,8 +2201,8 @@ GST_START_TEST (dash_mpdparser_period_subset) const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2261,7 +2382,7 @@ GST_START_TEST (dash_mpdparser_no_end_tag) const gchar *xml = "" " "; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"> "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2305,12 +2426,12 @@ GST_START_TEST (dash_mpdparser_wrong_period_duration_inferred_from_next_period) const gchar *xml = "" "" - "" - "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" + " availabilityStartTime=\"2015-03-24T0:0:0\"" + " mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">" + " " + " " + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); @@ -2350,10 +2471,10 @@ GST_START_TEST const gchar *xml = "" "" - ""; + " profiles=\"urn:mpeg:dash:profile:isoff-main:2011\"" + " availabilityStartTime=\"2015-03-24T0:0:0\"" + " mediaPresentationDuration=\"P0Y0M0DT3H3M30S\">" + " "; gboolean ret; GstMpdClient *mpdclient = gst_mpd_client_new (); -- 2.7.4