mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
dashdemux: unit test for missing profiles
This commit is contained in:
parent
5c8f702116
commit
84ff565c88
1 changed files with 22 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue