OLD | NEW |
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 20 matching lines...) Expand all Loading... |
31 return sent_packet_manager->use_new_rto_; | 31 return sent_packet_manager->use_new_rto_; |
32 } | 32 } |
33 | 33 |
34 // static | 34 // static |
35 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow( | 35 QuicByteCount QuicSentPacketManagerPeer::GetReceiveWindow( |
36 QuicSentPacketManager* sent_packet_manager) { | 36 QuicSentPacketManager* sent_packet_manager) { |
37 return sent_packet_manager->receive_buffer_bytes_; | 37 return sent_packet_manager->receive_buffer_bytes_; |
38 } | 38 } |
39 | 39 |
40 // static | 40 // static |
41 void QuicSentPacketManagerPeer::SetIsServer( | 41 void QuicSentPacketManagerPeer::SetPerspective( |
42 QuicSentPacketManager* sent_packet_manager, | 42 QuicSentPacketManager* sent_packet_manager, |
43 bool is_server) { | 43 Perspective perspective) { |
44 sent_packet_manager->is_server_ = is_server; | 44 sent_packet_manager->perspective_ = perspective; |
45 } | 45 } |
46 | 46 |
47 // static | 47 // static |
48 const SendAlgorithmInterface* | 48 const SendAlgorithmInterface* |
49 QuicSentPacketManagerPeer::GetSendAlgorithm( | 49 QuicSentPacketManagerPeer::GetSendAlgorithm( |
50 const QuicSentPacketManager& sent_packet_manager) { | 50 const QuicSentPacketManager& sent_packet_manager) { |
51 return sent_packet_manager.send_algorithm_.get(); | 51 return sent_packet_manager.send_algorithm_.get(); |
52 } | 52 } |
53 | 53 |
54 // static | 54 // static |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 } | 152 } |
153 | 153 |
154 // static | 154 // static |
155 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( | 155 QuicSustainedBandwidthRecorder& QuicSentPacketManagerPeer::GetBandwidthRecorder( |
156 QuicSentPacketManager* sent_packet_manager) { | 156 QuicSentPacketManager* sent_packet_manager) { |
157 return sent_packet_manager->sustained_bandwidth_recorder_; | 157 return sent_packet_manager->sustained_bandwidth_recorder_; |
158 } | 158 } |
159 | 159 |
160 } // namespace test | 160 } // namespace test |
161 } // namespace net | 161 } // namespace net |
OLD | NEW |