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

Side by Side Diff: net/quic/test_tools/quic_sent_packet_manager_peer.cc

Issue 761863002: Clean up type usage and fix MSVC "truncated value" warnings in net/quic/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix #3 Created 6 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 | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h" 5 #include "net/quic/test_tools/quic_sent_packet_manager_peer.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "net/quic/congestion_control/loss_detection_interface.h" 8 #include "net/quic/congestion_control/loss_detection_interface.h"
9 #include "net/quic/congestion_control/send_algorithm_interface.h" 9 #include "net/quic/congestion_control/send_algorithm_interface.h"
10 #include "net/quic/quic_protocol.h" 10 #include "net/quic/quic_protocol.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 sent_packet_manager->loss_algorithm_.reset(loss_detector); 65 sent_packet_manager->loss_algorithm_.reset(loss_detector);
66 } 66 }
67 67
68 // static 68 // static
69 RttStats* QuicSentPacketManagerPeer::GetRttStats( 69 RttStats* QuicSentPacketManagerPeer::GetRttStats(
70 QuicSentPacketManager* sent_packet_manager) { 70 QuicSentPacketManager* sent_packet_manager) {
71 return &sent_packet_manager->rtt_stats_; 71 return &sent_packet_manager->rtt_stats_;
72 } 72 }
73 73
74 // static 74 // static
75 size_t QuicSentPacketManagerPeer::GetNackCount( 75 QuicPacketCount QuicSentPacketManagerPeer::GetNackCount(
76 const QuicSentPacketManager* sent_packet_manager, 76 const QuicSentPacketManager* sent_packet_manager,
77 QuicPacketSequenceNumber sequence_number) { 77 QuicPacketSequenceNumber sequence_number) {
78 return sent_packet_manager->unacked_packets_. 78 return sent_packet_manager->unacked_packets_.
79 GetTransmissionInfo(sequence_number).nack_count; 79 GetTransmissionInfo(sequence_number).nack_count;
80 } 80 }
81 81
82 // static 82 // static
83 size_t QuicSentPacketManagerPeer::GetPendingRetransmissionCount( 83 size_t QuicSentPacketManagerPeer::GetPendingRetransmissionCount(
84 const QuicSentPacketManager* sent_packet_manager) { 84 const QuicSentPacketManager* sent_packet_manager) {
85 return sent_packet_manager->pending_retransmissions_.size(); 85 return sent_packet_manager->pending_retransmissions_.size();
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 // static 162 // static
163 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( 163 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder(
164 QuicSentPacketManager* sent_packet_manager) { 164 QuicSentPacketManager* sent_packet_manager) {
165 return sent_packet_manager->sustained_bandwidth_recorder_; 165 return sent_packet_manager->sustained_bandwidth_recorder_;
166 } 166 }
167 167
168 } // namespace test 168 } // namespace test
169 } // namespace net 169 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/test_tools/quic_sent_packet_manager_peer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698