Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: net/quic/test_tools/quic_connection_peer.h

Issue 327393002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile error Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "net/quic/quic_protocol.h" 11 #include "net/quic/quic_protocol.h"
12 12
13 namespace net { 13 namespace net {
14 14
15 struct QuicAckFrame; 15 struct QuicAckFrame;
16 struct QuicPacketHeader; 16 struct QuicPacketHeader;
17 class QuicAlarm; 17 class QuicAlarm;
18 class QuicConnection; 18 class QuicConnection;
19 class QuicConnectionHelperInterface; 19 class QuicConnectionHelperInterface;
20 class QuicConnectionVisitorInterface; 20 class QuicConnectionVisitorInterface;
21 class QuicEncryptedPacket; 21 class QuicEncryptedPacket;
22 class QuicFecGroup; 22 class QuicFecGroup;
23 class QuicFramer; 23 class QuicFramer;
24 class QuicPacketCreator; 24 class QuicPacketCreator;
25 class QuicPacketGenerator;
25 class QuicPacketWriter; 26 class QuicPacketWriter;
26 class QuicReceivedPacketManager; 27 class QuicReceivedPacketManager;
27 class QuicSentPacketManager; 28 class QuicSentPacketManager;
28 class ReceiveAlgorithmInterface; 29 class ReceiveAlgorithmInterface;
29 class SendAlgorithmInterface; 30 class SendAlgorithmInterface;
30 31
31 namespace test { 32 namespace test {
32 33
33 // Peer to make public a number of otherwise private QuicConnection methods. 34 // Peer to make public a number of otherwise private QuicConnection methods.
34 class QuicConnectionPeer { 35 class QuicConnectionPeer {
35 public: 36 public:
36 static void SendAck(QuicConnection* connection); 37 static void SendAck(QuicConnection* connection);
37 38
38 static void SetReceiveAlgorithm(QuicConnection* connection, 39 static void SetReceiveAlgorithm(QuicConnection* connection,
39 ReceiveAlgorithmInterface* receive_algorithm); 40 ReceiveAlgorithmInterface* receive_algorithm);
40 41
41 static void SetSendAlgorithm(QuicConnection* connection, 42 static void SetSendAlgorithm(QuicConnection* connection,
42 SendAlgorithmInterface* send_algorithm); 43 SendAlgorithmInterface* send_algorithm);
43 44
44 static QuicAckFrame* CreateAckFrame(QuicConnection* connection); 45 static QuicAckFrame* CreateAckFrame(QuicConnection* connection);
45 46
46 static QuicConnectionVisitorInterface* GetVisitor( 47 static QuicConnectionVisitorInterface* GetVisitor(
47 QuicConnection* connection); 48 QuicConnection* connection);
48 49
49 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection); 50 static QuicPacketCreator* GetPacketCreator(QuicConnection* connection);
50 51
52 static QuicPacketGenerator* GetPacketGenerator(QuicConnection* connection);
53
51 static QuicSentPacketManager* GetSentPacketManager( 54 static QuicSentPacketManager* GetSentPacketManager(
52 QuicConnection* connection); 55 QuicConnection* connection);
53 56
54 static QuicReceivedPacketManager* GetReceivedPacketManager( 57 static QuicReceivedPacketManager* GetReceivedPacketManager(
55 QuicConnection* connection); 58 QuicConnection* connection);
56 59
57 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection); 60 static QuicTime::Delta GetNetworkTimeout(QuicConnection* connection);
58 61
59 static bool IsSavedForRetransmission( 62 static bool IsSavedForRetransmission(
60 QuicConnection* connection, 63 QuicConnection* connection,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 116
114 private: 117 private:
115 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 118 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
116 }; 119 };
117 120
118 } // namespace test 121 } // namespace test
119 122
120 } // namespace net 123 } // namespace net
121 124
122 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ 125 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils_openssl.cc ('k') | net/quic/test_tools/quic_connection_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698