| 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 320 | 320 |
| 321 bool VerifyRTCIceCandidatePairStats( | 321 bool VerifyRTCIceCandidatePairStats( |
| 322 const RTCIceCandidatePairStats& candidate_pair) { | 322 const RTCIceCandidatePairStats& candidate_pair) { |
| 323 RTCStatsVerifier verifier(report_, &candidate_pair); | 323 RTCStatsVerifier verifier(report_, &candidate_pair); |
| 324 verifier.TestMemberIsIDReference( | 324 verifier.TestMemberIsIDReference( |
| 325 candidate_pair.transport_id, RTCTransportStats::kType); | 325 candidate_pair.transport_id, RTCTransportStats::kType); |
| 326 verifier.TestMemberIsIDReference( | 326 verifier.TestMemberIsIDReference( |
| 327 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); | 327 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); |
| 328 verifier.TestMemberIsIDReference( | 328 verifier.TestMemberIsIDReference( |
| 329 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); | 329 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); |
| 330 verifier.TestMemberIsUndefined(candidate_pair.state); | 330 verifier.TestMemberIsDefined(candidate_pair.state); |
| 331 verifier.TestMemberIsUndefined(candidate_pair.priority); | 331 verifier.TestMemberIsDefined(candidate_pair.priority); |
| 332 verifier.TestMemberIsUndefined(candidate_pair.nominated); | 332 verifier.TestMemberIsUndefined(candidate_pair.nominated); |
| 333 verifier.TestMemberIsDefined(candidate_pair.writable); | 333 verifier.TestMemberIsDefined(candidate_pair.writable); |
| 334 verifier.TestMemberIsUndefined(candidate_pair.readable); | 334 verifier.TestMemberIsUndefined(candidate_pair.readable); |
| 335 verifier.TestMemberIsDefined(candidate_pair.bytes_sent); | 335 verifier.TestMemberIsDefined(candidate_pair.bytes_sent); |
| 336 verifier.TestMemberIsDefined(candidate_pair.bytes_received); | 336 verifier.TestMemberIsDefined(candidate_pair.bytes_received); |
| 337 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); | 337 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); |
| 338 verifier.TestMemberIsDefined(candidate_pair.current_round_trip_time); | 338 verifier.TestMemberIsDefined(candidate_pair.current_round_trip_time); |
| 339 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate); | 339 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate); |
| 340 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); | 340 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); |
| 341 verifier.TestMemberIsDefined(candidate_pair.requests_received); | 341 verifier.TestMemberIsDefined(candidate_pair.requests_received); |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 // This will destroy the peer connection. | 546 // This will destroy the peer connection. |
| 547 caller_ = nullptr; | 547 caller_ = nullptr; |
| 548 // Any pending stats requests should have completed in the act of destroying | 548 // Any pending stats requests should have completed in the act of destroying |
| 549 // the peer connection. | 549 // the peer connection. |
| 550 EXPECT_TRUE(stats_obtainer->report()); | 550 EXPECT_TRUE(stats_obtainer->report()); |
| 551 } | 551 } |
| 552 | 552 |
| 553 } // namespace | 553 } // namespace |
| 554 | 554 |
| 555 } // namespace webrtc | 555 } // namespace webrtc |
| OLD | NEW |