mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +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>
|
2006-05-19 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* docs/faq/developing.xml:
|
* docs/faq/developing.xml:
|
||||||
|
|
|
@ -110,17 +110,20 @@ GST_START_TEST (test_from_string)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
Suite *
|
GST_START_TEST (test_complete_structure)
|
||||||
gst_value_suite (void)
|
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("GstStructure");
|
GstStructure *structure;
|
||||||
TCase *tc_chain = tcase_create ("general");
|
const gchar *s;
|
||||||
|
|
||||||
suite_add_tcase (s, tc_chain);
|
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";
|
||||||
tcase_add_test (tc_chain, test_from_string_int);
|
structure = gst_structure_from_string (s, NULL);
|
||||||
return s;
|
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)
|
GST_START_TEST (test_structure_new)
|
||||||
{
|
{
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
|
@ -149,6 +152,7 @@ gst_structure_suite (void)
|
||||||
suite_add_tcase (s, tc_chain);
|
suite_add_tcase (s, tc_chain);
|
||||||
tcase_add_test (tc_chain, test_from_string_int);
|
tcase_add_test (tc_chain, test_from_string_int);
|
||||||
tcase_add_test (tc_chain, test_from_string);
|
tcase_add_test (tc_chain, test_from_string);
|
||||||
|
tcase_add_test (tc_chain, test_complete_structure);
|
||||||
tcase_add_test (tc_chain, test_structure_new);
|
tcase_add_test (tc_chain, test_structure_new);
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue