| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_connection_peer.h" | 5 #include "net/quic/test_tools/quic_connection_peer.h" |
| 6 | 6 |
| 7 #include "base/stl_util.h" | 7 #include "base/stl_util.h" |
| 8 #include "net/quic/congestion_control/receive_algorithm_interface.h" | 8 #include "net/quic/congestion_control/receive_algorithm_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_connection.h" | 10 #include "net/quic/quic_connection.h" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 connection->self_address_ = self_address; | 147 connection->self_address_ = self_address; |
| 148 } | 148 } |
| 149 | 149 |
| 150 // static | 150 // static |
| 151 void QuicConnectionPeer::SetPeerAddress(QuicConnection* connection, | 151 void QuicConnectionPeer::SetPeerAddress(QuicConnection* connection, |
| 152 const IPEndPoint& peer_address) { | 152 const IPEndPoint& peer_address) { |
| 153 connection->peer_address_ = peer_address; | 153 connection->peer_address_ = peer_address; |
| 154 } | 154 } |
| 155 | 155 |
| 156 // static | 156 // static |
| 157 bool QuicConnectionPeer::IsSilentCloseEnabled(QuicConnection* connection) { |
| 158 return connection->silent_close_enabled_; |
| 159 } |
| 160 |
| 161 // static |
| 157 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, | 162 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, |
| 158 QuicFramer* framer) { | 163 QuicFramer* framer) { |
| 159 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); | 164 QuicFramerPeer::SwapCrypters(framer, &connection->framer_); |
| 160 } | 165 } |
| 161 | 166 |
| 162 // static | 167 // static |
| 163 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( | 168 QuicConnectionHelperInterface* QuicConnectionPeer::GetHelper( |
| 164 QuicConnection* connection) { | 169 QuicConnection* connection) { |
| 165 return connection->helper_; | 170 return connection->helper_; |
| 166 } | 171 } |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 } | 254 } |
| 250 | 255 |
| 251 // static | 256 // static |
| 252 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( | 257 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( |
| 253 QuicConnection* connection, QuicPacketSequenceNumber number) { | 258 QuicConnection* connection, QuicPacketSequenceNumber number) { |
| 254 connection->sequence_number_of_last_sent_packet_ = number; | 259 connection->sequence_number_of_last_sent_packet_ = number; |
| 255 } | 260 } |
| 256 | 261 |
| 257 } // namespace test | 262 } // namespace test |
| 258 } // namespace net | 263 } // namespace net |
| OLD | NEW |