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
3476c05a
Commit
3476c05a
authored
Dec 16, 2020
by
Andrea Gianarda
Browse files
Fix test "Check if participant device are removed"
Core manager reinit resets counters
parent
0a797418
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
tester/group_chat_tester.c
tester/group_chat_tester.c
+4
-1
No files found.
tester/group_chat_tester.c
View file @
3476c05a
...
...
@@ -6042,6 +6042,9 @@ static void group_chat_room_join_one_to_one_chat_room_with_a_new_device_not_noti
BC_ASSERT_FALSE
(
liblinphone_tester_copy_file
(
uri
,
uriCopy
));
int
initialPaulineEvent
=
linphone_chat_room_get_history_events_size
(
paulineCr
);
// Simulate an uninstall of the application on Marie's side with unregistration (It should remove the device)
// Save the number of chat rooms at the moment of stopping the core
const
int
marie1_no_cr
=
bctbx_list_size
(
linphone_core_get_chat_rooms
(
marie1
->
lc
));
coresManagerList
=
bctbx_list_remove
(
coresManagerList
,
marie1
);
coresList
=
bctbx_list_remove
(
coresList
,
marie1
->
lc
);
initialPaulineStats
=
pauline
->
stat
;
...
...
@@ -6117,7 +6120,7 @@ static void group_chat_room_join_one_to_one_chat_room_with_a_new_device_not_noti
bctbx_list_free
(
tmpCoresManagerList
);
coresList
=
bctbx_list_concat
(
coresList
,
tmpCoresList
);
linphone_core_manager_start
(
marie1
,
TRUE
);
BC_ASSERT_TRUE
(
wait_for_list
(
coresList
,
&
marie1
->
stat
.
number_of_LinphoneConferenceStateCreated
,
initialMarie1Stats
.
number_of_LinphoneConferenceStateCreated
+
2
,
5000
));
BC_ASSERT_TRUE
(
wait_for_list
(
coresList
,
&
marie1
->
stat
.
number_of_LinphoneConferenceStateCreated
,
initialMarie1Stats
.
number_of_LinphoneConferenceStateCreated
+
marie1_no_cr
,
5000
));
wait_for_list
(
coresList
,
NULL
,
0
,
1000
);
marie1Cr
=
check_has_chat_room_client_side
(
coresList
,
marie1
,
&
initialMarie1Stats
,
confAddr
,
initialSubject
,
1
,
FALSE
);
...
...
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