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
fac86ba9
Commit
fac86ba9
authored
Apr 08, 2013
by
Ghislain MARY
Browse files
Define variables at the beginning of a code block.
parent
84eab624
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
tester/call_tester.c
tester/call_tester.c
+4
-2
tester/message_tester.c
tester/message_tester.c
+2
-1
No files found.
tester/call_tester.c
View file @
fac86ba9
...
...
@@ -320,9 +320,11 @@ static void cancelled_ringing_call(void) {
static
void
early_declined_call
(
void
)
{
LinphoneCoreManager
*
marie
=
linphone_core_manager_new
(
liblinphone_tester_file_prefix
,
"marie_rc"
);
LinphoneCoreManager
*
pauline
=
linphone_core_manager_new
(
liblinphone_tester_file_prefix
,
"pauline_rc"
);
linphone_core_set_max_calls
(
marie
->
lc
,
0
);
LinphoneCallLog
*
in_call
;
LinphoneCall
*
out_call
=
linphone_core_invite
(
pauline
->
lc
,
"marie"
);
LinphoneCall
*
out_call
;
linphone_core_set_max_calls
(
marie
->
lc
,
0
);
out_call
=
linphone_core_invite
(
pauline
->
lc
,
"marie"
);
linphone_call_ref
(
out_call
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneCallReleased
,
1
));
...
...
tester/message_tester.c
View file @
fac86ba9
...
...
@@ -80,6 +80,7 @@ static void text_message_compatibility_mode(void) {
char
*
tmp
;
LCSipTransports
transport
;
char
*
to
=
linphone_address_as_string
(
pauline
->
identity
);
LinphoneChatRoom
*
chat_room
;
linphone_core_get_default_proxy
(
marie
->
lc
,
&
proxy
);
CU_ASSERT_PTR_NOT_NULL
(
proxy
);
...
...
@@ -100,7 +101,7 @@ static void text_message_compatibility_mode(void) {
CU_ASSERT_TRUE
(
wait_for
(
marie
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneRegistrationOk
,
1
));
LinphoneChatRoom
*
chat_room
=
linphone_core_create_chat_room
(
marie
->
lc
,
to
);
chat_room
=
linphone_core_create_chat_room
(
marie
->
lc
,
to
);
linphone_chat_room_send_message
(
chat_room
,
"Bla bla bla bla"
);
CU_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneMessageReceived
,
1
));
CU_ASSERT_EQUAL
(
pauline
->
stat
.
number_of_LinphoneMessageReceivedLegacy
,
1
);
...
...
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