| 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 verifier.TestMemberIsUndefined(candidate_pair.consent_requests_received); | 347 verifier.TestMemberIsUndefined(candidate_pair.consent_requests_received); |
| 348 verifier.TestMemberIsDefined(candidate_pair.consent_requests_sent); | 348 verifier.TestMemberIsDefined(candidate_pair.consent_requests_sent); |
| 349 verifier.TestMemberIsUndefined(candidate_pair.consent_responses_received); | 349 verifier.TestMemberIsUndefined(candidate_pair.consent_responses_received); |
| 350 verifier.TestMemberIsUndefined(candidate_pair.consent_responses_sent); | 350 verifier.TestMemberIsUndefined(candidate_pair.consent_responses_sent); |
| 351 return verifier.ExpectAllMembersSuccessfullyTested(); | 351 return verifier.ExpectAllMembersSuccessfullyTested(); |
| 352 } | 352 } |
| 353 | 353 |
| 354 bool VerifyRTCIceCandidateStats( | 354 bool VerifyRTCIceCandidateStats( |
| 355 const RTCIceCandidateStats& candidate) { | 355 const RTCIceCandidateStats& candidate) { |
| 356 RTCStatsVerifier verifier(report_, &candidate); | 356 RTCStatsVerifier verifier(report_, &candidate); |
| 357 verifier.TestMemberIsDefined(candidate.is_remote); |
| 357 verifier.TestMemberIsDefined(candidate.ip); | 358 verifier.TestMemberIsDefined(candidate.ip); |
| 358 verifier.TestMemberIsDefined(candidate.port); | 359 verifier.TestMemberIsDefined(candidate.port); |
| 359 verifier.TestMemberIsDefined(candidate.protocol); | 360 verifier.TestMemberIsDefined(candidate.protocol); |
| 360 verifier.TestMemberIsDefined(candidate.candidate_type); | 361 verifier.TestMemberIsDefined(candidate.candidate_type); |
| 361 verifier.TestMemberIsDefined(candidate.priority); | 362 verifier.TestMemberIsDefined(candidate.priority); |
| 362 verifier.TestMemberIsUndefined(candidate.url); | 363 verifier.TestMemberIsUndefined(candidate.url); |
| 363 return verifier.ExpectAllMembersSuccessfullyTested(); | 364 return verifier.ExpectAllMembersSuccessfullyTested(); |
| 364 } | 365 } |
| 365 | 366 |
| 366 bool VerifyRTCLocalIceCandidateStats( | 367 bool VerifyRTCLocalIceCandidateStats( |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 // This will destroy the peer connection. | 547 // This will destroy the peer connection. |
| 547 caller_ = nullptr; | 548 caller_ = nullptr; |
| 548 // Any pending stats requests should have completed in the act of destroying | 549 // Any pending stats requests should have completed in the act of destroying |
| 549 // the peer connection. | 550 // the peer connection. |
| 550 EXPECT_TRUE(stats_obtainer->report()); | 551 EXPECT_TRUE(stats_obtainer->report()); |
| 551 } | 552 } |
| 552 | 553 |
| 553 } // namespace | 554 } // namespace |
| 554 | 555 |
| 555 } // namespace webrtc | 556 } // namespace webrtc |
| OLD | NEW |