| 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 22 matching lines...) Expand all Loading... |
| 33 // Peer to make public a number of otherwise private QuicConnection methods. | 33 // Peer to make public a number of otherwise private QuicConnection methods. |
| 34 class QuicConnectionPeer { | 34 class QuicConnectionPeer { |
| 35 public: | 35 public: |
| 36 static void SendAck(QuicConnection* connection); | 36 static void SendAck(QuicConnection* connection); |
| 37 | 37 |
| 38 static void SetSendAlgorithm(QuicConnection* connection, | 38 static void SetSendAlgorithm(QuicConnection* connection, |
| 39 SendAlgorithmInterface* send_algorithm); | 39 SendAlgorithmInterface* send_algorithm); |
| 40 | 40 |
| 41 static void PopulateAckFrame(QuicConnection* connection, QuicAckFrame* ack); | 41 static void PopulateAckFrame(QuicConnection* connection, QuicAckFrame* ack); |
| 42 | 42 |
| 43 static const QuicFrame GetUpdatedAckFrame(QuicConnection* connection); |
| 44 |
| 43 static void PopulateStopWaitingFrame(QuicConnection* connection, | 45 static void PopulateStopWaitingFrame(QuicConnection* connection, |
| 44 QuicStopWaitingFrame* stop_waiting); | 46 QuicStopWaitingFrame* stop_waiting); |
| 45 | 47 |
| 46 static QuicConnectionVisitorInterface* GetVisitor(QuicConnection* connection); | 48 static QuicConnectionVisitorInterface* GetVisitor(QuicConnection* connection); |
| 47 | 49 |
| 48 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); | 50 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); |
| 49 | 51 |
| 50 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); | 52 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection); |
| 51 | 53 |
| 52 static QuicSentPacketManager* GetSentPacketManager( | 54 static QuicSentPacketManager* GetSentPacketManager( |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 124 |
| 123 private: | 125 private: |
| 124 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); | 126 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); |
| 125 }; | 127 }; |
| 126 | 128 |
| 127 } // namespace test | 129 } // namespace test |
| 128 | 130 |
| 129 } // namespace net | 131 } // namespace net |
| 130 | 132 |
| 131 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ | 133 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ |
| OLD | NEW |