| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 peer_connection.data_channels_closed); | 484 peer_connection.data_channels_closed); |
| 485 return verifier.ExpectAllMembersSuccessfullyTested(); | 485 return verifier.ExpectAllMembersSuccessfullyTested(); |
| 486 } | 486 } |
| 487 | 487 |
| 488 void VerifyRTCRTPStreamStats( | 488 void VerifyRTCRTPStreamStats( |
| 489 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { | 489 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { |
| 490 verifier->TestMemberIsDefined(stream.ssrc); | 490 verifier->TestMemberIsDefined(stream.ssrc); |
| 491 verifier->TestMemberIsUndefined(stream.associate_stats_id); | 491 verifier->TestMemberIsUndefined(stream.associate_stats_id); |
| 492 verifier->TestMemberIsDefined(stream.is_remote); | 492 verifier->TestMemberIsDefined(stream.is_remote); |
| 493 verifier->TestMemberIsDefined(stream.media_type); | 493 verifier->TestMemberIsDefined(stream.media_type); |
| 494 verifier->TestMemberIsUndefined(stream.media_track_id); | 494 verifier->TestMemberIsIDReference( |
| 495 stream.media_track_id, RTCMediaStreamTrackStats::kType); |
| 495 verifier->TestMemberIsIDReference( | 496 verifier->TestMemberIsIDReference( |
| 496 stream.transport_id, RTCTransportStats::kType); | 497 stream.transport_id, RTCTransportStats::kType); |
| 497 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); | 498 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); |
| 498 if (stream.media_type.is_defined() && *stream.media_type == "video") { | 499 if (stream.media_type.is_defined() && *stream.media_type == "video") { |
| 499 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); | 500 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); |
| 500 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); | 501 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); |
| 501 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); | 502 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); |
| 502 } else { | 503 } else { |
| 503 verifier->TestMemberIsUndefined(stream.fir_count); | 504 verifier->TestMemberIsUndefined(stream.fir_count); |
| 504 verifier->TestMemberIsUndefined(stream.pli_count); | 505 verifier->TestMemberIsUndefined(stream.pli_count); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 caller_ = nullptr; | 612 caller_ = nullptr; |
| 612 // Any pending stats requests should have completed in the act of destroying | 613 // Any pending stats requests should have completed in the act of destroying |
| 613 // the peer connection. | 614 // the peer connection. |
| 614 EXPECT_TRUE(stats_obtainer->report()); | 615 EXPECT_TRUE(stats_obtainer->report()); |
| 615 } | 616 } |
| 616 #endif // HAVE_SCTP | 617 #endif // HAVE_SCTP |
| 617 | 618 |
| 618 } // namespace | 619 } // namespace |
| 619 | 620 |
| 620 } // namespace webrtc | 621 } // namespace webrtc |
| OLD | NEW |