| 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/send_algorithm_interface.h" | 8 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| 9 #include "net/quic/quic_packet_writer.h" | 9 #include "net/quic/quic_packet_writer.h" |
| 10 #include "net/quic/quic_received_packet_manager.h" | 10 #include "net/quic/quic_received_packet_manager.h" |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 QuicConnection* connection) { | 143 QuicConnection* connection) { |
| 144 return connection->helper_; | 144 return connection->helper_; |
| 145 } | 145 } |
| 146 | 146 |
| 147 // static | 147 // static |
| 148 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { | 148 QuicFramer* QuicConnectionPeer::GetFramer(QuicConnection* connection) { |
| 149 return &connection->framer_; | 149 return &connection->framer_; |
| 150 } | 150 } |
| 151 | 151 |
| 152 // static | 152 // static |
| 153 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, | |
| 154 int fec_group) { | |
| 155 connection->last_header_.fec_group = fec_group; | |
| 156 return connection->GetFecGroup(); | |
| 157 } | |
| 158 | |
| 159 // static | |
| 160 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { | 153 QuicAlarm* QuicConnectionPeer::GetAckAlarm(QuicConnection* connection) { |
| 161 return connection->ack_alarm_.get(); | 154 return connection->ack_alarm_.get(); |
| 162 } | 155 } |
| 163 | 156 |
| 164 // static | 157 // static |
| 165 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { | 158 QuicAlarm* QuicConnectionPeer::GetPingAlarm(QuicConnection* connection) { |
| 166 return connection->ping_alarm_.get(); | 159 return connection->ping_alarm_.get(); |
| 167 } | 160 } |
| 168 | 161 |
| 169 // static | 162 // static |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 262 } | 255 } |
| 263 | 256 |
| 264 // static | 257 // static |
| 265 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, | 258 void QuicConnectionPeer::SetAckMode(QuicConnection* connection, |
| 266 QuicConnection::AckMode ack_mode) { | 259 QuicConnection::AckMode ack_mode) { |
| 267 connection->ack_mode_ = ack_mode; | 260 connection->ack_mode_ = ack_mode; |
| 268 } | 261 } |
| 269 | 262 |
| 270 } // namespace test | 263 } // namespace test |
| 271 } // namespace net | 264 } // namespace net |
| OLD | NEW |