Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Side by Side Diff: webrtc/api/rtcstats_integrationtest.cc

Issue 2597423003: RTCIceCandidatePairStats.[state/priority] added, ConnectionInfo updated. (Closed)
Patch Set: Rebase with master Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 bool VerifyRTCIceCandidatePairStats( 353 bool VerifyRTCIceCandidatePairStats(
354 const RTCIceCandidatePairStats& candidate_pair) { 354 const RTCIceCandidatePairStats& candidate_pair) {
355 RTCStatsVerifier verifier(report_, &candidate_pair); 355 RTCStatsVerifier verifier(report_, &candidate_pair);
356 verifier.TestMemberIsIDReference( 356 verifier.TestMemberIsIDReference(
357 candidate_pair.transport_id, RTCTransportStats::kType); 357 candidate_pair.transport_id, RTCTransportStats::kType);
358 verifier.TestMemberIsIDReference( 358 verifier.TestMemberIsIDReference(
359 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); 359 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType);
360 verifier.TestMemberIsIDReference( 360 verifier.TestMemberIsIDReference(
361 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); 361 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType);
362 verifier.TestMemberIsUndefined(candidate_pair.state); 362 verifier.TestMemberIsDefined(candidate_pair.state);
363 verifier.TestMemberIsUndefined(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 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate);
373 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); 373 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate);
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
589 caller_ = nullptr; 589 caller_ = nullptr;
590 // Any pending stats requests should have completed in the act of destroying 590 // Any pending stats requests should have completed in the act of destroying
591 // the peer connection. 591 // the peer connection.
592 EXPECT_TRUE(stats_obtainer->report()); 592 EXPECT_TRUE(stats_obtainer->report());
593 } 593 }
594 #endif // HAVE_SCTP 594 #endif // HAVE_SCTP
595 595
596 } // namespace 596 } // namespace
597 597
598 } // namespace webrtc 598 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698