Chromium Code Reviews| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 362 verifier.TestMemberIsDefined(candidate_pair.state); | 362 verifier.TestMemberIsDefined(candidate_pair.state); |
| 363 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority); | 363 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority); |
| 364 verifier.TestMemberIsUndefined(candidate_pair.nominated); | 364 verifier.TestMemberIsUndefined(candidate_pair.nominated); |
| 365 verifier.TestMemberIsDefined(candidate_pair.writable); | 365 verifier.TestMemberIsDefined(candidate_pair.writable); |
| 366 verifier.TestMemberIsUndefined(candidate_pair.readable); | 366 verifier.TestMemberIsUndefined(candidate_pair.readable); |
| 367 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent); | 367 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent); |
| 368 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received); | 368 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received); |
| 369 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); | 369 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); |
| 370 verifier.TestMemberIsNonNegative<double>( | 370 verifier.TestMemberIsNonNegative<double>( |
| 371 candidate_pair.current_round_trip_time); | 371 candidate_pair.current_round_trip_time); |
| 372 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate); | 372 if (candidate_pair.available_outgoing_bitrate.is_defined()) { |
|
hta-webrtc
2017/02/07 11:34:37
This isn't quite nice, because any implementation
hbos
2017/02/07 13:22:11
Yes! Updated the code to check if (selected pair)
| |
| 373 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); | 373 verifier.TestMemberIsNonNegative<double>( |
| 374 candidate_pair.available_outgoing_bitrate); | |
| 375 } else { | |
| 376 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate); | |
| 377 } | |
| 378 if (candidate_pair.available_incoming_bitrate.is_defined()) { | |
| 379 verifier.TestMemberIsNonNegative<double>( | |
| 380 candidate_pair.available_incoming_bitrate); | |
| 381 } else { | |
| 382 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); | |
| 383 } | |
| 374 verifier.TestMemberIsNonNegative<uint64_t>( | 384 verifier.TestMemberIsNonNegative<uint64_t>( |
| 375 candidate_pair.requests_received); | 385 candidate_pair.requests_received); |
| 376 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.requests_sent); | 386 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.requests_sent); |
| 377 verifier.TestMemberIsNonNegative<uint64_t>( | 387 verifier.TestMemberIsNonNegative<uint64_t>( |
| 378 candidate_pair.responses_received); | 388 candidate_pair.responses_received); |
| 379 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.responses_sent); | 389 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.responses_sent); |
| 380 verifier.TestMemberIsUndefined(candidate_pair.retransmissions_received); | 390 verifier.TestMemberIsUndefined(candidate_pair.retransmissions_received); |
| 381 verifier.TestMemberIsUndefined(candidate_pair.retransmissions_sent); | 391 verifier.TestMemberIsUndefined(candidate_pair.retransmissions_sent); |
| 382 verifier.TestMemberIsUndefined(candidate_pair.consent_requests_received); | 392 verifier.TestMemberIsUndefined(candidate_pair.consent_requests_received); |
| 383 verifier.TestMemberIsNonNegative<uint64_t>( | 393 verifier.TestMemberIsNonNegative<uint64_t>( |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 625 caller_ = nullptr; | 635 caller_ = nullptr; |
| 626 // Any pending stats requests should have completed in the act of destroying | 636 // Any pending stats requests should have completed in the act of destroying |
| 627 // the peer connection. | 637 // the peer connection. |
| 628 EXPECT_TRUE(stats_obtainer->report()); | 638 EXPECT_TRUE(stats_obtainer->report()); |
| 629 } | 639 } |
| 630 #endif // HAVE_SCTP | 640 #endif // HAVE_SCTP |
| 631 | 641 |
| 632 } // namespace | 642 } // namespace |
| 633 | 643 |
| 634 } // namespace webrtc | 644 } // namespace webrtc |
| OLD | NEW |