From e8dcea17fcdd27dd9184d46ad43e071ba202cbbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= Date: Thu, 31 Dec 2009 17:09:03 -0500 Subject: [PATCH] tests: Add G.729 RTP payloader/depayloader test https://bugzilla.gnome.org/show_bug.cgi?id=606050 --- tests/check/elements/rtp-payloading.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/tests/check/elements/rtp-payloading.c b/tests/check/elements/rtp-payloading.c index 6517f4a500..1794e9c20d 100644 --- a/tests/check/elements/rtp-payloading.c +++ b/tests/check/elements/rtp-payloading.c @@ -750,6 +750,24 @@ GST_START_TEST (rtp_jpeg_list) } GST_END_TEST; +static char rtp_g729_frame_data[] = + { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 +}; + +static int rtp_g729_frame_data_size = 22; + +static int rtp_g729_frame_count = 1; + +GST_START_TEST (rtp_g729) +{ + rtp_pipeline_test (rtp_g729_frame_data, rtp_g729_frame_data_size, + rtp_g729_frame_count, "audio/G729", "rtpg729pay", + "rtpg729depay", 0, 0, FALSE); +} + +GST_END_TEST; + /* * Creates the test suite. * @@ -786,6 +804,7 @@ rtp_payloading_suite () tcase_add_test (tc_chain, rtp_vorbis); tcase_add_test (tc_chain, rtp_jpeg); tcase_add_test (tc_chain, rtp_jpeg_list); + tcase_add_test (tc_chain, rtp_g729); return s; }