| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 bool VerifyRTCIceCandidateStats( | 390 bool VerifyRTCIceCandidateStats( |
| 391 const RTCIceCandidateStats& candidate) { | 391 const RTCIceCandidateStats& candidate) { |
| 392 RTCStatsVerifier verifier(report_, &candidate); | 392 RTCStatsVerifier verifier(report_, &candidate); |
| 393 verifier.TestMemberIsDefined(candidate.is_remote); | 393 verifier.TestMemberIsDefined(candidate.is_remote); |
| 394 verifier.TestMemberIsDefined(candidate.ip); | 394 verifier.TestMemberIsDefined(candidate.ip); |
| 395 verifier.TestMemberIsNonNegative<int32_t>(candidate.port); | 395 verifier.TestMemberIsNonNegative<int32_t>(candidate.port); |
| 396 verifier.TestMemberIsDefined(candidate.protocol); | 396 verifier.TestMemberIsDefined(candidate.protocol); |
| 397 verifier.TestMemberIsDefined(candidate.candidate_type); | 397 verifier.TestMemberIsDefined(candidate.candidate_type); |
| 398 verifier.TestMemberIsNonNegative<int32_t>(candidate.priority); | 398 verifier.TestMemberIsNonNegative<int32_t>(candidate.priority); |
| 399 verifier.TestMemberIsUndefined(candidate.url); | 399 verifier.TestMemberIsUndefined(candidate.url); |
| 400 verifier.TestMemberIsDefined(candidate.deleted); |
| 400 return verifier.ExpectAllMembersSuccessfullyTested(); | 401 return verifier.ExpectAllMembersSuccessfullyTested(); |
| 401 } | 402 } |
| 402 | 403 |
| 403 bool VerifyRTCLocalIceCandidateStats( | 404 bool VerifyRTCLocalIceCandidateStats( |
| 404 const RTCLocalIceCandidateStats& local_candidate) { | 405 const RTCLocalIceCandidateStats& local_candidate) { |
| 405 return VerifyRTCIceCandidateStats(local_candidate); | 406 return VerifyRTCIceCandidateStats(local_candidate); |
| 406 } | 407 } |
| 407 | 408 |
| 408 bool VerifyRTCRemoteIceCandidateStats( | 409 bool VerifyRTCRemoteIceCandidateStats( |
| 409 const RTCRemoteIceCandidateStats& remote_candidate) { | 410 const RTCRemoteIceCandidateStats& remote_candidate) { |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 caller_ = nullptr; | 590 caller_ = nullptr; |
| 590 // Any pending stats requests should have completed in the act of destroying | 591 // Any pending stats requests should have completed in the act of destroying |
| 591 // the peer connection. | 592 // the peer connection. |
| 592 EXPECT_TRUE(stats_obtainer->report()); | 593 EXPECT_TRUE(stats_obtainer->report()); |
| 593 } | 594 } |
| 594 #endif // HAVE_SCTP | 595 #endif // HAVE_SCTP |
| 595 | 596 |
| 596 } // namespace | 597 } // namespace |
| 597 | 598 |
| 598 } // namespace webrtc | 599 } // namespace webrtc |
| OLD | NEW |