dashdemux: unit test for missing profiles

This commit is contained in:
Florin Apostol 2015-09-11 10:59:15 +01:00 committed by Vincent Penquerc'h
parent 5c8f702116
commit 84ff565c88

View file

@ -4630,6 +4630,27 @@ GST_START_TEST (dash_mpdparser_negative_mediaPresentationDuration)
GST_END_TEST;
/*
* Test parsing an MPD with no profiles
*/
GST_START_TEST (dash_mpdparser_no_profiles)
{
const gchar *xml =
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\"></MPD>";
gboolean ret;
GstMpdClient *mpdclient = gst_mpd_client_new ();
ret = gst_mpd_parse (mpdclient, xml, strlen (xml));
assert_equals_int (ret, TRUE);
gst_mpd_client_free (mpdclient);
}
GST_END_TEST;
/*
* create a test suite containing all dash testcases
*/
@ -4783,6 +4804,7 @@ dash_suite (void)
tcase_add_test (tc_negativeTests, dash_mpdparser_missing_xml);
tcase_add_test (tc_negativeTests, dash_mpdparser_missing_mpd);
tcase_add_test (tc_negativeTests, dash_mpdparser_no_end_tag);
tcase_add_test (tc_negativeTests, dash_mpdparser_no_profiles);
tcase_add_test (tc_negativeTests, dash_mpdparser_no_default_namespace);
tcase_add_test (tc_negativeTests,
dash_mpdparser_wrong_period_duration_inferred_from_next_period);