modules/rtp_rtcp/source/rtp_rtcp_impl2_unittest.cc
// Checks that the sender report stats count equals the number of sent RTCP SRs.
Checks that the sender report stats count equals the number of sent RTCP SRs.
Checks that the sender report stats count equals the number of sent RTCP SRs .
TEST_P(RtpRtcpImpl2Test, SenderReportStatsCount) {
  using SenderReportStats = RtpRtcpInterface::SenderReportStats;
  EXPECT_TRUE(
      SendFrame(&sender_, sender_video_.get(), kBaseLayerTid, 0));
  ASSERT_THAT(sender_.impl_->SendRTCP(kRtcpReport), Eq(0));
  EXPECT_THAT(receiver_.impl_->GetSenderReportStats(),
              Optional(Field(&SenderReportStats::reports_count, Eq(1u))));
  ASSERT_THAT(sender_.impl_->SendRTCP(kRtcpReport), Eq(0));
  EXPECT_THAT(receiver_.impl_->GetSenderReportStats(),
              Optional(Field(&SenderReportStats::reports_count, Eq(2u))));
}
TEST_P ( RtpRtcpImpl2Test , SenderReportStatsCount ) { using SenderReportStats = RtpRtcpInterface :: SenderReportStats ; EXPECT_TRUE ( SendFrame ( & sender_ , sender_video_ . get ( ) , kBaseLayerTid , 0 ) ) ; ASSERT_THAT ( sender_ . impl_ -> SendRTCP ( kRtcpReport ) , Eq ( 0 ) ) ; EXPECT_THAT ( receiver_ . impl_ -> GetSenderReportStats ( ) , Optional ( Field ( & SenderReportStats :: reports_count , Eq ( 1u ) ) ) ) ; ASSERT_THAT ( sender_ . impl_ -> SendRTCP ( kRtcpReport ) , Eq ( 0 ) ) ; EXPECT_THAT ( receiver_ . impl_ -> GetSenderReportStats ( ) , Optional ( Field ( & SenderReportStats :: reports_count , Eq ( 2u ) ) ) ) ; }
Checks that the sender report stats count equals the number of sent RTCP SRs.
Checks that the sender report stats count equals the number of sent RTCP SRs .
// Send a frame in order to send an SR. /*timestamp=*/ // Send the first SR. // Send the second SR.