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 verifier.TestMemberIsUndefined(inbound_stream.qp_sum); | 539 // TODO(hbos): As soon as the decoders provide |qp_sum| values, this |
| 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 // } |
540 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); | 547 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); |
541 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); | 548 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); |
542 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); | 549 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); |
543 if (inbound_stream.media_type.is_defined() && | 550 if (inbound_stream.media_type.is_defined() && |
544 *inbound_stream.media_type == "video") { | 551 *inbound_stream.media_type == "video") { |
545 verifier.TestMemberIsUndefined(inbound_stream.jitter); | 552 verifier.TestMemberIsUndefined(inbound_stream.jitter); |
546 } else { | 553 } else { |
547 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); | 554 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); |
548 } | 555 } |
549 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); | 556 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 caller_ = nullptr; | 643 caller_ = nullptr; |
637 // Any pending stats requests should have completed in the act of destroying | 644 // Any pending stats requests should have completed in the act of destroying |
638 // the peer connection. | 645 // the peer connection. |
639 EXPECT_TRUE(stats_obtainer->report()); | 646 EXPECT_TRUE(stats_obtainer->report()); |
640 } | 647 } |
641 #endif // HAVE_SCTP | 648 #endif // HAVE_SCTP |
642 | 649 |
643 } // namespace | 650 } // namespace |
644 | 651 |
645 } // namespace webrtc | 652 } // namespace webrtc |
OLD | NEW |