mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 21:58:08 +00:00
Improved multipart tester
This commit is contained in:
parent
49b93c6f9a
commit
c0a7c027a6
1 changed files with 5 additions and 2 deletions
|
|
@ -58,7 +58,7 @@ static void chat_message_multipart_modifier_base(bool first_file_transfer, bool
|
|||
} else {
|
||||
Content *content = new Content();
|
||||
content->setContentType(ContentType::PlainText);
|
||||
content->setBody("Hello Part 1");
|
||||
content->setBody("Hello part 1");
|
||||
marieMessage->addContent(content);
|
||||
}
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ static void chat_message_multipart_modifier_base(bool first_file_transfer, bool
|
|||
} else {
|
||||
Content *content = new Content();
|
||||
content->setContentType(ContentType::PlainText);
|
||||
content->setBody("Hello Part 2");
|
||||
content->setBody("Hello part 2");
|
||||
marieMessage->addContent(content);
|
||||
}
|
||||
|
||||
|
|
@ -83,6 +83,9 @@ static void chat_message_multipart_modifier_base(bool first_file_transfer, bool
|
|||
BC_ASSERT_TRUE(wait_for(pauline->lc,marie->lc,&pauline->stat.number_of_LinphoneMessageReceived,1));
|
||||
BC_ASSERT_PTR_NOT_NULL(pauline->stat.last_received_chat_message);
|
||||
BC_ASSERT_STRING_EQUAL(linphone_chat_message_get_content_type(pauline->stat.last_received_chat_message), "multipart/mixed");
|
||||
if (!first_file_transfer) {
|
||||
BC_ASSERT_STRING_EQUAL(linphone_chat_message_get_text(pauline->stat.last_received_chat_message), "Hello part 1");
|
||||
}
|
||||
|
||||
linphone_core_manager_destroy(marie);
|
||||
linphone_core_manager_destroy(pauline);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue