mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 07:38:16 +00:00
tests/check/gst/gststructure.c: add a test for a complete structure
Original commit message from CVS: * tests/check/gst/gststructure.c: (GST_START_TEST), (gst_structure_suite): add a test for a complete structure
This commit is contained in:
parent
693dbcb44b
commit
9e1111cb03
2 changed files with 17 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-05-22 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* tests/check/gst/gststructure.c: (GST_START_TEST),
|
||||
(gst_structure_suite):
|
||||
add a test for a complete structure
|
||||
|
||||
2006-05-19 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* docs/faq/developing.xml:
|
||||
|
|
|
@ -110,17 +110,20 @@ GST_START_TEST (test_from_string)
|
|||
|
||||
GST_END_TEST;
|
||||
|
||||
Suite *
|
||||
gst_value_suite (void)
|
||||
GST_START_TEST (test_complete_structure)
|
||||
{
|
||||
Suite *s = suite_create ("GstStructure");
|
||||
TCase *tc_chain = tcase_create ("general");
|
||||
GstStructure *structure;
|
||||
const gchar *s;
|
||||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_from_string_int);
|
||||
return s;
|
||||
s = "GstEventSeek, rate=(double)1, format=(GstFormat)GST_FORMAT_TIME, flags=(GstSeekFlags)GST_SEEK_FLAGS_NONE, cur_type=(GstSeekType)GST_SEEK_TYPE_SET, cur=(gint64)1000000000, stop_type=(GstSeekType)GST_SEEK_TYPE_NONE, stop=(gint64)0";
|
||||
structure = gst_structure_from_string (s, NULL);
|
||||
fail_if (structure == NULL, "Could not get structure from string %s", s);
|
||||
/* FIXME: TODO: add checks for correct serialization of members ? */
|
||||
gst_structure_free (structure);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
GST_START_TEST (test_structure_new)
|
||||
{
|
||||
GstStructure *s;
|
||||
|
@ -149,6 +152,7 @@ gst_structure_suite (void)
|
|||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_from_string_int);
|
||||
tcase_add_test (tc_chain, test_from_string);
|
||||
tcase_add_test (tc_chain, test_complete_structure);
|
||||
tcase_add_test (tc_chain, test_structure_new);
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue