| 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/quic_congestion_manager.h" | 8 #include "net/quic/congestion_control/quic_congestion_manager.h" |
| 9 #include "net/quic/congestion_control/receive_algorithm_interface.h" | 9 #include "net/quic/congestion_control/receive_algorithm_interface.h" |
| 10 #include "net/quic/congestion_control/send_algorithm_interface.h" | 10 #include "net/quic/congestion_control/send_algorithm_interface.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 return connection->received_truncated_ack_; | 56 return connection->received_truncated_ack_; |
| 57 } | 57 } |
| 58 | 58 |
| 59 // static | 59 // static |
| 60 size_t QuicConnectionPeer::GetNumRetransmissionTimeouts( | 60 size_t QuicConnectionPeer::GetNumRetransmissionTimeouts( |
| 61 QuicConnection* connection) { | 61 QuicConnection* connection) { |
| 62 return connection->retransmission_timeouts_.size(); | 62 return connection->retransmission_timeouts_.size(); |
| 63 } | 63 } |
| 64 | 64 |
| 65 // static | 65 // static |
| 66 QuicTime::Delta QuicConnectionPeer::GetTimeout(QuicConnection* connection) { | 66 QuicTime::Delta QuicConnectionPeer::GetNetworkTimeout( |
| 67 return connection->timeout_; | 67 QuicConnection* connection) { |
| 68 return connection->idle_network_timeout_; |
| 68 } | 69 } |
| 69 | 70 |
| 70 // static | 71 // static |
| 71 bool QuicConnectionPeer::IsSavedForRetransmission( | 72 bool QuicConnectionPeer::IsSavedForRetransmission( |
| 72 QuicConnection* connection, | 73 QuicConnection* connection, |
| 73 QuicPacketSequenceNumber sequence_number) { | 74 QuicPacketSequenceNumber sequence_number) { |
| 74 return ContainsKey(connection->retransmission_map_, sequence_number); | 75 return ContainsKey(connection->retransmission_map_, sequence_number); |
| 75 } | 76 } |
| 76 | 77 |
| 77 // static | 78 // static |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 } | 141 } |
| 141 | 142 |
| 142 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, | 143 QuicFecGroup* QuicConnectionPeer::GetFecGroup(QuicConnection* connection, |
| 143 int fec_group) { | 144 int fec_group) { |
| 144 connection->last_header_.fec_group = fec_group; | 145 connection->last_header_.fec_group = fec_group; |
| 145 return connection->GetFecGroup(); | 146 return connection->GetFecGroup(); |
| 146 } | 147 } |
| 147 | 148 |
| 148 } // namespace test | 149 } // namespace test |
| 149 } // namespace net | 150 } // namespace net |
| OLD | NEW |