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
44ffb32d
Commit
44ffb32d
authored
Jan 29, 2016
by
Sylvain Berfini
🐮
Browse files
Fixed tester compilation
parent
82b74a8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
tester/presence_tester.c
View file @
44ffb32d
...
...
@@ -848,10 +848,11 @@ static void test_presence_list_subscribe_dialog_expire(void) {
linphone_friend_list_add_friend
(
lfl
,
lf
);
lf
=
linphone_core_create_friend_with_address
(
laure
->
lc
,
"sip:michelle@sip.inexistentdomain.com"
);
linphone_friend_list_add_friend
(
lfl
,
lf
);
linphone_core_set_friend_list
(
laure
->
lc
,
lfl
);
linphone_core_remove_friend_list
(
laure
->
lc
,
linphone_core_get_default_friend_list
(
laure
->
lc
));
linphone_core_add_friend_list
(
laure
->
lc
,
lfl
);
linphone_friend_list_unref
(
lfl
);
linphone_core_set_presence_model
(
laure
->
lc
,
linphone_core_create_presence_model_with_activity
(
laure
->
lc
,
LinphonePresenceActivityOnline
,
NULL
));
linphone_friend_list_update_subscriptions
(
l
aure
->
lc
->
friendlist
,
NULL
,
FALSE
);
linphone_friend_list_update_subscriptions
(
l
inphone_core_get_default_
friend
_
list
(
laure
->
lc
)
,
NULL
,
FALSE
);
lcs
=
ms_list_append
(
lcs
,
laure
->
lc
);
lcs
=
ms_list_append
(
lcs
,
pauline
->
lc
);
...
...
@@ -861,12 +862,12 @@ static void test_presence_list_subscribe_dialog_expire(void) {
enable_publish
(
pauline
,
TRUE
);
wait_for_list
(
lcs
,
&
pauline
->
stat
.
number_of_NotifyPresenceReceived
,
1
,
2000
);
BC_ASSERT_GREATER
(
laure
->
stat
.
number_of_NotifyPresenceReceived
,
1
,
int
,
"%d"
);
BC_ASSERT_GREATER
(
l
aure
->
lc
->
friendlist
->
expected_notification_version
,
1
,
int
,
"%d"
);
lf
=
linphone_friend_list_find_friend_by_uri
(
l
aure
->
lc
->
friendlist
,
pauline_identity
);
BC_ASSERT_GREATER
(
l
inphone_core_get_default_
friend
_
list
(
laure
->
lc
)
->
expected_notification_version
,
1
,
int
,
"%d"
);
lf
=
linphone_friend_list_find_friend_by_uri
(
l
inphone_core_get_default_
friend
_
list
(
laure
->
lc
)
,
pauline_identity
);
BC_ASSERT_EQUAL
(
linphone_friend_get_status
(
lf
),
LinphoneStatusVacation
,
int
,
"%d"
);
BC_ASSERT_EQUAL
(
lf
->
presence_received
,
TRUE
,
int
,
"%d"
);
BC_ASSERT_EQUAL
(
lf
->
subscribe_active
,
TRUE
,
int
,
"%d"
);
lf
=
linphone_friend_list_find_friend_by_uri
(
l
aure
->
lc
->
friendlist
,
"sip:michelle@sip.inexistentdomain.com"
);
lf
=
linphone_friend_list_find_friend_by_uri
(
l
inphone_core_get_default_
friend
_
list
(
laure
->
lc
)
,
"sip:michelle@sip.inexistentdomain.com"
);
BC_ASSERT_EQUAL
(
linphone_friend_get_status
(
lf
),
LinphoneStatusOffline
,
int
,
"%d"
);
BC_ASSERT_EQUAL
(
lf
->
presence_received
,
FALSE
,
int
,
"%d"
);
BC_ASSERT_EQUAL
(
lf
->
subscribe_active
,
TRUE
,
int
,
"%d"
);
...
...
@@ -886,7 +887,7 @@ static void test_presence_list_subscribe_dialog_expire(void) {
linphone_core_set_presence_model
(
pauline
->
lc
,
linphone_core_create_presence_model_with_activity
(
pauline
->
lc
,
LinphonePresenceActivityAway
,
NULL
));
BC_ASSERT_TRUE
(
wait_for_until
(
laure
->
lc
,
pauline
->
lc
,
&
laure
->
stat
.
number_of_NotifyPresenceReceived
,
3
,
5000
));
lf
=
linphone_friend_list_find_friend_by_uri
(
l
aure
->
lc
->
friendlist
,
pauline_identity
);
lf
=
linphone_friend_list_find_friend_by_uri
(
l
inphone_core_get_default_
friend
_
list
(
laure
->
lc
)
,
pauline_identity
);
BC_ASSERT_EQUAL
(
linphone_friend_get_status
(
lf
),
LinphoneStatusAway
,
int
,
"%d"
);
linphone_core_manager_destroy
(
laure
);
...
...
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