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

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

Issue 158153002: Rename previous_transmissions to all_transmission in the QUIC unacked (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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_sent_packet_manager.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/send_algorithm_interface.h" 8 #include "net/quic/congestion_control/send_algorithm_interface.h"
9 #include "net/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 #include "net/quic/quic_sent_packet_manager.h" 10 #include "net/quic/quic_sent_packet_manager.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 return sent_packet_manager->rtt_sample_; 61 return sent_packet_manager->rtt_sample_;
62 } 62 }
63 63
64 // static 64 // static
65 bool QuicSentPacketManagerPeer::IsRetransmission( 65 bool QuicSentPacketManagerPeer::IsRetransmission(
66 QuicSentPacketManager* sent_packet_manager, 66 QuicSentPacketManager* sent_packet_manager,
67 QuicPacketSequenceNumber sequence_number) { 67 QuicPacketSequenceNumber sequence_number) {
68 DCHECK(sent_packet_manager->HasRetransmittableFrames(sequence_number)); 68 DCHECK(sent_packet_manager->HasRetransmittableFrames(sequence_number));
69 return sent_packet_manager->HasRetransmittableFrames(sequence_number) && 69 return sent_packet_manager->HasRetransmittableFrames(sequence_number) &&
70 sent_packet_manager-> 70 sent_packet_manager->
71 unacked_packets_[sequence_number].previous_transmissions != NULL; 71 unacked_packets_[sequence_number].all_transmissions->size() > 1;
72 } 72 }
73 73
74 // static 74 // static
75 void QuicSentPacketManagerPeer::MarkForRetransmission( 75 void QuicSentPacketManagerPeer::MarkForRetransmission(
76 QuicSentPacketManager* sent_packet_manager, 76 QuicSentPacketManager* sent_packet_manager,
77 QuicPacketSequenceNumber sequence_number, 77 QuicPacketSequenceNumber sequence_number,
78 TransmissionType transmission_type) { 78 TransmissionType transmission_type) {
79 sent_packet_manager->MarkForRetransmission(sequence_number, 79 sent_packet_manager->MarkForRetransmission(sequence_number,
80 transmission_type); 80 transmission_type);
81 } 81 }
82 82
83 // static 83 // static
84 QuicTime::Delta QuicSentPacketManagerPeer::GetRetransmissionDelay( 84 QuicTime::Delta QuicSentPacketManagerPeer::GetRetransmissionDelay(
85 const QuicSentPacketManager* sent_packet_manager) { 85 const QuicSentPacketManager* sent_packet_manager) {
86 return sent_packet_manager->GetRetransmissionDelay(); 86 return sent_packet_manager->GetRetransmissionDelay();
87 } 87 }
88 88
89 // static 89 // static
90 bool QuicSentPacketManagerPeer::HasUnackedCryptoPackets( 90 bool QuicSentPacketManagerPeer::HasUnackedCryptoPackets(
91 const QuicSentPacketManager* sent_packet_manager) { 91 const QuicSentPacketManager* sent_packet_manager) {
92 return sent_packet_manager->pending_crypto_packet_count_ > 0; 92 return sent_packet_manager->pending_crypto_packet_count_ > 0;
93 } 93 }
94 94
95 } // namespace test 95 } // namespace test
96 } // namespace net 96 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_sent_packet_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698