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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 return verifier.ExpectAllMembersSuccessfullyTested(); | 564 return verifier.ExpectAllMembersSuccessfullyTested(); |
565 } | 565 } |
566 | 566 |
567 bool VerifyRTCTransportStats( | 567 bool VerifyRTCTransportStats( |
568 const RTCTransportStats& transport) { | 568 const RTCTransportStats& transport) { |
569 RTCStatsVerifier verifier(report_, &transport); | 569 RTCStatsVerifier verifier(report_, &transport); |
570 verifier.TestMemberIsNonNegative<uint64_t>(transport.bytes_sent); | 570 verifier.TestMemberIsNonNegative<uint64_t>(transport.bytes_sent); |
571 verifier.TestMemberIsNonNegative<uint64_t>(transport.bytes_received); | 571 verifier.TestMemberIsNonNegative<uint64_t>(transport.bytes_received); |
572 verifier.TestMemberIsOptionalIDReference( | 572 verifier.TestMemberIsOptionalIDReference( |
573 transport.rtcp_transport_stats_id, RTCTransportStats::kType); | 573 transport.rtcp_transport_stats_id, RTCTransportStats::kType); |
574 verifier.TestMemberIsDefined(transport.active_connection); | 574 verifier.TestMemberIsDefined(transport.dtls_state); |
575 verifier.TestMemberIsIDReference( | 575 verifier.TestMemberIsIDReference( |
576 transport.selected_candidate_pair_id, RTCIceCandidatePairStats::kType); | 576 transport.selected_candidate_pair_id, RTCIceCandidatePairStats::kType); |
577 verifier.TestMemberIsIDReference( | 577 verifier.TestMemberIsIDReference( |
578 transport.local_certificate_id, RTCCertificateStats::kType); | 578 transport.local_certificate_id, RTCCertificateStats::kType); |
579 verifier.TestMemberIsIDReference( | 579 verifier.TestMemberIsIDReference( |
580 transport.remote_certificate_id, RTCCertificateStats::kType); | 580 transport.remote_certificate_id, RTCCertificateStats::kType); |
581 return verifier.ExpectAllMembersSuccessfullyTested(); | 581 return verifier.ExpectAllMembersSuccessfullyTested(); |
582 } | 582 } |
583 | 583 |
584 private: | 584 private: |
(...skipping 25 matching lines...) Expand all Loading... |
610 caller_ = nullptr; | 610 caller_ = nullptr; |
611 // Any pending stats requests should have completed in the act of destroying | 611 // Any pending stats requests should have completed in the act of destroying |
612 // the peer connection. | 612 // the peer connection. |
613 EXPECT_TRUE(stats_obtainer->report()); | 613 EXPECT_TRUE(stats_obtainer->report()); |
614 } | 614 } |
615 #endif // HAVE_SCTP | 615 #endif // HAVE_SCTP |
616 | 616 |
617 } // namespace | 617 } // namespace |
618 | 618 |
619 } // namespace webrtc | 619 } // namespace webrtc |
OLD | NEW |