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

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

Issue 2719523002: RTCIceCandidatePairStats.[total/current]RoundTripTime collected. (Closed)
Patch Set: EXPECT_EQ(expected, actual) Created 3 years, 9 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 | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/pc/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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType); 365 candidate_pair.local_candidate_id, RTCLocalIceCandidateStats::kType);
366 verifier.TestMemberIsIDReference( 366 verifier.TestMemberIsIDReference(
367 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType); 367 candidate_pair.remote_candidate_id, RTCRemoteIceCandidateStats::kType);
368 verifier.TestMemberIsDefined(candidate_pair.state); 368 verifier.TestMemberIsDefined(candidate_pair.state);
369 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority); 369 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.priority);
370 verifier.TestMemberIsDefined(candidate_pair.nominated); 370 verifier.TestMemberIsDefined(candidate_pair.nominated);
371 verifier.TestMemberIsDefined(candidate_pair.writable); 371 verifier.TestMemberIsDefined(candidate_pair.writable);
372 verifier.TestMemberIsUndefined(candidate_pair.readable); 372 verifier.TestMemberIsUndefined(candidate_pair.readable);
373 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent); 373 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_sent);
374 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received); 374 verifier.TestMemberIsNonNegative<uint64_t>(candidate_pair.bytes_received);
375 verifier.TestMemberIsUndefined(candidate_pair.total_round_trip_time); 375 verifier.TestMemberIsNonNegative<double>(
376 candidate_pair.total_round_trip_time);
376 verifier.TestMemberIsNonNegative<double>( 377 verifier.TestMemberIsNonNegative<double>(
377 candidate_pair.current_round_trip_time); 378 candidate_pair.current_round_trip_time);
378 if (is_selected_pair) { 379 if (is_selected_pair) {
379 verifier.TestMemberIsNonNegative<double>( 380 verifier.TestMemberIsNonNegative<double>(
380 candidate_pair.available_outgoing_bitrate); 381 candidate_pair.available_outgoing_bitrate);
381 } else { 382 } else {
382 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate); 383 verifier.TestMemberIsUndefined(candidate_pair.available_outgoing_bitrate);
383 } 384 }
384 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate); 385 verifier.TestMemberIsUndefined(candidate_pair.available_incoming_bitrate);
385 verifier.TestMemberIsNonNegative<uint64_t>( 386 verifier.TestMemberIsNonNegative<uint64_t>(
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
645 // Any pending stats requests should have completed in the act of destroying 646 // Any pending stats requests should have completed in the act of destroying
646 // the peer connection. 647 // the peer connection.
647 EXPECT_TRUE(stats_obtainer->report()); 648 EXPECT_TRUE(stats_obtainer->report());
648 } 649 }
649 #endif // HAVE_SCTP 650 #endif // HAVE_SCTP
650 #endif // !defined(THREAD_SANITIZER) 651 #endif // !defined(THREAD_SANITIZER)
651 652
652 } // namespace 653 } // namespace
653 654
654 } // namespace webrtc 655 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/p2p/base/port_unittest.cc ('k') | webrtc/pc/rtcstatscollector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698