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

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

Issue 302783003: Rename QUIC's TransmissionInfo pending to in_flight and the associated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // static 56 // static
57 size_t QuicSentPacketManagerPeer::GetPendingRetransmissionCount( 57 size_t QuicSentPacketManagerPeer::GetPendingRetransmissionCount(
58 const QuicSentPacketManager* sent_packet_manager) { 58 const QuicSentPacketManager* sent_packet_manager) {
59 return sent_packet_manager->pending_retransmissions_.size(); 59 return sent_packet_manager->pending_retransmissions_.size();
60 } 60 }
61 61
62 // static 62 // static
63 bool QuicSentPacketManagerPeer::HasPendingPackets( 63 bool QuicSentPacketManagerPeer::HasPendingPackets(
64 const QuicSentPacketManager* sent_packet_manager) { 64 const QuicSentPacketManager* sent_packet_manager) {
65 return sent_packet_manager->unacked_packets_.HasPendingPackets(); 65 return sent_packet_manager->unacked_packets_.HasInFlightPackets();
66 } 66 }
67 67
68 // static 68 // static
69 QuicTime QuicSentPacketManagerPeer::GetSentTime( 69 QuicTime QuicSentPacketManagerPeer::GetSentTime(
70 const QuicSentPacketManager* sent_packet_manager, 70 const QuicSentPacketManager* sent_packet_manager,
71 QuicPacketSequenceNumber sequence_number) { 71 QuicPacketSequenceNumber sequence_number) {
72 DCHECK(sent_packet_manager->unacked_packets_.IsUnacked(sequence_number)); 72 DCHECK(sent_packet_manager->unacked_packets_.IsUnacked(sequence_number));
73 73
74 return sent_packet_manager->unacked_packets_.GetTransmissionInfo( 74 return sent_packet_manager->unacked_packets_.GetTransmissionInfo(
75 sequence_number).sent_time; 75 sequence_number).sent_time;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 122
123 // static 123 // static
124 QuicByteCount QuicSentPacketManagerPeer::GetBytesInFlight( 124 QuicByteCount QuicSentPacketManagerPeer::GetBytesInFlight(
125 const QuicSentPacketManager* sent_packet_manager) { 125 const QuicSentPacketManager* sent_packet_manager) {
126 return sent_packet_manager->unacked_packets_.bytes_in_flight(); 126 return sent_packet_manager->unacked_packets_.bytes_in_flight();
127 } 127 }
128 128
129 } // namespace test 129 } // namespace test
130 } // namespace net 130 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_unacked_packet_map_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698