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/quic_connection_stats.h" | 10 #include "net/quic/quic_connection_stats.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 Perspective perspective); | 73 Perspective perspective); |
74 | 74 |
75 static void SetSelfAddress(QuicConnection* connection, | 75 static void SetSelfAddress(QuicConnection* connection, |
76 const IPEndPoint& self_address); | 76 const IPEndPoint& self_address); |
77 | 77 |
78 static void SetPeerAddress(QuicConnection* connection, | 78 static void SetPeerAddress(QuicConnection* connection, |
79 const IPEndPoint& peer_address); | 79 const IPEndPoint& peer_address); |
80 | 80 |
81 static bool IsSilentCloseEnabled(QuicConnection* connection); | 81 static bool IsSilentCloseEnabled(QuicConnection* connection); |
82 | 82 |
| 83 static bool IsMultipathEnabled(QuicConnection* connection); |
| 84 |
83 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); | 85 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); |
84 | 86 |
85 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 87 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
86 | 88 |
87 static QuicFramer* GetFramer(QuicConnection* connection); | 89 static QuicFramer* GetFramer(QuicConnection* connection); |
88 | 90 |
89 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup | 91 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup |
90 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | 92 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); |
91 | 93 |
92 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 94 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 126 |
125 private: | 127 private: |
126 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 128 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
127 }; | 129 }; |
128 | 130 |
129 } // namespace test | 131 } // namespace test |
130 | 132 |
131 } // namespace net | 133 } // namespace net |
132 | 134 |
133 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 135 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
OLD | NEW |