Fix quality report test order

This commit is contained in:
Gautier Pelloux-Prayer 2014-09-22 09:49:11 +02:00
parent b7c6893d27
commit d76cb1342b

View file

@ -80,11 +80,13 @@ char * on_report_send_verify_metrics(const reporting_content_metrics_t *metrics,
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "SessionDesc:"));
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "JitterBuffer:"));
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "PacketLoss:"));
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "QualityEst:"));
}
if (metrics->rtcp_sr_count+metrics->rtcp_xr_count>0){
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "Delay:"));
}
if (metrics->rtcp_xr_count){
CU_ASSERT_PTR_NOT_NULL(body=__strstr(body, "QualityEst:"));
}
return body;
}