mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 10:49:26 +00:00
improve rtcp-mux non regression tests
This commit is contained in:
parent
3b979be245
commit
51b9dba8c1
2 changed files with 6 additions and 4 deletions
2
oRTP
2
oRTP
|
|
@ -1 +1 @@
|
|||
Subproject commit 846174f901b264e50c6dfb0f8c81fffffed90c52
|
||||
Subproject commit d511e07b937c22996dea1ee3f1449756d16597cb
|
||||
|
|
@ -190,6 +190,8 @@ void liblinphone_tester_check_rtcp(LinphoneCoreManager* caller, LinphoneCoreMana
|
|||
}while (!liblinphone_tester_clock_elapsed(&ts,max_time_to_wait));
|
||||
|
||||
if (linphone_core_rtcp_enabled(caller->lc) && linphone_core_rtcp_enabled(callee->lc)) {
|
||||
BC_ASSERT_GREATER(caller->stat.number_of_rtcp_received, 1, int, "%i");
|
||||
BC_ASSERT_GREATER(callee->stat.number_of_rtcp_received, 1, int, "%i");
|
||||
BC_ASSERT_GREATER(linphone_call_get_audio_stats(c1)->round_trip_delay,0.0,float,"%f");
|
||||
BC_ASSERT_GREATER(linphone_call_get_audio_stats(c2)->round_trip_delay,0.0,float,"%f");
|
||||
if (linphone_call_log_video_enabled(linphone_call_get_call_log(c1))) {
|
||||
|
|
@ -6164,12 +6166,12 @@ static void _call_with_rtcp_mux(bool_t caller_rtcp_mux, bool_t callee_rtcp_mux,
|
|||
check_ice(marie, pauline, LinphoneIceStateHostConnection);
|
||||
}
|
||||
liblinphone_tester_check_rtcp(marie,pauline);
|
||||
|
||||
|
||||
if (caller_rtcp_mux && callee_rtcp_mux){
|
||||
BC_ASSERT_EQUAL(marie->stat.number_of_rtcp_received_via_mux, marie->stat.number_of_rtcp_received, int, "%i");
|
||||
BC_ASSERT_GREATER(marie->stat.number_of_rtcp_received, 0, int, "%i");
|
||||
|
||||
BC_ASSERT_EQUAL(pauline->stat.number_of_rtcp_received_via_mux, pauline->stat.number_of_rtcp_received, int, "%i");
|
||||
BC_ASSERT_GREATER(pauline->stat.number_of_rtcp_received, 0, int, "%i");
|
||||
|
||||
}else{
|
||||
BC_ASSERT_TRUE(marie->stat.number_of_rtcp_received_via_mux == 0);
|
||||
BC_ASSERT_TRUE(pauline->stat.number_of_rtcp_received_via_mux == 0);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue