OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2016 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 verifier->TestMemberIsUndefined(stream.pli_count); | 529 verifier->TestMemberIsUndefined(stream.pli_count); |
530 verifier->TestMemberIsUndefined(stream.nack_count); | 530 verifier->TestMemberIsUndefined(stream.nack_count); |
531 } | 531 } |
532 verifier->TestMemberIsUndefined(stream.sli_count); | 532 verifier->TestMemberIsUndefined(stream.sli_count); |
533 } | 533 } |
534 | 534 |
535 bool VerifyRTCInboundRTPStreamStats( | 535 bool VerifyRTCInboundRTPStreamStats( |
536 const RTCInboundRTPStreamStats& inbound_stream) { | 536 const RTCInboundRTPStreamStats& inbound_stream) { |
537 RTCStatsVerifier verifier(report_, &inbound_stream); | 537 RTCStatsVerifier verifier(report_, &inbound_stream); |
538 VerifyRTCRTPStreamStats(inbound_stream, &verifier); | 538 VerifyRTCRTPStreamStats(inbound_stream, &verifier); |
539 // TODO(hbos): As soon as the decoders provide |qp_sum| values, this | 539 verifier.TestMemberIsUndefined(inbound_stream.qp_sum); |
540 // if-statement needs to be included. https://bugs.webrtc.org/7065 | |
541 // if (inbound_stream.media_type.is_defined() && | |
542 // *inbound_stream.media_type == "video") { | |
543 // verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.qp_sum); | |
544 // } else { | |
545 verifier.TestMemberIsUndefined(inbound_stream.qp_sum); | |
546 // } | |
547 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); | 540 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); |
548 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); | 541 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); |
549 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); | 542 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); |
550 if (inbound_stream.media_type.is_defined() && | 543 if (inbound_stream.media_type.is_defined() && |
551 *inbound_stream.media_type == "video") { | 544 *inbound_stream.media_type == "video") { |
552 verifier.TestMemberIsUndefined(inbound_stream.jitter); | 545 verifier.TestMemberIsUndefined(inbound_stream.jitter); |
553 } else { | 546 } else { |
554 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); | 547 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); |
555 } | 548 } |
556 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); | 549 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
643 caller_ = nullptr; | 636 caller_ = nullptr; |
644 // Any pending stats requests should have completed in the act of destroying | 637 // Any pending stats requests should have completed in the act of destroying |
645 // the peer connection. | 638 // the peer connection. |
646 EXPECT_TRUE(stats_obtainer->report()); | 639 EXPECT_TRUE(stats_obtainer->report()); |
647 } | 640 } |
648 #endif // HAVE_SCTP | 641 #endif // HAVE_SCTP |
649 | 642 |
650 } // namespace | 643 } // namespace |
651 | 644 |
652 } // namespace webrtc | 645 } // namespace webrtc |
OLD | NEW |