• Home
  • Raw
  • Download

Lines Matching refs:report

168 std::string IdForType(const RTCStatsReport* report) {  in IdForType()  argument
169 auto stats_of_my_type = report->RTCStatsReport::GetStatsOfType<T>(); in IdForType()
642 EXPECT_TRUE_WAIT(callback->report() != nullptr, kGetStatsReportTimeoutMs); in WaitForReport()
644 for (const RTCStats& stats : *callback->report()) { in WaitForReport()
652 return callback->report(); in WaitForReport()
666 const rtc::scoped_refptr<const RTCStatsReport>& report, in ExpectReportContainsCertificateInfo() argument
670 "CF" + certinfo.fingerprints[i], report->timestamp_us()); in ExpectReportContainsCertificateInfo()
678 ASSERT_TRUE(report->Get(expected_certificate_stats.id())); in ExpectReportContainsCertificateInfo()
680 report->Get(expected_certificate_stats.id()) in ExpectReportContainsCertificateInfo()
686 const rtc::scoped_refptr<const RTCStatsReport>& report, in GetCertificateStatsFromFingerprint() argument
688 auto certificates = report->GetStatsOfType<RTCCertificateStats>(); in GetCertificateStatsFromFingerprint()
994 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
995 std::string json_format = report->ToJson(); in TEST_F()
1005 EXPECT_EQ(report->size(), json_value.size()); in TEST_F()
1025 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1027 ExpectReportContainsCertificateInfo(report, *local_certinfo); in TEST_F()
1028 ExpectReportContainsCertificateInfo(report, *remote_certinfo); in TEST_F()
1062 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1063 auto inbound_rtps = report->GetStatsOfType<RTCInboundRTPStreamStats>(); in TEST_F()
1064 auto outbound_rtps = report->GetStatsOfType<RTCOutboundRTPStreamStats>(); in TEST_F()
1176 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1179 "CITTransportName1_1_minptime=10;useinbandfec=1", report->timestamp_us()); in TEST_F()
1188 report->timestamp_us()); in TEST_F()
1198 report->timestamp_us()); in TEST_F()
1207 report->timestamp_us()); in TEST_F()
1213 ASSERT_TRUE(report->Get(expected_inbound_audio_codec.id())); in TEST_F()
1216 report->Get(expected_inbound_audio_codec.id())->cast_to<RTCCodecStats>()); in TEST_F()
1218 ASSERT_TRUE(report->Get(expected_outbound_audio_codec.id())); in TEST_F()
1220 report->Get(expected_outbound_audio_codec.id()) in TEST_F()
1223 ASSERT_TRUE(report->Get(expected_inbound_video_codec.id())); in TEST_F()
1226 report->Get(expected_inbound_video_codec.id())->cast_to<RTCCodecStats>()); in TEST_F()
1228 ASSERT_TRUE(report->Get(expected_outbound_video_codec.id())); in TEST_F()
1230 report->Get(expected_outbound_video_codec.id()) in TEST_F()
1243 report = stats_->GetStatsReport(); in TEST_F()
1244 EXPECT_FALSE(report->Get(expected_inbound_audio_codec.id())); in TEST_F()
1245 EXPECT_FALSE(report->Get(expected_outbound_audio_codec.id())); in TEST_F()
1246 EXPECT_FALSE(report->Get(expected_inbound_video_codec.id())); in TEST_F()
1247 EXPECT_FALSE(report->Get(expected_outbound_video_codec.id())); in TEST_F()
1302 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1303 auto codec_stats = report->GetStatsOfType<RTCCodecStats>(); in TEST_F()
1310 report = stats_->GetStatsReport(); in TEST_F()
1311 codec_stats = report->GetStatsOfType<RTCCodecStats>(); in TEST_F()
1355 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1356 auto codec_stats = report->GetStatsOfType<RTCCodecStats>(); in TEST_F()
1368 report = stats_->GetStatsReport(); in TEST_F()
1369 codec_stats = report->GetStatsOfType<RTCCodecStats>(); in TEST_F()
1390 report = stats_->GetStatsReport(); in TEST_F()
1391 codec_stats = report->GetStatsOfType<RTCCodecStats>(); in TEST_F()
1424 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1425 ExpectReportContainsCertificateInfo(report, *audio_local_certinfo); in TEST_F()
1426 ExpectReportContainsCertificateInfo(report, *audio_remote_certinfo); in TEST_F()
1427 ExpectReportContainsCertificateInfo(report, *video_local_certinfo); in TEST_F()
1428 ExpectReportContainsCertificateInfo(report, *video_remote_certinfo); in TEST_F()
1449 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1450 ExpectReportContainsCertificateInfo(report, *local_certinfo); in TEST_F()
1451 ExpectReportContainsCertificateInfo(report, *remote_certinfo); in TEST_F()
1578 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1638 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1640 ASSERT_TRUE(report->Get(expected_data_channel0.id())); in TEST_F()
1643 report->Get(expected_data_channel0.id())->cast_to<RTCDataChannelStats>()); in TEST_F()
1644 ASSERT_TRUE(report->Get(expected_data_channel1.id())); in TEST_F()
1647 report->Get(expected_data_channel1.id())->cast_to<RTCDataChannelStats>()); in TEST_F()
1648 ASSERT_TRUE(report->Get(expected_data_channel2.id())); in TEST_F()
1651 report->Get(expected_data_channel2.id())->cast_to<RTCDataChannelStats>()); in TEST_F()
1652 ASSERT_TRUE(report->Get(expected_data_channel3.id())); in TEST_F()
1655 report->Get(expected_data_channel3.id())->cast_to<RTCDataChannelStats>()); in TEST_F()
1868 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1870 ASSERT_TRUE(report->Get(expected_a_local_host.id())); in TEST_F()
1871 EXPECT_EQ(expected_a_local_host, report->Get(expected_a_local_host.id()) in TEST_F()
1874 ASSERT_TRUE(report->Get(expected_a_local_host_not_paired.id())); in TEST_F()
1876 report->Get(expected_a_local_host_not_paired.id()) in TEST_F()
1879 ASSERT_TRUE(report->Get(expected_a_remote_srflx.id())); in TEST_F()
1881 report->Get(expected_a_remote_srflx.id()) in TEST_F()
1883 ASSERT_TRUE(report->Get(expected_a_local_prflx.id())); in TEST_F()
1884 EXPECT_EQ(expected_a_local_prflx, report->Get(expected_a_local_prflx.id()) in TEST_F()
1886 ASSERT_TRUE(report->Get(expected_a_remote_relay.id())); in TEST_F()
1888 report->Get(expected_a_remote_relay.id()) in TEST_F()
1890 ASSERT_TRUE(report->Get(expected_a_local_relay.id())); in TEST_F()
1891 EXPECT_EQ(expected_a_local_relay, report->Get(expected_a_local_relay.id()) in TEST_F()
1893 ASSERT_TRUE(report->Get(expected_a_local_relay_prflx.id())); in TEST_F()
1895 report->Get(expected_a_local_relay_prflx.id()) in TEST_F()
1897 ASSERT_TRUE(report->Get(expected_b_local.id())); in TEST_F()
1900 report->Get(expected_b_local.id())->cast_to<RTCLocalIceCandidateStats>()); in TEST_F()
1901 ASSERT_TRUE(report->Get(expected_b_remote.id())); in TEST_F()
1902 EXPECT_EQ(expected_b_remote, report->Get(expected_b_remote.id()) in TEST_F()
1904 EXPECT_TRUE(report->Get("Ta0")); in TEST_F()
1905 EXPECT_TRUE(report->Get("Tb0")); in TEST_F()
1954 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
1958 report->timestamp_us()); in TEST_F()
1987 ASSERT_TRUE(report->Get(expected_pair.id())); in TEST_F()
1990 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); in TEST_F()
1991 EXPECT_TRUE(report->Get(*expected_pair.transport_id)); in TEST_F()
1997 report = stats_->GetFreshStatsReport(); in TEST_F()
1999 ASSERT_TRUE(report->Get(expected_pair.id())); in TEST_F()
2002 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); in TEST_F()
2003 EXPECT_TRUE(report->Get(*expected_pair.transport_id)); in TEST_F()
2011 report = stats_->GetFreshStatsReport(); in TEST_F()
2014 ASSERT_TRUE(report->Get(expected_pair.id())); in TEST_F()
2017 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); in TEST_F()
2018 EXPECT_TRUE(report->Get(*expected_pair.transport_id)); in TEST_F()
2024 report = stats_->GetFreshStatsReport(); in TEST_F()
2027 ASSERT_TRUE(report->Get(expected_pair.id())); in TEST_F()
2030 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); in TEST_F()
2031 EXPECT_TRUE(report->Get(*expected_pair.transport_id)); in TEST_F()
2040 report = stats_->GetFreshStatsReport(); in TEST_F()
2043 ASSERT_TRUE(report->Get(expected_pair.id())); in TEST_F()
2046 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); in TEST_F()
2047 EXPECT_TRUE(report->Get(*expected_pair.transport_id)); in TEST_F()
2050 *expected_pair.local_candidate_id, report->timestamp_us()); in TEST_F()
2063 ASSERT_TRUE(report->Get(expected_local_candidate.id())); in TEST_F()
2065 report->Get(expected_local_candidate.id()) in TEST_F()
2069 *expected_pair.remote_candidate_id, report->timestamp_us()); in TEST_F()
2081 ASSERT_TRUE(report->Get(expected_remote_candidate.id())); in TEST_F()
2083 report->Get(expected_remote_candidate.id()) in TEST_F()
2089 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2090 RTCPeerConnectionStats expected("P", report->timestamp_us()); in TEST_F()
2093 ASSERT_TRUE(report->Get("P")); in TEST_F()
2094 EXPECT_EQ(expected, report->Get("P")->cast_to<RTCPeerConnectionStats>()); in TEST_F()
2113 rtc::scoped_refptr<const RTCStatsReport> report = in TEST_F() local
2115 RTCPeerConnectionStats expected("P", report->timestamp_us()); in TEST_F()
2118 ASSERT_TRUE(report->Get("P")); in TEST_F()
2119 EXPECT_EQ(expected, report->Get("P")->cast_to<RTCPeerConnectionStats>()); in TEST_F()
2126 rtc::scoped_refptr<const RTCStatsReport> report = in TEST_F() local
2128 RTCPeerConnectionStats expected("P", report->timestamp_us()); in TEST_F()
2131 ASSERT_TRUE(report->Get("P")); in TEST_F()
2132 EXPECT_EQ(expected, report->Get("P")->cast_to<RTCPeerConnectionStats>()); in TEST_F()
2140 rtc::scoped_refptr<const RTCStatsReport> report = in TEST_F() local
2142 RTCPeerConnectionStats expected("P", report->timestamp_us()); in TEST_F()
2145 ASSERT_TRUE(report->Get("P")); in TEST_F()
2146 EXPECT_EQ(expected, report->Get("P")->cast_to<RTCPeerConnectionStats>()); in TEST_F()
2153 rtc::scoped_refptr<const RTCStatsReport> report = in TEST_F() local
2155 RTCPeerConnectionStats expected("P", report->timestamp_us()); in TEST_F()
2158 ASSERT_TRUE(report->Get("P")); in TEST_F()
2159 EXPECT_EQ(expected, report->Get("P")->cast_to<RTCPeerConnectionStats>()); in TEST_F()
2186 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2189 IdForType<DEPRECATED_RTCMediaStreamStats>(report.get()), in TEST_F()
2190 report->timestamp_us()); in TEST_F()
2193 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get())}; in TEST_F()
2194 ASSERT_TRUE(report->Get(expected_local_stream.id())) in TEST_F()
2196 << report->ToJson(); in TEST_F()
2198 report->Get(expected_local_stream.id()) in TEST_F()
2202 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()), in TEST_F()
2203 report->timestamp_us(), RTCMediaStreamTrackKind::kAudio); in TEST_F()
2212 ASSERT_TRUE(report->Get(expected_local_audio_track_ssrc1.id())) in TEST_F()
2214 << report->ToJson(); in TEST_F()
2216 report->Get(expected_local_audio_track_ssrc1.id()) in TEST_F()
2252 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2255 IdForType<DEPRECATED_RTCMediaStreamStats>(report.get()), in TEST_F()
2256 report->timestamp_us()); in TEST_F()
2259 {IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get())}); in TEST_F()
2260 ASSERT_TRUE(report->Get(expected_remote_stream.id())) in TEST_F()
2262 << report->ToJson(); in TEST_F()
2264 report->Get(expected_remote_stream.id()) in TEST_F()
2268 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()), in TEST_F()
2269 report->timestamp_us(), RTCMediaStreamTrackKind::kAudio); in TEST_F()
2287 ASSERT_TRUE(report->Get(expected_remote_audio_track.id())); in TEST_F()
2289 report->Get(expected_remote_audio_track.id()) in TEST_F()
2319 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2322 report->GetStatsOfType<DEPRECATED_RTCMediaStreamStats>(); in TEST_F()
2323 ASSERT_EQ(1U, stats_of_my_type.size()) << "No stream in " << report->ToJson(); in TEST_F()
2325 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
2327 << "Wrong number of tracks in " << report->ToJson(); in TEST_F()
2330 stats_of_my_type[0]->id(), report->timestamp_us()); in TEST_F()
2334 ASSERT_TRUE(report->Get(expected_local_stream.id())); in TEST_F()
2336 report->Get(expected_local_stream.id()) in TEST_F()
2340 stats_of_track_type[0]->id(), report->timestamp_us(), in TEST_F()
2352 ASSERT_TRUE(report->Get(expected_local_video_track_ssrc1.id())); in TEST_F()
2354 report->Get(expected_local_video_track_ssrc1.id()) in TEST_F()
2389 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2392 report->GetStatsOfType<DEPRECATED_RTCMediaStreamStats>(); in TEST_F()
2393 ASSERT_EQ(1U, stats_of_my_type.size()) << "No stream in " << report->ToJson(); in TEST_F()
2395 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
2397 << "Wrong number of tracks in " << report->ToJson(); in TEST_F()
2401 stats_of_my_type[0]->id(), report->timestamp_us()); in TEST_F()
2405 ASSERT_TRUE(report->Get(expected_remote_stream.id())); in TEST_F()
2407 report->Get(expected_remote_stream.id()) in TEST_F()
2411 stats_of_track_type[0]->id(), report->timestamp_us(), in TEST_F()
2428 ASSERT_TRUE(report->Get(expected_remote_video_track_ssrc3.id())); in TEST_F()
2430 report->Get(expected_remote_video_track_ssrc3.id()) in TEST_F()
2486 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2489 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
2493 report->timestamp_us()); in TEST_F()
2531 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
2533 report->Get(expected_audio.id())->cast_to<RTCInboundRTPStreamStats>(), in TEST_F()
2543 report = stats_->GetFreshStatsReport(); in TEST_F()
2545 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
2547 report->Get(expected_audio.id())->cast_to<RTCInboundRTPStreamStats>(), in TEST_F()
2549 EXPECT_TRUE(report->Get(*expected_audio.track_id)); in TEST_F()
2550 EXPECT_TRUE(report->Get(*expected_audio.transport_id)); in TEST_F()
2551 EXPECT_TRUE(report->Get(*expected_audio.codec_id)); in TEST_F()
2620 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2623 report->timestamp_us()); in TEST_F()
2630 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()); in TEST_F()
2667 ASSERT_TRUE(report->Get(expected_video.id())); in TEST_F()
2669 report->Get(expected_video.id())->cast_to<RTCInboundRTPStreamStats>(), in TEST_F()
2687 report = stats_->GetFreshStatsReport(); in TEST_F()
2689 ASSERT_TRUE(report->Get(expected_video.id())); in TEST_F()
2691 report->Get(expected_video.id())->cast_to<RTCInboundRTPStreamStats>(), in TEST_F()
2693 EXPECT_TRUE(report->Get(*expected_video.track_id)); in TEST_F()
2694 EXPECT_TRUE(report->Get(*expected_video.transport_id)); in TEST_F()
2695 EXPECT_TRUE(report->Get(*expected_video.codec_id)); in TEST_F()
2726 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2727 auto inbound_rtps = report->GetStatsOfType<RTCInboundRTPStreamStats>(); in TEST_F()
2764 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2767 report->timestamp_us()); in TEST_F()
2775 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()); in TEST_F()
2788 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
2790 report->Get(expected_audio.id())->cast_to<RTCOutboundRTPStreamStats>(), in TEST_F()
2793 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
2795 report->Get(expected_audio.id())->cast_to<RTCOutboundRTPStreamStats>(), in TEST_F()
2797 EXPECT_TRUE(report->Get(*expected_audio.track_id)); in TEST_F()
2798 EXPECT_TRUE(report->Get(*expected_audio.transport_id)); in TEST_F()
2799 EXPECT_TRUE(report->Get(*expected_audio.codec_id)); in TEST_F()
2853 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2855 auto stats_of_my_type = report->GetStatsOfType<RTCOutboundRTPStreamStats>(); in TEST_F()
2858 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
2862 report->timestamp_us()); in TEST_F()
2900 ASSERT_TRUE(report->Get(expected_video.id())); in TEST_F()
2903 report->Get(expected_video.id())->cast_to<RTCOutboundRTPStreamStats>(), in TEST_F()
2918 report = stats_->GetFreshStatsReport(); in TEST_F()
2920 ASSERT_TRUE(report->Get(expected_video.id())); in TEST_F()
2922 report->Get(expected_video.id())->cast_to<RTCOutboundRTPStreamStats>(), in TEST_F()
2924 EXPECT_TRUE(report->Get(*expected_video.track_id)); in TEST_F()
2925 EXPECT_TRUE(report->Get(*expected_video.transport_id)); in TEST_F()
2926 EXPECT_TRUE(report->Get(*expected_video.codec_id)); in TEST_F()
2974 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
2978 report->timestamp_us()); in TEST_F()
2990 ASSERT_TRUE(report->Get(expected_rtp_transport.id())); in TEST_F()
2993 report->Get(expected_rtp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3022 report = stats_->GetFreshStatsReport(); in TEST_F()
3026 report->timestamp_us()); in TEST_F()
3039 ASSERT_TRUE(report->Get(expected_rtp_transport.id())); in TEST_F()
3042 report->Get(expected_rtp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3043 ASSERT_TRUE(report->Get(expected_rtcp_transport.id())); in TEST_F()
3046 report->Get(expected_rtcp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3054 report = stats_->GetFreshStatsReport(); in TEST_F()
3059 ASSERT_TRUE(report->Get(expected_rtp_transport.id())); in TEST_F()
3062 report->Get(expected_rtp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3063 ASSERT_TRUE(report->Get(expected_rtcp_transport.id())); in TEST_F()
3066 report->Get(expected_rtcp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3079 report = stats_->GetFreshStatsReport(); in TEST_F()
3091 ASSERT_TRUE(report->Get(expected_rtp_transport.id())); in TEST_F()
3094 report->Get(expected_rtp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3095 ASSERT_TRUE(report->Get(expected_rtcp_transport.id())); in TEST_F()
3098 report->Get(expected_rtcp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3147 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3151 report->timestamp_us()); in TEST_F()
3168 ASSERT_TRUE(report->Get(expected_rtp_transport.id())); in TEST_F()
3171 report->Get(expected_rtp_transport.id())->cast_to<RTCTransportStats>()); in TEST_F()
3204 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3207 report->timestamp_us()); in TEST_F()
3214 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()); in TEST_F()
3226 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
3228 report->Get(expected_audio.id())->cast_to<RTCOutboundRTPStreamStats>(), in TEST_F()
3230 EXPECT_TRUE(report->Get(*expected_audio.track_id)); in TEST_F()
3231 EXPECT_TRUE(report->Get(*expected_audio.transport_id)); in TEST_F()
3232 EXPECT_TRUE(report->Get(*expected_audio.codec_id)); in TEST_F()
3254 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3256 RTCAudioSourceStats expected_audio("SA42", report->timestamp_us()); in TEST_F()
3265 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
3266 EXPECT_EQ(report->Get(expected_audio.id())->cast_to<RTCAudioSourceStats>(), in TEST_F()
3299 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3301 RTCVideoSourceStats expected_video("SV42", report->timestamp_us()); in TEST_F()
3309 ASSERT_TRUE(report->Get(expected_video.id())); in TEST_F()
3310 EXPECT_EQ(report->Get(expected_video.id())->cast_to<RTCVideoSourceStats>(), in TEST_F()
3343 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3344 ASSERT_TRUE(report->Get("SV42")); in TEST_F()
3345 auto video_stats = report->Get("SV42")->cast_to<RTCVideoSourceStats>(); in TEST_F()
3373 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3374 ASSERT_TRUE(report->Get("SV42")); in TEST_F()
3375 auto video_stats = report->Get("SV42")->cast_to<RTCVideoSourceStats>(); in TEST_F()
3396 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3397 EXPECT_FALSE(report->Get("SA42")); in TEST_F()
3524 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_P() local
3546 ASSERT_TRUE(report->Get(expected_remote_inbound_rtp.id())); in TEST_P()
3547 EXPECT_EQ(report->Get(expected_remote_inbound_rtp.id()) in TEST_P()
3550 EXPECT_TRUE(report->Get(*expected_remote_inbound_rtp.transport_id)); in TEST_P()
3551 ASSERT_TRUE(report->Get(*expected_remote_inbound_rtp.local_id)); in TEST_P()
3553 EXPECT_EQ(*report->Get(*expected_remote_inbound_rtp.local_id) in TEST_P()
3574 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_P() local
3577 ASSERT_TRUE(report->Get(remote_inbound_rtp_id)); in TEST_P()
3578 auto& remote_inbound_rtp = report->Get(remote_inbound_rtp_id) in TEST_P()
3604 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_P() local
3607 ASSERT_TRUE(report->Get(remote_inbound_rtp_id)); in TEST_P()
3608 auto& remote_inbound_rtp = report->Get(remote_inbound_rtp_id) in TEST_P()
3613 EXPECT_EQ(kReportBlockTimestampUtcUs + 1234, report->timestamp_us()); in TEST_P()
3637 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_P() local
3640 ASSERT_TRUE(report->Get(remote_inbound_rtp_id)); in TEST_P()
3641 auto& remote_inbound_rtp = report->Get(remote_inbound_rtp_id) in TEST_P()
3645 EXPECT_TRUE(report->Get(*remote_inbound_rtp.codec_id)); in TEST_P()
3677 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_P() local
3680 ASSERT_TRUE(report->Get(remote_inbound_rtp_id)); in TEST_P()
3681 auto& remote_inbound_rtp = report->Get(remote_inbound_rtp_id) in TEST_P()
3687 EXPECT_TRUE(report->Get(*remote_inbound_rtp.transport_id)); in TEST_P()
3704 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3705 ASSERT_NE(report->begin(), report->end()) in TEST_F()
3707 for (const auto& stats : *report) { in TEST_F()
3750 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3751 EXPECT_FALSE(report->Get("SV42")); in TEST_F()
3777 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3780 IdForType<DEPRECATED_RTCMediaStreamTrackStats>(report.get()), in TEST_F()
3781 report->timestamp_us(), RTCMediaStreamTrackKind::kAudio); in TEST_F()
3790 ASSERT_TRUE(report->Get(expected_local_audio_track_ssrc1.id())) in TEST_F()
3792 << report->ToJson(); in TEST_F()
3794 report->Get(expected_local_audio_track_ssrc1.id()) in TEST_F()
3797 RTCAudioSourceStats expected_audio("SA11", report->timestamp_us()); in TEST_F()
3806 ASSERT_TRUE(report->Get(expected_audio.id())); in TEST_F()
3807 EXPECT_EQ(report->Get(expected_audio.id())->cast_to<RTCAudioSourceStats>(), in TEST_F()
3899 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3902 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
3906 report->GetStatsOfType<RTCRTPStreamStats>(); in TEST_F()
3920 rtc::scoped_refptr<const RTCStatsReport> report = stats_->GetStatsReport(); in TEST_F() local
3923 report->GetStatsOfType<DEPRECATED_RTCMediaStreamTrackStats>(); in TEST_F()
3933 const rtc::scoped_refptr<const RTCStatsReport>& report) override { in OnStatsDelivered() argument
3993 const rtc::scoped_refptr<const RTCStatsReport>& report) override { in OnStatsDelivered() argument
3996 delivered_report_ = report; in OnStatsDelivered()