| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 QuicConnection* connection) { | 252 QuicConnection* connection) { |
| 253 return &connection->last_header_; | 253 return &connection->last_header_; |
| 254 } | 254 } |
| 255 | 255 |
| 256 // static | 256 // static |
| 257 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( | 257 void QuicConnectionPeer::SetSequenceNumberOfLastSentPacket( |
| 258 QuicConnection* connection, QuicPacketSequenceNumber number) { | 258 QuicConnection* connection, QuicPacketSequenceNumber number) { |
| 259 connection->sequence_number_of_last_sent_packet_ = number; | 259 connection->sequence_number_of_last_sent_packet_ = number; |
| 260 } | 260 } |
| 261 | 261 |
| 262 // static |
| 263 QuicConnectionStats* QuicConnectionPeer::GetStats(QuicConnection* connection) { |
| 264 return &connection->stats_; |
| 265 } |
| 266 |
| 262 } // namespace test | 267 } // namespace test |
| 263 } // namespace net | 268 } // namespace net |
| OLD | NEW |