mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
Fix previous test + fix compil when sqlite is disabled
This commit is contained in:
parent
e35ac5dc77
commit
d3416ec495
1 changed files with 6 additions and 1 deletions
|
|
@ -4901,8 +4901,11 @@ static void call_record_with_custom_rtp_modifier(void) {
|
|||
custom_rtp_modifier(FALSE, TRUE);
|
||||
}
|
||||
|
||||
#ifdef CALL_LOGS_STORAGE_ENABLED
|
||||
|
||||
static void call_logs_sqlite_storage() {
|
||||
LinphoneCoreManager* marie = linphone_core_manager_new("marie_rc");
|
||||
LinphoneCoreManager* pauline = linphone_core_manager_new(transport_supported(LinphoneTransportTls) ? "pauline_rc" : "pauline_tcp_rc");
|
||||
char *logs_db = bc_tester_file("logs.db");
|
||||
MSList *logs = NULL;
|
||||
LinphoneAddress *pauline = NULL;
|
||||
|
|
@ -4912,7 +4915,7 @@ static void call_logs_sqlite_storage() {
|
|||
|
||||
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 0);
|
||||
|
||||
simple_call_base(FALSE);
|
||||
BC_ASSERT_TRUE((call_ok=call(pauline,marie)));
|
||||
|
||||
BC_ASSERT_TRUE(linphone_core_get_call_history_size(marie->lc) == 1);
|
||||
|
||||
|
|
@ -4932,6 +4935,8 @@ static void call_logs_sqlite_storage() {
|
|||
ms_free(logs_db);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
test_t call_tests[] = {
|
||||
{ "Early declined call", early_declined_call },
|
||||
{ "Call declined", call_declined },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue