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 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |