Add field to counters for when first rtp/rtcp packet is sent/received.
Use this time for histogram statistics (send/receive bitrates, sent/received rtcp fir/nack packets/min). BUG=crbug/419657 R=mflodman@webrtc.org, stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/32219004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@7910 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
@ -1162,6 +1162,7 @@ TEST_F(RtpSenderTest, BytesReportedCorrectly) {
|
||||
rtp_sender_->GetDataCounters(&rtp_stats, &rtx_stats);
|
||||
|
||||
// Payload + 1-byte generic header.
|
||||
EXPECT_GT(rtp_stats.first_packet_time_ms, -1);
|
||||
EXPECT_EQ(rtp_stats.bytes, sizeof(payload) + 1);
|
||||
EXPECT_EQ(rtp_stats.header_bytes, 12u);
|
||||
EXPECT_EQ(rtp_stats.padding_bytes, 0u);
|
||||
|
||||
Reference in New Issue
Block a user