Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
e3b023a8
Commit
e3b023a8
authored
Feb 15, 2012
by
Filippo Della Betta
Committed by
Youness Alaoui
Feb 15, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced __func__ macro with G_STRFUNC in the unit tests
parent
1687711a
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
17 deletions
+17
-17
tests/test-dribble.c
tests/test-dribble.c
+4
-4
tests/test-fallback.c
tests/test-fallback.c
+4
-4
tests/test-fullmode.c
tests/test-fullmode.c
+4
-4
tests/test-restart.c
tests/test-restart.c
+4
-4
tests/test-thread.c
tests/test-thread.c
+1
-1
No files found.
tests/test-dribble.c
View file @
e3b023a8
...
@@ -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
;
...
...
tests/test-fallback.c
View file @
e3b023a8
...
@@ -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
;
...
...
tests/test-fullmode.c
View file @
e3b023a8
...
@@ -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
;
...
...
tests/test-restart.c
View file @
e3b023a8
...
@@ -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
;
...
...
tests/test-thread.c
View file @
e3b023a8
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment