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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 return connection->is_server_; | 108 return connection->is_server_; |
109 } | 109 } |
110 | 110 |
111 // static | 111 // static |
112 void QuicConnectionPeer::SetIsServer(QuicConnection* connection, | 112 void QuicConnectionPeer::SetIsServer(QuicConnection* connection, |
113 bool is_server) { | 113 bool is_server) { |
114 connection->is_server_ = is_server; | 114 connection->is_server_ = is_server; |
115 QuicFramerPeer::SetIsServer(&connection->framer_, is_server); | 115 QuicFramerPeer::SetIsServer(&connection->framer_, is_server); |
116 } | 116 } |
117 | 117 |
| 118 // static |
| 119 void QuicConnectionPeer::SwapCrypters(QuicConnection* connection, |
| 120 QuicFramer* framer) { |
| 121 framer->SwapCryptersForTest(&connection->framer_); |
| 122 } |
| 123 |
118 } // namespace test | 124 } // namespace test |
119 } // namespace net | 125 } // namespace net |
OLD | NEW |