mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
tests: tag: add the empty taglist serialization test
Adds the test to the appropriate and already existing file.
This commit is contained in:
parent
85d23d19b7
commit
4f32a74daf
1 changed files with 20 additions and 0 deletions
|
@ -608,6 +608,25 @@ GST_START_TEST (test_serialization)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
GST_START_TEST (test_empty_taglist_serialization)
|
||||||
|
{
|
||||||
|
GstTagList *taglist, *taglist2;
|
||||||
|
gchar *str;
|
||||||
|
|
||||||
|
taglist = gst_tag_list_new_empty ();
|
||||||
|
str = gst_tag_list_to_string (taglist);
|
||||||
|
taglist2 = gst_tag_list_new_from_string (str);
|
||||||
|
fail_if (taglist2 == NULL);
|
||||||
|
fail_unless (gst_tag_list_is_equal (taglist, taglist2));
|
||||||
|
|
||||||
|
gst_tag_list_unref (taglist);
|
||||||
|
gst_tag_list_unref (taglist2);
|
||||||
|
g_free (str);
|
||||||
|
}
|
||||||
|
|
||||||
|
GST_END_TEST;
|
||||||
|
|
||||||
|
|
||||||
static Suite *
|
static Suite *
|
||||||
gst_tag_suite (void)
|
gst_tag_suite (void)
|
||||||
{
|
{
|
||||||
|
@ -628,6 +647,7 @@ gst_tag_suite (void)
|
||||||
tcase_add_test (tc_chain, test_equal);
|
tcase_add_test (tc_chain, test_equal);
|
||||||
tcase_add_test (tc_chain, test_writability);
|
tcase_add_test (tc_chain, test_writability);
|
||||||
tcase_add_test (tc_chain, test_serialization);
|
tcase_add_test (tc_chain, test_serialization);
|
||||||
|
tcase_add_test (tc_chain, test_empty_taglist_serialization);
|
||||||
|
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue