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
a3b49906
Commit
a3b49906
authored
Jan 31, 2018
by
Sylvain Berfini
🎩
Browse files
Improved some tests + fixed leaks
parent
c3af1a6b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tester/message_tester.c
tester/message_tester.c
+6
-0
No files found.
tester/message_tester.c
View file @
a3b49906
...
...
@@ -2174,6 +2174,9 @@ void _text_message_with_custom_content_type(bool_t with_lime) {
BC_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneMessageReceived
,
1
));
BC_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
pauline
->
stat
.
number_of_LinphoneMessageDelivered
,
1
));
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_content_type
(
msg
),
"image/svg+xml"
);
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_text
(
msg
),
buf
);
if
(
marie
->
stat
.
last_received_chat_message
)
{
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_content_type
(
marie
->
stat
.
last_received_chat_message
),
"image/svg+xml"
);
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_text
(
marie
->
stat
.
last_received_chat_message
),
buf
);
...
...
@@ -2182,6 +2185,7 @@ void _text_message_with_custom_content_type(bool_t with_lime) {
bctbx_free
(
buf
);
end:
linphone_chat_message_unref
(
msg
);
linphone_core_manager_destroy
(
marie
);
linphone_core_manager_destroy
(
pauline
);
remove
(
"tmpZIDCacheMarie.sqlite"
);
...
...
@@ -2299,12 +2303,14 @@ void im_encryption_engine_b64_base(bool_t async) {
chat_msg
=
linphone_chat_room_create_message
(
chat_room
,
"Bla bla bla bla"
);
linphone_chat_room_send_chat_message
(
chat_room
,
chat_msg
);
BC_ASSERT_TRUE
(
wait_for
(
pauline
->
lc
,
marie
->
lc
,
&
marie
->
stat
.
number_of_LinphoneMessageReceived
,
1
));
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_text
(
chat_msg
),
"Bla bla bla bla"
);
BC_ASSERT_PTR_NOT_NULL
(
marie
->
stat
.
last_received_chat_message
);
if
(
marie
->
stat
.
last_received_chat_message
)
{
BC_ASSERT_STRING_EQUAL
(
linphone_chat_message_get_text
(
marie
->
stat
.
last_received_chat_message
),
"Bla bla bla bla"
);
}
BC_ASSERT_PTR_NOT_NULL
(
linphone_core_get_chat_room
(
marie
->
lc
,
pauline
->
identity
));
linphone_chat_message_unref
(
chat_msg
);
linphone_im_encryption_engine_unref
(
marie_imee
);
linphone_im_encryption_engine_unref
(
pauline_imee
);
linphone_core_manager_destroy
(
marie
);
...
...
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