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 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 const RTCIceCandidatePairStats& candidate_pair, bool is_selected_pair) { | 360 const RTCIceCandidatePairStats& candidate_pair, bool is_selected_pair) { |
361 RTCStatsVerifier verifier(report_, &candidate_pair); | 361 RTCStatsVerifier verifier(report_, &candidate_pair); |
362 verifier.TestMemberIsIDReference( | 362 verifier.TestMemberIsIDReference( |
363 candidate_pair.transport_id, RTCTransportStats::kType); | 363 candidate_pair.transport_id, RTCTransportStats::kType); |
364 verifier.TestMemberIsIDReference( | 364 verifier.TestMemberIsIDReference( |
365 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); | 365 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); |
366 verifier.TestMemberIsIDReference( | 366 verifier.TestMemberIsIDReference( |
367 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); | 367 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); |
368 verifier.TestMemberIsDefined(candidate_pair.state); | 368 verifier.TestMemberIsDefined(candidate_pair.state); |
369 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority); | 369 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority); |
370 verifier.TestMemberIsUndefined(candidate_pair.nominated); | 370 verifier.TestMemberIsDefined(candidate_pair.nominated); |
371 verifier.TestMemberIsDefined(candidate_pair.writable); | 371 verifier.TestMemberIsDefined(candidate_pair.writable); |
372 verifier.TestMemberIsUndefined(candidate_pair.readable); | 372 verifier.TestMemberIsUndefined(candidate_pair.readable); |
373 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent); | 373 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent); |
374 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received); | 374 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received); |
375 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); | 375 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); |
376 verifier.TestMemberIsNonNegative<double>( | 376 verifier.TestMemberIsNonNegative<double>( |
377 candidate_pair.current_round_trip_time); | 377 candidate_pair.current_round_trip_time); |
378 if (is_selected_pair) { | 378 if (is_selected_pair) { |
379 verifier.TestMemberIsNonNegative<double>( | 379 verifier.TestMemberIsNonNegative<double>( |
380 candidate_pair.available_outgoing_bitrate); | 380 candidate_pair.available_outgoing_bitrate); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 caller_ = nullptr; | 641 caller_ = nullptr; |
642 // Any pending stats requests should have completed in the act of destroying | 642 // Any pending stats requests should have completed in the act of destroying |
643 // the peer connection. | 643 // the peer connection. |
644 EXPECT_TRUE(stats_obtainer->report()); | 644 EXPECT_TRUE(stats_obtainer->report()); |
645 } | 645 } |
646 #endif // HAVE_SCTP | 646 #endif // HAVE_SCTP |
647 | 647 |
648 } // namespace | 648 } // namespace |
649 | 649 |
650 } // namespace webrtc | 650 } // namespace webrtc |
OLD | NEW |