Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
643dc7f9
Commit
643dc7f9
authored
Sep 26, 2013
by
jehan
Browse files
make sure call_tester compile even if VIDEO_ENABLED not defined
parent
1e7fa495
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
21 deletions
+24
-21
tester/call_tester.c
tester/call_tester.c
+24
-21
No files found.
tester/call_tester.c
View file @
643dc7f9
...
@@ -634,6 +634,7 @@ static void call_paused_resumed_from_callee(void) {
...
@@ -634,6 +634,7 @@ static void call_paused_resumed_from_callee(void) {
linphone_core_manager_destroy
(
pauline
);
linphone_core_manager_destroy
(
pauline
);
}
}
#ifdef VIDEO_ENABLED
#ifdef VIDEO_ENABLED
static
bool_t
add_video
(
LinphoneCoreManager
*
caller
,
LinphoneCoreManager
*
callee
)
{
static
bool_t
add_video
(
LinphoneCoreManager
*
caller
,
LinphoneCoreManager
*
callee
)
{
LinphoneVideoPolicy
caller_policy
;
LinphoneVideoPolicy
caller_policy
;
...
@@ -682,28 +683,7 @@ static void call_with_video_added(void) {
...
@@ -682,28 +683,7 @@ static void call_with_video_added(void) {
linphone_core_manager_destroy
(
pauline
);
linphone_core_manager_destroy
(
pauline
);
}
}
static
void
call_with_media_relay
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
"pauline_rc"
);
linphone_core_set_user_agent
(
marie
->
lc
,
"Natted Linphone"
,
NULL
);
linphone_core_set_user_agent
(
pauline
->
lc
,
"Natted Linphone"
,
NULL
);
CU_ASSERT_TRUE
(
call
(
pauline
,
marie
));
check_rtcp
(
pauline
,
marie
);
#ifdef VIDEO_ENABLED
CU_ASSERT_TRUE
(
add_video
(
pauline
,
marie
));
check_rtcp
(
pauline
,
marie
);
#endif
/*just to sleep*/
linphone_core_terminate_all_calls
(
pauline
->
lc
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallEnd
,
1
));
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneCallEnd
,
1
));
linphone_core_manager_destroy
(
marie
);
linphone_core_manager_destroy
(
pauline
);
}
static
void
call_with_declined_video
(
void
)
{
static
void
call_with_declined_video
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
...
@@ -772,8 +752,31 @@ static void video_call(void) {
...
@@ -772,8 +752,31 @@ static void video_call(void) {
linphone_core_manager_destroy
(
marie
);
linphone_core_manager_destroy
(
marie
);
linphone_core_manager_destroy
(
pauline
);
linphone_core_manager_destroy
(
pauline
);
}
}
#endif
/*VIDEO_ENABLED*/
static
void
call_with_media_relay
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
"pauline_rc"
);
linphone_core_set_user_agent
(
marie
->
lc
,
"Natted Linphone"
,
NULL
);
linphone_core_set_user_agent
(
pauline
->
lc
,
"Natted Linphone"
,
NULL
);
CU_ASSERT_TRUE
(
call
(
pauline
,
marie
));
check_rtcp
(
pauline
,
marie
);
#ifdef VIDEO_ENABLED
CU_ASSERT_TRUE
(
add_video
(
pauline
,
marie
));
check_rtcp
(
pauline
,
marie
);
#endif
#endif
/*just to sleep*/
linphone_core_terminate_all_calls
(
pauline
->
lc
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallEnd
,
1
));
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneCallEnd
,
1
));
linphone_core_manager_destroy
(
marie
);
linphone_core_manager_destroy
(
pauline
);
}
static
void
call_with_privacy
(
void
)
{
static
void
call_with_privacy
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
"marie_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
"pauline_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
"pauline_rc"
);
...
...
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