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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 } | 119 } |
120 return num_unacked_packets; | 120 return num_unacked_packets; |
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 // static |
| 130 QuicSentPacketManager::NetworkChangeVisitor* |
| 131 QuicSentPacketManagerPeer::GetNetworkChangeVisitor( |
| 132 const QuicSentPacketManager* sent_packet_manager) { |
| 133 return sent_packet_manager->network_change_visitor_; |
| 134 } |
| 135 |
129 } // namespace test | 136 } // namespace test |
130 } // namespace net | 137 } // namespace net |
OLD | NEW |