Commit e3b023a8 authored by Filippo Della Betta's avatar Filippo Della Betta Committed by Youness Alaoui

Replaced __func__ macro with G_STRFUNC in the unit tests

parent 1687711a
...@@ -128,7 +128,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin ...@@ -128,7 +128,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin
static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data) static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data)
{ {
g_debug ("test-dribble:%s: %p", __func__, data); g_debug ("test-dribble:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
global_lagent_state = state; global_lagent_state = state;
...@@ -165,7 +165,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint ...@@ -165,7 +165,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint
static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id,
gchar *lfoundation, gchar* rfoundation, gpointer data) gchar *lfoundation, gchar* rfoundation, gpointer data)
{ {
g_debug ("test-dribble:%s: %p", __func__, data); g_debug ("test-dribble:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
++global_lagent_cands; ++global_lagent_cands;
...@@ -179,7 +179,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon ...@@ -179,7 +179,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon
static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id,
gchar *foundation, gpointer data) gchar *foundation, gpointer data)
{ {
g_debug ("test-dribble:%s: %p", __func__, data); g_debug ("test-dribble:%s: %p", G_STRFUNC, data);
/* XXX: dear compiler, these are for you: */ /* XXX: dear compiler, these are for you: */
(void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation; (void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation;
...@@ -187,7 +187,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_ ...@@ -187,7 +187,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_
static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data) static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data)
{ {
g_debug ("test-dribble:%s: %p", __func__, data); g_debug ("test-dribble:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
global_lagent_ibr_received = TRUE; global_lagent_ibr_received = TRUE;
......
...@@ -126,7 +126,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin ...@@ -126,7 +126,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin
static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data) static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data)
{ {
g_debug ("test-fallback:%s: %p", __func__, data); g_debug ("test-fallback:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
global_lagent_state = state; global_lagent_state = state;
...@@ -159,7 +159,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint ...@@ -159,7 +159,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint
static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id,
gchar *lfoundation, gchar* rfoundation, gpointer data) gchar *lfoundation, gchar* rfoundation, gpointer data)
{ {
g_debug ("test-fallback:%s: %p", __func__, data); g_debug ("test-fallback:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
++global_lagent_cands; ++global_lagent_cands;
...@@ -173,7 +173,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon ...@@ -173,7 +173,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon
static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id,
gchar *foundation, gpointer data) gchar *foundation, gpointer data)
{ {
g_debug ("test-fallback:%s: %p", __func__, data); g_debug ("test-fallback:%s: %p", G_STRFUNC, data);
/* XXX: dear compiler, these are for you: */ /* XXX: dear compiler, these are for you: */
(void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation; (void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation;
...@@ -181,7 +181,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_ ...@@ -181,7 +181,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_
static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data) static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data)
{ {
g_debug ("test-fallback:%s: %p", __func__, data); g_debug ("test-fallback:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
global_lagent_ibr_received = TRUE; global_lagent_ibr_received = TRUE;
......
...@@ -202,7 +202,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin ...@@ -202,7 +202,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin
static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data) static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data)
{ {
g_debug ("test-fullmode:%s: %p", __func__, data); g_debug ("test-fullmode:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
global_lagent_state[component_id - 1] = state; global_lagent_state[component_id - 1] = state;
...@@ -240,7 +240,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint ...@@ -240,7 +240,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint
static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id,
gchar *lfoundation, gchar* rfoundation, gpointer data) gchar *lfoundation, gchar* rfoundation, gpointer data)
{ {
g_debug ("test-fullmode:%s: %p", __func__, data); g_debug ("test-fullmode:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
++global_lagent_cands; ++global_lagent_cands;
...@@ -254,7 +254,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon ...@@ -254,7 +254,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon
static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id,
gchar *foundation, gpointer data) gchar *foundation, gpointer data)
{ {
g_debug ("test-fullmode:%s: %p", __func__, data); g_debug ("test-fullmode:%s: %p", G_STRFUNC, data);
/* XXX: dear compiler, these are for you: */ /* XXX: dear compiler, these are for you: */
(void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation; (void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation;
...@@ -262,7 +262,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_ ...@@ -262,7 +262,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_
static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data) static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data)
{ {
g_debug ("test-fullmode:%s: %p", __func__, data); g_debug ("test-fullmode:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
global_lagent_ibr_received = TRUE; global_lagent_ibr_received = TRUE;
......
...@@ -111,7 +111,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin ...@@ -111,7 +111,7 @@ static void cb_candidate_gathering_done(NiceAgent *agent, guint stream_id, gpoin
static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data) static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint component_id, guint state, gpointer data)
{ {
g_debug ("test-restart:%s: %p", __func__, data); g_debug ("test-restart:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
global_lagent_state = state; global_lagent_state = state;
...@@ -144,7 +144,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint ...@@ -144,7 +144,7 @@ static void cb_component_state_changed (NiceAgent *agent, guint stream_id, guint
static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint component_id,
gchar *lfoundation, gchar* rfoundation, gpointer data) gchar *lfoundation, gchar* rfoundation, gpointer data)
{ {
g_debug ("test-restart:%s: %p", __func__, data); g_debug ("test-restart:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
++global_lagent_cands; ++global_lagent_cands;
...@@ -158,7 +158,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon ...@@ -158,7 +158,7 @@ static void cb_new_selected_pair(NiceAgent *agent, guint stream_id, guint compon
static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id, static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_id,
gchar *foundation, gpointer data) gchar *foundation, gpointer data)
{ {
g_debug ("test-restart:%s: %p", __func__, data); g_debug ("test-restart:%s: %p", G_STRFUNC, data);
/* XXX: dear compiler, these are for you: */ /* XXX: dear compiler, these are for you: */
(void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation; (void)agent; (void)stream_id; (void)data; (void)component_id; (void)foundation;
...@@ -166,7 +166,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_ ...@@ -166,7 +166,7 @@ static void cb_new_candidate(NiceAgent *agent, guint stream_id, guint component_
static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data) static void cb_initial_binding_request_received(NiceAgent *agent, guint stream_id, gpointer data)
{ {
g_debug ("test-restart:%s: %p", __func__, data); g_debug ("test-restart:%s: %p", G_STRFUNC, data);
if ((intptr_t)data == 1) if ((intptr_t)data == 1)
global_lagent_ibr_received = TRUE; global_lagent_ibr_received = TRUE;
......
...@@ -82,7 +82,7 @@ cb_new_selected_pair(NiceAgent *agent, ...@@ -82,7 +82,7 @@ cb_new_selected_pair(NiceAgent *agent,
gchar* rfoundation, gchar* rfoundation,
gpointer data) gpointer data)
{ {
g_debug ("test-thread:%s: %p", __func__, data); g_debug ("test-thread:%s: %p", G_STRFUNC, data);
if (GPOINTER_TO_UINT (data) == 1) if (GPOINTER_TO_UINT (data) == 1)
g_atomic_int_inc (&global_lagent_cands); g_atomic_int_inc (&global_lagent_cands);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment