Improved multipart tester

This commit is contained in:
Sylvain Berfini 2018-03-23 17:56:09 +01:00
parent 49b93c6f9a
commit c0a7c027a6

View file

@ -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);