• Home
  • Raw
  • Download

Lines Matching refs:reports

166                               const StatsReports& reports,  in ExtractStatsValue()  argument
168 for (const auto* r : reports) { in ExtractStatsValue()
203 const StatsReport* FindNthReportByType(const StatsReports& reports, in FindNthReportByType() argument
206 for (size_t i = 0; i < reports.size(); ++i) { in FindNthReportByType()
207 if (reports[i]->type() == type) { in FindNthReportByType()
210 return reports[i]; in FindNthReportByType()
222 const StatsReports& reports, in GetValueInNthReportByType() argument
226 const StatsReport* report = FindNthReportByType(reports, type, n); in GetValueInNthReportByType()
237 std::vector<const StatsReport*> GetReportsByType(const StatsReports& reports, in GetReportsByType() argument
240 for (const StatsReport* report : reports) { in GetReportsByType()
248 const StatsReport* FindReportById(const StatsReports& reports, in FindReportById() argument
250 for (const auto* r : reports) { in FindReportById()
257 std::string ExtractSsrcStatsValue(const StatsReports& reports, in ExtractSsrcStatsValue() argument
259 return ExtractStatsValue(StatsReport::kStatsReportTypeSsrc, reports, name); in ExtractSsrcStatsValue()
262 std::string ExtractBweStatsValue(const StatsReports& reports, in ExtractBweStatsValue() argument
264 return ExtractStatsValue(StatsReport::kStatsReportTypeBwe, reports, name); in ExtractBweStatsValue()
279 void CheckCertChainReports(const StatsReports& reports, in CheckCertChainReports() argument
286 const StatsReport* report = FindReportById(reports, *certificate_id); in CheckCertChainReports()
614 StatsReports* reports) { in VerifyAudioTrackStats() argument
617 stats->GetStats(nullptr, reports); in VerifyAudioTrackStats()
621 FindNthReportByType(*reports, StatsReport::kStatsReportTypeSsrc, 1); in VerifyAudioTrackStats()
625 ExtractSsrcStatsValue(*reports, StatsReport::kStatsValueNameTrackId); in VerifyAudioTrackStats()
628 ExtractSsrcStatsValue(*reports, StatsReport::kStatsValueNameSsrc); in VerifyAudioTrackStats()
632 ExtractSsrcStatsValue(*reports, StatsReport::kStatsValueNameMediaType); in VerifyAudioTrackStats()
692 StatsReports reports; in TestCertificateReports() local
693 stats->GetStats(nullptr, &reports); in TestCertificateReports()
696 FindNthReportByType(reports, StatsReport::kStatsReportTypeComponent, 1); in TestCertificateReports()
701 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TestCertificateReports()
706 CheckCertChainReports(reports, local_ders, id); in TestCertificateReports()
713 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TestCertificateReports()
718 CheckCertChainReports(reports, remote_ders, id); in TestCertificateReports()
725 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TestCertificateReports()
731 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TestCertificateReports()
850 StatsReports reports; in TEST_F() local
851 stats->GetStats(nullptr, &reports); in TEST_F()
854 FindNthReportByType(reports, StatsReport::kStatsReportTypeDataChannel, 1); in TEST_F()
876 StatsReports reports; in TEST_F() local
877 stats->GetStats(nullptr, &reports); in TEST_F()
880 FindNthReportByType(reports, StatsReport::kStatsReportTypeDataChannel, 1); in TEST_F()
889 ExtractStatsValue(StatsReport::kStatsReportTypeDataChannel, reports, in TEST_F()
892 ExtractStatsValue(StatsReport::kStatsReportTypeDataChannel, reports, in TEST_F()
895 ExtractStatsValue(StatsReport::kStatsReportTypeDataChannel, reports, in TEST_F()
898 ExtractStatsValue(StatsReport::kStatsReportTypeDataChannel, reports, in TEST_F()
923 StatsReports reports; in TEST_P() local
924 stats->GetStats(nullptr, &reports); in TEST_P()
928 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameBytesSent)); in TEST_P()
962 StatsReports reports; in TEST_P() local
963 stats->GetStats(nullptr, &reports); in TEST_P()
967 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameBytesSent)); in TEST_P()
970 reports, StatsReport::kStatsValueNameAvailableSendBandwidth)); in TEST_P()
974 reports, StatsReport::kStatsValueNameAvailableReceiveBandwidth)); in TEST_P()
977 ExtractBweStatsValue(reports, StatsReport::kStatsValueNameBucketDelay)); in TEST_P()
1012 StatsReports reports; in TEST_P() local
1013 stats->GetStats(nullptr, &reports); in TEST_P()
1017 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameBytesSent)); in TEST_P()
1020 reports, StatsReport::kStatsValueNameAvailableSendBandwidth)); in TEST_P()
1024 reports, StatsReport::kStatsValueNameAvailableReceiveBandwidth)); in TEST_P()
1027 ExtractBweStatsValue(reports, StatsReport::kStatsValueNameBucketDelay)); in TEST_P()
1037 StatsReports reports; in TEST_F() local
1038 stats->GetStats(nullptr, &reports); in TEST_F()
1041 FindNthReportByType(reports, StatsReport::kStatsReportTypeSession, 1)); in TEST_F()
1052 StatsReports reports; in TEST_F() local
1053 stats->GetStats(nullptr, &reports); in TEST_F()
1056 FindNthReportByType(reports, StatsReport::kStatsReportTypeSession, 1)); in TEST_F()
1058 FindNthReportByType(reports, StatsReport::kStatsReportTypeSession, 2)); in TEST_F()
1071 StatsReports reports; in TEST_P() local
1072 stats->GetStats(nullptr, &reports); in TEST_P()
1073 ASSERT_EQ(1u, reports.size()); in TEST_P()
1074 EXPECT_EQ(StatsReport::kStatsReportTypeTrack, reports[0]->type()); in TEST_P()
1075 EXPECT_EQ(0, reports[0]->timestamp()); in TEST_P()
1078 ExtractStatsValue(StatsReport::kStatsReportTypeTrack, reports, in TEST_P()
1104 StatsReports reports; in TEST_P() local
1105 stats->GetStats(nullptr, &reports); in TEST_P()
1109 EXPECT_LE(3u, reports.size()); in TEST_P()
1111 FindNthReportByType(reports, StatsReport::kStatsReportTypeTrack, 1); in TEST_P()
1115 reports.clear(); in TEST_P()
1116 stats->GetStats(track_, &reports); in TEST_P()
1119 EXPECT_LE(3u, reports.size()); in TEST_P()
1121 FindNthReportByType(reports, StatsReport::kStatsReportTypeTrack, 1); in TEST_P()
1126 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameSsrc); in TEST_P()
1130 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameTrackId); in TEST_P()
1134 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameMediaType); in TEST_P()
1159 StatsReports reports; in TEST_P() local
1160 stats->GetStats(nullptr, &reports); in TEST_P()
1163 ExtractStatsValue(StatsReport::kStatsReportTypeSsrc, reports, in TEST_P()
1179 const StatsReport* transport_report = FindReportById(reports, id); in TEST_P()
1193 StatsReports reports; in TEST_P() local
1194 stats->GetStats(nullptr, &reports); in TEST_P()
1197 FindNthReportByType(reports, StatsReport::kStatsReportTypeRemoteSsrc, 1); in TEST_P()
1222 StatsReports reports; in TEST_P() local
1223 stats->GetStats(nullptr, &reports); in TEST_P()
1226 FindNthReportByType(reports, StatsReport::kStatsReportTypeRemoteSsrc, 1); in TEST_P()
1251 StatsReports reports; in TEST_P() local
1252 stats->GetStats(nullptr, &reports); in TEST_P()
1256 EXPECT_LE(3u, reports.size()); in TEST_P()
1258 FindNthReportByType(reports, StatsReport::kStatsReportTypeTrack, 1); in TEST_P()
1263 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameSsrc); in TEST_P()
1267 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameTrackId); in TEST_P()
1315 StatsReports reports; in TEST_F() local
1316 stats->GetStats(nullptr, &reports); in TEST_F()
1321 ExtractStatsValue(StatsReport::kStatsReportTypeCandidatePair, reports, in TEST_F()
1325 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1329 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1333 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1337 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1341 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1345 ExtractStatsValue(StatsReport::kStatsReportTypeIceLocalCandidate, reports, in TEST_F()
1351 ExtractStatsValue(StatsReport::kStatsReportTypeCandidatePair, reports, in TEST_F()
1355 reports, in TEST_F()
1359 reports, in TEST_F()
1363 StatsReport::kStatsReportTypeIceRemoteCandidate, reports, in TEST_F()
1367 reports, in TEST_F()
1372 reports, StatsReport::kStatsValueNameCandidateType)); in TEST_F()
1375 StatsReport::kStatsReportTypeIceRemoteCandidate, reports, in TEST_F()
1430 StatsReports reports; in TEST_F() local
1431 stats->GetStats(nullptr, &reports); in TEST_F()
1435 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TEST_F()
1441 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TEST_F()
1447 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TEST_F()
1451 ExtractStatsValue(StatsReport::kStatsReportTypeComponent, reports, in TEST_F()
1535 StatsReports reports; in TEST_P() local
1536 stats->GetStats(local_track.get(), &reports); in TEST_P()
1538 FindNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, 1); in TEST_P()
1554 reports.clear(); in TEST_P()
1555 stats->GetStats(remote_track.get(), &reports); in TEST_P()
1556 report = FindNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, 1); in TEST_P()
1583 StatsReports reports; // returned values. in TEST_P() local
1584 VerifyAudioTrackStats(audio_track_, stats.get(), voice_info, &reports); in TEST_P()
1589 FindNthReportByType(reports, StatsReport::kStatsReportTypeRemoteSsrc, 1); in TEST_P()
1610 StatsReports reports; // returned values. in TEST_P() local
1611 VerifyAudioTrackStats(audio_track_, stats.get(), voice_info, &reports); in TEST_P()
1634 StatsReports reports; in TEST_P() local
1635 stats->GetStats(nullptr, &reports); in TEST_P()
1639 FindNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, 1); in TEST_P()
1643 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameTrackId); in TEST_P()
1646 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameSsrc); in TEST_P()
1696 StatsReports reports; // returned values. in TEST_P() local
1697 stats->GetStats(audio_track_.get(), &reports); in TEST_P()
1700 FindNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, 1); in TEST_P()
1704 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameTrackId); in TEST_P()
1709 reports.clear(); in TEST_P()
1710 stats->GetStats(remote_track.get(), &reports); in TEST_P()
1712 FindNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, 1); in TEST_P()
1716 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameTrackId); in TEST_P()
1748 StatsReports reports; // returned values. in TEST_P() local
1749 VerifyAudioTrackStats(audio_track_, stats.get(), voice_info, &reports); in TEST_P()
1774 reports.clear(); in TEST_P()
1775 VerifyAudioTrackStats(new_audio_track, stats.get(), new_voice_info, &reports); in TEST_P()
1814 StatsReports reports; in TEST_P() local
1815 stats->GetStats(local_track.get(), &reports); in TEST_P()
1816 RTC_LOG(LS_INFO) << reports.size(); in TEST_P()
1820 reports, StatsReport::kStatsReportTypeSsrc, in TEST_P()
1823 reports, StatsReport::kStatsReportTypeSsrc, in TEST_P()
1829 GetValueInNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, in TEST_P()
1831 GetValueInNthReportByType(reports, StatsReport::kStatsReportTypeSsrc, in TEST_P()
1838 1u, GetReportsByType(reports, StatsReport::kStatsReportTypeTrack).size()); in TEST_P()
1840 reports, StatsReport::kStatsReportTypeTrack, in TEST_P()
1862 StatsReports reports; in TEST_P() local
1863 stats->GetStats(nullptr, &reports); in TEST_P()
1866 ExtractSsrcStatsValue(reports, in TEST_P()
1869 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameQpSum)); in TEST_P()
1890 StatsReports reports; in TEST_P() local
1891 stats->GetStats(nullptr, &reports); in TEST_P()
1894 ExtractSsrcStatsValue(reports, in TEST_P()
1897 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameQpSum)); in TEST_P()