modules/rtp_rtcp/source/rtp_rtcp_impl2_unittest.cc
// Checks that the sender report stats include a valid arrival time if an RTCP
// SR was sent.
Checks that the sender report stats include a valid arrival time if an RTCP
SR was sent.
Checks that the sender report stats include a valid arrival time if an RTCP SR was sent .
TEST_P(RtpRtcpImpl2Test, SenderReportStatsArrivalTimestampSet) {
  EXPECT_TRUE(
      SendFrame(&sender_, sender_video_.get(), kBaseLayerTid, 0));
  ASSERT_THAT(sender_.impl_->SendRTCP(kRtcpReport), Eq(0));
  auto stats = receiver_.impl_->GetSenderReportStats();
  ASSERT_THAT(stats, Not(Eq(absl::nullopt)));
  EXPECT_TRUE(stats->last_arrival_timestamp.Valid());
}
TEST_P ( RtpRtcpImpl2Test , SenderReportStatsArrivalTimestampSet ) { EXPECT_TRUE ( SendFrame ( & sender_ , sender_video_ . get ( ) , kBaseLayerTid , 0 ) ) ; ASSERT_THAT ( sender_ . impl_ -> SendRTCP ( kRtcpReport ) , Eq ( 0 ) ) ; auto stats = receiver_ . impl_ -> GetSenderReportStats ( ) ; ASSERT_THAT ( stats , Not ( Eq ( absl :: nullopt ) ) ) ; EXPECT_TRUE ( stats -> last_arrival_timestamp . Valid ( ) ) ; }
Checks that the sender report stats include a valid arrival time if an RTCP
SR was sent.
Checks that the sender report stats include a valid arrival time if an RTCP SR was sent .
// Send a frame in order to send an SR. /*timestamp=*/ // Send an SR.