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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 verifier->TestMemberIsUndefined(stream.pli_count); | 518 verifier->TestMemberIsUndefined(stream.pli_count); |
519 verifier->TestMemberIsUndefined(stream.nack_count); | 519 verifier->TestMemberIsUndefined(stream.nack_count); |
520 } | 520 } |
521 verifier->TestMemberIsUndefined(stream.sli_count); | 521 verifier->TestMemberIsUndefined(stream.sli_count); |
522 } | 522 } |
523 | 523 |
524 bool VerifyRTCInboundRTPStreamStats( | 524 bool VerifyRTCInboundRTPStreamStats( |
525 const RTCInboundRTPStreamStats& inbound_stream) { | 525 const RTCInboundRTPStreamStats& inbound_stream) { |
526 RTCStatsVerifier verifier(report_, &inbound_stream); | 526 RTCStatsVerifier verifier(report_, &inbound_stream); |
527 VerifyRTCRTPStreamStats(inbound_stream, &verifier); | 527 VerifyRTCRTPStreamStats(inbound_stream, &verifier); |
528 verifier.TestMemberIsUndefined(inbound_stream.qp_sum); | 528 // TODO(hbos): As soon as the encoders provide |qp_sum| values, this |
| 529 // if-statement needs to be included. |
| 530 // https://bugs.chromium.org/p/webrtc/issues/detail?id=7065 |
| 531 // if (inbound_stream.media_type.is_defined() && |
| 532 // *inbound_stream.media_type == "video") { |
| 533 // verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.qp_sum); |
| 534 // } else { |
| 535 verifier.TestMemberIsUndefined(inbound_stream.qp_sum); |
| 536 // } |
529 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); | 537 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_received); |
530 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); | 538 verifier.TestMemberIsNonNegative<uint64_t>(inbound_stream.bytes_received); |
531 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); | 539 verifier.TestMemberIsNonNegative<uint32_t>(inbound_stream.packets_lost); |
532 if (inbound_stream.media_type.is_defined() && | 540 if (inbound_stream.media_type.is_defined() && |
533 *inbound_stream.media_type == "video") { | 541 *inbound_stream.media_type == "video") { |
534 verifier.TestMemberIsUndefined(inbound_stream.jitter); | 542 verifier.TestMemberIsUndefined(inbound_stream.jitter); |
535 } else { | 543 } else { |
536 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); | 544 verifier.TestMemberIsNonNegative<double>(inbound_stream.jitter); |
537 } | 545 } |
538 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); | 546 verifier.TestMemberIsNonNegative<double>(inbound_stream.fraction_lost); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
625 caller_ = nullptr; | 633 caller_ = nullptr; |
626 // Any pending stats requests should have completed in the act of destroying | 634 // Any pending stats requests should have completed in the act of destroying |
627 // the peer connection. | 635 // the peer connection. |
628 EXPECT_TRUE(stats_obtainer->report()); | 636 EXPECT_TRUE(stats_obtainer->report()); |
629 } | 637 } |
630 #endif // HAVE_SCTP | 638 #endif // HAVE_SCTP |
631 | 639 |
632 } // namespace | 640 } // namespace |
633 | 641 |
634 } // namespace webrtc | 642 } // namespace webrtc |
OLD | NEW |