Add missing remote-outbound stats to RTCPReceiver::NTP
In order to add `RTCRemoteOutboundRtpStreamStats` (see [1]), the following stats must be added: - sender's packet count (see [2]) - sender's octet count (see [2]) - total number of RTCP SR blocks sent (see [3]) [1] https://www.w3.org/TR/webrtc-stats/#dom-rtcremoteoutboundrtpstreamstats [2] https://tools.ietf.org/html/rfc3550#section-6.4.1 [3] https://www.w3.org/TR/webrtc-stats/#dom-rtcremoteoutboundrtpstreamstats-reportssent Bug: webrtc:12529 Change-Id: I47ac2f79ba53631965d1cd7c1062f3d0f158d66e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/210963 Commit-Queue: Alessio Bazzica <alessiob@webrtc.org> Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33423}
This commit is contained in:

committed by
Commit Bot

parent
da2fd2a2b2
commit
048adc7136
@ -208,7 +208,8 @@ TEST(RtcpReceiverTest, InjectSrPacket) {
|
||||
RTCPReceiver receiver(DefaultConfiguration(&mocks), &mocks.rtp_rtcp_impl);
|
||||
receiver.SetRemoteSSRC(kSenderSsrc);
|
||||
|
||||
EXPECT_FALSE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr));
|
||||
EXPECT_FALSE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr, nullptr, nullptr));
|
||||
|
||||
int64_t now = mocks.clock.TimeInMilliseconds();
|
||||
rtcp::SenderReport sr;
|
||||
@ -219,7 +220,8 @@ TEST(RtcpReceiverTest, InjectSrPacket) {
|
||||
OnReceivedRtcpReceiverReport(IsEmpty(), _, now));
|
||||
receiver.IncomingPacket(sr.Build());
|
||||
|
||||
EXPECT_TRUE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr));
|
||||
EXPECT_TRUE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr, nullptr));
|
||||
}
|
||||
|
||||
TEST(RtcpReceiverTest, InjectSrPacketFromUnknownSender) {
|
||||
@ -239,7 +241,8 @@ TEST(RtcpReceiverTest, InjectSrPacketFromUnknownSender) {
|
||||
receiver.IncomingPacket(sr.Build());
|
||||
|
||||
// But will not flag that he's gotten sender information.
|
||||
EXPECT_FALSE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr));
|
||||
EXPECT_FALSE(receiver.NTP(nullptr, nullptr, nullptr, nullptr, nullptr,
|
||||
nullptr, nullptr, nullptr));
|
||||
}
|
||||
|
||||
TEST(RtcpReceiverTest, InjectSrPacketCalculatesRTT) {
|
||||
|
Reference in New Issue
Block a user