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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 // false after a certain amount of time without a response passes. | 633 // false after a certain amount of time without a response passes. |
634 // crbug.com/633550 | 634 // crbug.com/633550 |
635 candidate_pair_stats->writable = info.writable; | 635 candidate_pair_stats->writable = info.writable; |
636 candidate_pair_stats->bytes_sent = | 636 candidate_pair_stats->bytes_sent = |
637 static_cast<uint64_t>(info.sent_total_bytes); | 637 static_cast<uint64_t>(info.sent_total_bytes); |
638 candidate_pair_stats->bytes_received = | 638 candidate_pair_stats->bytes_received = |
639 static_cast<uint64_t>(info.recv_total_bytes); | 639 static_cast<uint64_t>(info.recv_total_bytes); |
640 // TODO(hbos): The |info.rtt| measurement is smoothed. It shouldn't be | 640 // TODO(hbos): The |info.rtt| measurement is smoothed. It shouldn't be |
641 // smoothed according to the spec. crbug.com/633550. See | 641 // smoothed according to the spec. crbug.com/633550. See |
642 // https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatepairstats-curr
entrtt | 642 // https://w3c.github.io/webrtc-stats/#dom-rtcicecandidatepairstats-curr
entrtt |
643 candidate_pair_stats->current_rtt = | 643 candidate_pair_stats->current_round_trip_time = |
644 static_cast<double>(info.rtt) / rtc::kNumMillisecsPerSec; | 644 static_cast<double>(info.rtt) / rtc::kNumMillisecsPerSec; |
645 candidate_pair_stats->requests_received = | 645 candidate_pair_stats->requests_received = |
646 static_cast<uint64_t>(info.recv_ping_requests); | 646 static_cast<uint64_t>(info.recv_ping_requests); |
647 candidate_pair_stats->requests_sent = static_cast<uint64_t>( | 647 candidate_pair_stats->requests_sent = static_cast<uint64_t>( |
648 info.sent_ping_requests_before_first_response); | 648 info.sent_ping_requests_before_first_response); |
649 candidate_pair_stats->responses_received = | 649 candidate_pair_stats->responses_received = |
650 static_cast<uint64_t>(info.recv_ping_responses); | 650 static_cast<uint64_t>(info.recv_ping_responses); |
651 candidate_pair_stats->responses_sent = | 651 candidate_pair_stats->responses_sent = |
652 static_cast<uint64_t>(info.sent_ping_responses); | 652 static_cast<uint64_t>(info.sent_ping_responses); |
653 RTC_DCHECK_GE(info.sent_ping_requests_total, | 653 RTC_DCHECK_GE(info.sent_ping_requests_total, |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
928 const std::string& type) { | 928 const std::string& type) { |
929 return CandidateTypeToRTCIceCandidateType(type); | 929 return CandidateTypeToRTCIceCandidateType(type); |
930 } | 930 } |
931 | 931 |
932 const char* DataStateToRTCDataChannelStateForTesting( | 932 const char* DataStateToRTCDataChannelStateForTesting( |
933 DataChannelInterface::DataState state) { | 933 DataChannelInterface::DataState state) { |
934 return DataStateToRTCDataChannelState(state); | 934 return DataStateToRTCDataChannelState(state); |
935 } | 935 } |
936 | 936 |
937 } // namespace webrtc | 937 } // namespace webrtc |
OLD | NEW |