mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Define variables at the beginning of a code block.
This commit is contained in:
parent
84eab62437
commit
fac86ba95e
2 changed files with 6 additions and 3 deletions
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue