mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-30 07:42:32 +00:00
tests: libscpp: test RTP/RTCP buffer init macros with C++ compiler
This commit is contained in:
parent
2dd399356f
commit
f05ea1e6a6
1 changed files with 12 additions and 0 deletions
|
@ -102,6 +102,17 @@ GST_START_TEST (test_nothing)
|
|||
|
||||
GST_END_TEST;
|
||||
|
||||
GST_START_TEST (test_init_macros)
|
||||
{
|
||||
GstRTCPBuffer rtcp = GST_RTCP_BUFFER_INIT;
|
||||
GstRTPBuffer rtp = GST_RTP_BUFFER_INIT;
|
||||
|
||||
fail_unless_equals_int (rtp.size[0], 0)
|
||||
fail_unless_equals_int (rtcp.map.size, 0);
|
||||
}
|
||||
|
||||
GST_END_TEST;
|
||||
|
||||
static Suite *
|
||||
libscpp_suite (void)
|
||||
{
|
||||
|
@ -110,6 +121,7 @@ libscpp_suite (void)
|
|||
|
||||
suite_add_tcase (s, tc_chain);
|
||||
tcase_add_test (tc_chain, test_nothing);
|
||||
tcase_add_test (tc_chain, test_init_macros);
|
||||
|
||||
return s;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue