[calls] test: sip: Add debug messages
- From: Evangelos Ribeiro Tzaras <devrtz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [calls] test: sip: Add debug messages
- Date: Tue, 21 Dec 2021 14:33:07 +0000 (UTC)
commit da4434564d6fd8ceb6a3f779a524faf68f25e720
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date: Thu Nov 25 05:12:29 2021 +0100
test: sip: Add debug messages
tests/test-sip.c | 17 ++++++++++++++++-
1 file changed, 16 insertions(+), 1 deletion(-)
---
diff --git a/tests/test-sip.c b/tests/test-sip.c
index 441b6891..55083fa2 100644
--- a/tests/test-sip.c
+++ b/tests/test-sip.c
@@ -438,6 +438,8 @@ test_sip_media_manager (void)
/* Check single codecs */
codecs = g_list_append (NULL, media_codec_by_name ("PCMA"));
+ g_debug ("Testing generated SDP messages");
+
/* PCMA RTP */
sdp_message =
calls_sip_media_manager_get_capabilities (manager, 40002, FALSE, codecs);
@@ -452,6 +454,8 @@ test_sip_media_manager (void)
g_free (sdp_message);
+ g_debug ("PCMA RTP test OK");
+
/* PCMA SRTP */
sdp_message =
calls_sip_media_manager_get_capabilities (manager, 42002, TRUE, codecs);
@@ -462,6 +466,8 @@ test_sip_media_manager (void)
g_clear_pointer (&codecs, g_list_free);
g_free (sdp_message);
+ g_debug ("PCMA SRTP test OK");
+
/* G722 RTP */
codecs = g_list_append (NULL, media_codec_by_name ("G722"));
@@ -479,6 +485,8 @@ test_sip_media_manager (void)
g_clear_pointer (&codecs, g_list_free);
g_free (sdp_message);
+ g_debug ("G722 RTP test OK");
+
/* G722 PCMU PCMA RTP (in this order) */
codecs = g_list_append (NULL, media_codec_by_name ("G722"));
codecs = g_list_append (codecs, media_codec_by_name ("PCMU"));
@@ -500,7 +508,9 @@ test_sip_media_manager (void)
g_clear_pointer (&codecs, g_list_free);
g_free (sdp_message);
- /* GSM PCMA G722 PCMU (in this order) */
+ g_debug ("multiple codecs RTP test OK");
+
+ /* GSM PCMA G722 PCMU SRTP (in this order) */
codecs = g_list_append (NULL, media_codec_by_name ("GSM"));
codecs = g_list_append (codecs, media_codec_by_name ("PCMA"));
codecs = g_list_append (codecs, media_codec_by_name ("G722"));
@@ -516,6 +526,9 @@ test_sip_media_manager (void)
g_clear_pointer (&codecs, g_list_free);
g_free (sdp_message);
+ g_debug ("multiple codecs SRTP test OK");
+
+ /* no codecs */
g_test_expect_message ("CallsSipMediaManager", G_LOG_LEVEL_WARNING,
"No supported codecs found. Can't build meaningful SDP message");
sdp_message =
@@ -527,6 +540,8 @@ test_sip_media_manager (void)
"m=audio 0 RTP/AVP"));
g_free (sdp_message);
+
+ g_debug ("no codecs test OK");
}
gint
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]