| 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/basictypes.h" | 8 #include "base/basictypes.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); | 92 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); |
| 93 | 93 |
| 94 static QuicFramer* GetFramer(QuicConnection* connection); | 94 static QuicFramer* GetFramer(QuicConnection* connection); |
| 95 | 95 |
| 96 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup | 96 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup |
| 97 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); | 97 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); |
| 98 | 98 |
| 99 static QuicAlarm* GetAckAlarm(QuicConnection* connection); | 99 static QuicAlarm* GetAckAlarm(QuicConnection* connection); |
| 100 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); | 100 static QuicAlarm* GetRetransmissionAlarm(QuicConnection* connection); |
| 101 static QuicAlarm* GetAbandonFecAlarm(QuicConnection* connection); | |
| 102 static QuicAlarm* GetSendAlarm(QuicConnection* connection); | 101 static QuicAlarm* GetSendAlarm(QuicConnection* connection); |
| 103 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); | 102 static QuicAlarm* GetResumeWritesAlarm(QuicConnection* connection); |
| 104 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); | 103 static QuicAlarm* GetTimeoutAlarm(QuicConnection* connection); |
| 105 | 104 |
| 106 static QuicPacketWriter* GetWriter(QuicConnection* connection); | 105 static QuicPacketWriter* GetWriter(QuicConnection* connection); |
| 107 static void SetWriter(QuicConnection* connection, QuicTestWriter* writer); | 106 static void SetWriter(QuicConnection* connection, QuicTestWriter* writer); |
| 108 | 107 |
| 109 private: | 108 private: |
| 110 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 109 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace test | 112 } // namespace test |
| 114 } // namespace net | 113 } // namespace net |
| 115 | 114 |
| 116 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ | 115 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ |
| OLD | NEW |