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

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

Issue 2576383002: Rename RTCOutboundRTPStreamStats *_rtt members to *_round_trip_time. (Closed)
Patch Set: Created 4 years 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/api/rtcstatscollector.cc ('k') | webrtc/api/stats/rtcstats_objects.h » ('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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after
1036 report->timestamp_us()); 1036 report->timestamp_us());
1037 expected_pair.transport_id = 1037 expected_pair.transport_id =
1038 "RTCTransport_transport_" + 1038 "RTCTransport_transport_" +
1039 rtc::ToString<>(cricket::ICE_CANDIDATE_COMPONENT_RTP); 1039 rtc::ToString<>(cricket::ICE_CANDIDATE_COMPONENT_RTP);
1040 expected_pair.local_candidate_id = "RTCIceCandidate_" + local_candidate->id(); 1040 expected_pair.local_candidate_id = "RTCIceCandidate_" + local_candidate->id();
1041 expected_pair.remote_candidate_id = 1041 expected_pair.remote_candidate_id =
1042 "RTCIceCandidate_" + remote_candidate->id(); 1042 "RTCIceCandidate_" + remote_candidate->id();
1043 expected_pair.writable = true; 1043 expected_pair.writable = true;
1044 expected_pair.bytes_sent = 42; 1044 expected_pair.bytes_sent = 42;
1045 expected_pair.bytes_received = 1234; 1045 expected_pair.bytes_received = 1234;
1046 expected_pair.current_rtt = 1.337; 1046 expected_pair.current_round_trip_time = 1.337;
1047 expected_pair.requests_received = 2020; 1047 expected_pair.requests_received = 2020;
1048 expected_pair.requests_sent = 2000; 1048 expected_pair.requests_sent = 2000;
1049 expected_pair.responses_received = 4321; 1049 expected_pair.responses_received = 4321;
1050 expected_pair.responses_sent = 1000; 1050 expected_pair.responses_sent = 1000;
1051 expected_pair.consent_requests_sent = (2020 - 2000); 1051 expected_pair.consent_requests_sent = (2020 - 2000);
1052 1052
1053 EXPECT_TRUE(report->Get(expected_pair.id())); 1053 EXPECT_TRUE(report->Get(expected_pair.id()));
1054 EXPECT_EQ( 1054 EXPECT_EQ(
1055 expected_pair, 1055 expected_pair,
1056 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>()); 1056 report->Get(expected_pair.id())->cast_to<RTCIceCandidatePairStats>());
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
1895 rtc::scoped_refptr<FakeRTCStatsCollector> collector_; 1895 rtc::scoped_refptr<FakeRTCStatsCollector> collector_;
1896 }; 1896 };
1897 1897
1898 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) { 1898 TEST_F(RTCStatsCollectorTestWithFakeCollector, ThreadUsageAndResultsMerging) {
1899 collector_->VerifyThreadUsageAndResultsMerging(); 1899 collector_->VerifyThreadUsageAndResultsMerging();
1900 } 1900 }
1901 1901
1902 } // namespace 1902 } // namespace
1903 1903
1904 } // namespace webrtc 1904 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/api/rtcstatscollector.cc ('k') | webrtc/api/stats/rtcstats_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698