| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 return verifier.ExpectAllMembersSuccessfullyTested(); | 498 return verifier.ExpectAllMembersSuccessfullyTested(); |
| 499 } | 499 } |
| 500 | 500 |
| 501 void VerifyRTCRTPStreamStats( | 501 void VerifyRTCRTPStreamStats( |
| 502 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { | 502 const RTCRTPStreamStats& stream, RTCStatsVerifier* verifier) { |
| 503 verifier->TestMemberIsDefined(stream.ssrc); | 503 verifier->TestMemberIsDefined(stream.ssrc); |
| 504 verifier->TestMemberIsUndefined(stream.associate_stats_id); | 504 verifier->TestMemberIsUndefined(stream.associate_stats_id); |
| 505 verifier->TestMemberIsDefined(stream.is_remote); | 505 verifier->TestMemberIsDefined(stream.is_remote); |
| 506 verifier->TestMemberIsDefined(stream.media_type); | 506 verifier->TestMemberIsDefined(stream.media_type); |
| 507 verifier->TestMemberIsIDReference( | 507 verifier->TestMemberIsIDReference( |
| 508 stream.media_track_id, RTCMediaStreamTrackStats::kType); | 508 stream.track_id, RTCMediaStreamTrackStats::kType); |
| 509 verifier->TestMemberIsIDReference( | 509 verifier->TestMemberIsIDReference( |
| 510 stream.transport_id, RTCTransportStats::kType); | 510 stream.transport_id, RTCTransportStats::kType); |
| 511 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); | 511 verifier->TestMemberIsIDReference(stream.codec_id, RTCCodecStats::kType); |
| 512 if (stream.media_type.is_defined() && *stream.media_type == "video") { | 512 if (stream.media_type.is_defined() && *stream.media_type == "video") { |
| 513 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); | 513 verifier->TestMemberIsNonNegative<uint32_t>(stream.fir_count); |
| 514 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); | 514 verifier->TestMemberIsNonNegative<uint32_t>(stream.pli_count); |
| 515 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); | 515 verifier->TestMemberIsNonNegative<uint32_t>(stream.nack_count); |
| 516 } else { | 516 } else { |
| 517 verifier->TestMemberIsUndefined(stream.fir_count); | 517 verifier->TestMemberIsUndefined(stream.fir_count); |
| 518 verifier->TestMemberIsUndefined(stream.pli_count); | 518 verifier->TestMemberIsUndefined(stream.pli_count); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 caller_ = nullptr; | 625 caller_ = nullptr; |
| 626 // Any pending stats requests should have completed in the act of destroying | 626 // Any pending stats requests should have completed in the act of destroying |
| 627 // the peer connection. | 627 // the peer connection. |
| 628 EXPECT_TRUE(stats_obtainer->report()); | 628 EXPECT_TRUE(stats_obtainer->report()); |
| 629 } | 629 } |
| 630 #endif // HAVE_SCTP | 630 #endif // HAVE_SCTP |
| 631 | 631 |
| 632 } // namespace | 632 } // namespace |
| 633 | 633 |
| 634 } // namespace webrtc | 634 } // namespace webrtc |
| OLD | NEW |