mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
Use ms_time() instead of time()
This commit is contained in:
parent
42ddf0cf81
commit
da9cffd5fe
2 changed files with 6 additions and 6 deletions
|
|
@ -2269,8 +2269,8 @@ static void early_media_call_with_ringing(void){
|
|||
MSList* lcs = NULL;
|
||||
LinphoneCall* marie_call;
|
||||
LinphoneCallLog *marie_call_log;
|
||||
time_t connected_time=0;
|
||||
time_t ended_time=0;
|
||||
uint64_t connected_time=0;
|
||||
uint64_t ended_time=0;
|
||||
int dummy=0;
|
||||
|
||||
lcs = ms_list_append(lcs,marie->lc);
|
||||
|
|
@ -2299,7 +2299,7 @@ static void early_media_call_with_ringing(void){
|
|||
linphone_core_accept_call(pauline->lc, linphone_core_get_current_call(pauline->lc));
|
||||
|
||||
CU_ASSERT_TRUE(wait_for_list(lcs, &marie->stat.number_of_LinphoneCallConnected, 1,1000));
|
||||
connected_time=time(NULL);
|
||||
connected_time=ms_get_cur_time_ms();
|
||||
CU_ASSERT_TRUE(wait_for_list(lcs, &marie->stat.number_of_LinphoneCallStreamsRunning, 1,1000));
|
||||
|
||||
CU_ASSERT_EQUAL(marie_call, linphone_core_get_current_call(marie->lc));
|
||||
|
|
@ -2312,8 +2312,8 @@ static void early_media_call_with_ringing(void){
|
|||
|
||||
CU_ASSERT_TRUE(wait_for_list(lcs,&pauline->stat.number_of_LinphoneCallEnd,1,1000));
|
||||
CU_ASSERT_TRUE(wait_for_list(lcs,&marie->stat.number_of_LinphoneCallEnd,1,1000));
|
||||
ended_time=time(NULL);
|
||||
CU_ASSERT_TRUE (labs (linphone_call_log_get_duration(marie_call_log) - (ended_time - connected_time)) <1 );
|
||||
ended_time=ms_get_cur_time_ms();
|
||||
CU_ASSERT_TRUE( labs((linphone_call_log_get_duration(marie_call_log)*1000) - (ended_time - connected_time)) <=1000 );
|
||||
ms_list_free(lcs);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -336,7 +336,7 @@ static void presence_information(void) {
|
|||
}
|
||||
|
||||
/* Presence timestamp. */
|
||||
current_timestamp = time(NULL);
|
||||
current_timestamp = ms_time(NULL);
|
||||
presence = linphone_presence_model_new_with_activity(LinphonePresenceActivityShopping, NULL);
|
||||
linphone_core_set_presence_model(pauline->lc, presence);
|
||||
wait_for(marie->lc,pauline->lc,&marie->stat.number_of_LinphonePresenceActivityShopping,1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue