| 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.h" | 10 #include "net/quic/quic_connection.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 static bool IsSilentCloseEnabled(QuicConnection* connection); | 81 static bool IsSilentCloseEnabled(QuicConnection* connection); |
| 82 | 82 |
| 83 static bool IsMultipathEnabled(QuicConnection* connection); | 83 static bool IsMultipathEnabled(QuicConnection* connection); |
| 84 | 84 |
| 85 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); | 85 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); |
| 86 | 86 |
| 87 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 87 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
| 88 | 88 |
| 89 static QuicFramer* GetFramer(QuicConnection* connection); | 89 static QuicFramer* GetFramer(QuicConnection* connection); |
| 90 | 90 |
| 91 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup | |
| 92 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | |
| 93 | |
| 94 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 91 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
| 95 static QuicAlarm* GetPingAlarm(QuicConnection* connection); | 92 static QuicAlarm* GetPingAlarm(QuicConnection* connection); |
| 96 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); | 93 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); |
| 97 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); | 94 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); |
| 98 static QuicAlarm* GetSendAlarm(QuicConnection* connection); | 95 static QuicAlarm* GetSendAlarm(QuicConnection* connection); |
| 99 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); | 96 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); |
| 100 static QuicAlarm* GetMtuDiscoveryAlarm(QuicConnection* connection); | 97 static QuicAlarm* GetMtuDiscoveryAlarm(QuicConnection* connection); |
| 101 | 98 |
| 102 static QuicPacketWriter* GetWriter(QuicConnection* connection); | 99 static QuicPacketWriter* GetWriter(QuicConnection* connection); |
| 103 // If |owns_writer| is true, takes ownership of |writer|. | 100 // If |owns_writer| is true, takes ownership of |writer|. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 126 | 123 |
| 127 private: | 124 private: |
| 128 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 125 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 129 }; | 126 }; |
| 130 | 127 |
| 131 } // namespace test | 128 } // namespace test |
| 132 | 129 |
| 133 } // namespace net | 130 } // namespace net |
| 134 | 131 |
| 135 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 132 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |