| 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 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 6 #define NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
| 10 #include "net/quic/core/quic_connection.h" | 10 #include "net/quic/core/quic_connection.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 static void SetPeerAddress(QuicConnection* connection, | 85 static void SetPeerAddress(QuicConnection* connection, |
| 86 const IPEndPoint& peer_address); | 86 const IPEndPoint& peer_address); |
| 87 | 87 |
| 88 static bool IsSilentCloseEnabled(QuicConnection* connection); | 88 static bool IsSilentCloseEnabled(QuicConnection* connection); |
| 89 | 89 |
| 90 static bool IsMultipathEnabled(QuicConnection* connection); | 90 static bool IsMultipathEnabled(QuicConnection* connection); |
| 91 | 91 |
| 92 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); | 92 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); |
| 93 | 93 |
| 94 static void SetCurrentPacket(QuicConnection* connection, |
| 95 base::StringPiece current_packet); |
| 96 |
| 94 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 97 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
| 95 | 98 |
| 96 static QuicAlarmFactory* GetAlarmFactory(QuicConnection* connection); | 99 static QuicAlarmFactory* GetAlarmFactory(QuicConnection* connection); |
| 97 | 100 |
| 98 static QuicFramer* GetFramer(QuicConnection* connection); | 101 static QuicFramer* GetFramer(QuicConnection* connection); |
| 99 | 102 |
| 100 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 103 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
| 101 static QuicAlarm* GetPingAlarm(QuicConnection* connection); | 104 static QuicAlarm* GetPingAlarm(QuicConnection* connection); |
| 102 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); | 105 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); |
| 103 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); | 106 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 140 |
| 138 private: | 141 private: |
| 139 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 142 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 } // namespace test | 145 } // namespace test |
| 143 | 146 |
| 144 } // namespace net | 147 } // namespace net |
| 145 | 148 |
| 146 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 149 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |