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

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

Issue 2556813003: Delete unused code from QuicSentPacketManager. No behavior change. (Closed)
Patch Set: Created 4 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/core/congestion_control/loss_detection_interface.h" 8 #include "net/quic/core/congestion_control/loss_detection_interface.h"
9 #include "net/quic/core/congestion_control/send_algorithm_interface.h" 9 #include "net/quic/core/congestion_control/send_algorithm_interface.h"
10 #include "net/quic/core/quic_flags.h" 10 #include "net/quic/core/quic_flags.h"
(...skipping 28 matching lines...) Expand all
39 return sent_packet_manager->use_new_rto_; 39 return sent_packet_manager->use_new_rto_;
40 } 40 }
41 41
42 // static 42 // static
43 bool QuicSentPacketManagerPeer::GetUndoRetransmits( 43 bool QuicSentPacketManagerPeer::GetUndoRetransmits(
44 QuicSentPacketManager* sent_packet_manager) { 44 QuicSentPacketManager* sent_packet_manager) {
45 return sent_packet_manager->undo_pending_retransmits_; 45 return sent_packet_manager->undo_pending_retransmits_;
46 } 46 }
47 47
48 // static 48 // static
49 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow(
50 QuicSentPacketManager* sent_packet_manager) {
51 return sent_packet_manager->receive_buffer_bytes_;
52 }
53
54 // static
55 void QuicSentPacketManagerPeer::SetPerspective( 49 void QuicSentPacketManagerPeer::SetPerspective(
56 QuicSentPacketManager* sent_packet_manager, 50 QuicSentPacketManager* sent_packet_manager,
57 Perspective perspective) { 51 Perspective perspective) {
58 sent_packet_manager->perspective_ = perspective; 52 sent_packet_manager->perspective_ = perspective;
59 } 53 }
60 54
61 // static 55 // static
62 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm( 56 SendAlgorithmInterface* QuicSentPacketManagerPeer::GetSendAlgorithm(
63 const QuicSentPacketManager& sent_packet_manager) { 57 const QuicSentPacketManager& sent_packet_manager) {
64 return sent_packet_manager.send_algorithm_.get(); 58 return sent_packet_manager.send_algorithm_.get();
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 202 }
209 203
210 // static 204 // static
211 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap( 205 QuicUnackedPacketMap* QuicSentPacketManagerPeer::GetUnackedPacketMap(
212 QuicSentPacketManager* sent_packet_manager) { 206 QuicSentPacketManager* sent_packet_manager) {
213 return &sent_packet_manager->unacked_packets_; 207 return &sent_packet_manager->unacked_packets_;
214 } 208 }
215 209
216 } // namespace test 210 } // namespace test
217 } // namespace net 211 } // 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