From: Tim-Philipp Müller Date: Wed, 6 Apr 2016 16:57:28 +0000 (+0100) Subject: tests: libscpp: test RTP/RTCP buffer init macros with C++ compiler X-Git-Tag: 1.19.3~511^2~2901 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f05ea1e6a62e12d166b6a2f2d0e4b59018515d47;p=platform%2Fupstream%2Fgstreamer.git tests: libscpp: test RTP/RTCP buffer init macros with C++ compiler --- diff --git a/tests/check/libs/gstlibscpp.cc b/tests/check/libs/gstlibscpp.cc index eaf7dbb..5a84ea3 100644 --- a/tests/check/libs/gstlibscpp.cc +++ b/tests/check/libs/gstlibscpp.cc @@ -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; }