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

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

Issue 17302002: Land Recent QUIC changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/quic/quic_protocol.h" 10 #include "net/quic/quic_protocol.h"
10 #include "net/quic/quic_stats.h" 11 #include "net/quic/quic_stats.h"
11 12
12 namespace net { 13 namespace net {
13 14
14 struct QuicAckFrame; 15 struct QuicAckFrame;
15 struct QuicPacketHeader; 16 struct QuicPacketHeader;
16 class QuicConnection; 17 class QuicConnection;
17 class QuicConnectionHelperInterface; 18 class QuicConnectionHelperInterface;
18 class QuicConnectionVisitorInterface; 19 class QuicConnectionVisitorInterface;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 QuicPacketEntropyHash entropy_hash); 67 QuicPacketEntropyHash entropy_hash);
67 68
68 static QuicPacketEntropyHash ReceivedEntropyHash( 69 static QuicPacketEntropyHash ReceivedEntropyHash(
69 QuicConnection* connection, 70 QuicConnection* connection,
70 QuicPacketSequenceNumber sequence_number); 71 QuicPacketSequenceNumber sequence_number);
71 72
72 static bool IsServer(QuicConnection* connection); 73 static bool IsServer(QuicConnection* connection);
73 74
74 static void SetIsServer(QuicConnection* connection, bool is_server); 75 static void SetIsServer(QuicConnection* connection, bool is_server);
75 76
77 static void SetSelfAddress(QuicConnection* connection,
78 const IPEndPoint& self_address);
79
76 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); 80 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer);
77 81
78 static void SetMaxPacketsPerRetransmissionAlarm(QuicConnection* connection, 82 static void SetMaxPacketsPerRetransmissionAlarm(QuicConnection* connection,
79 int max_packets); 83 int max_packets);
80 84
81 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection); 85 static QuicConnectionHelperInterface* GetHelper(QuicConnection* connection);
82 86
83 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup 87 // Set last_header_->fec_group = fec_group and return connection->GetFecGroup
84 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group); 88 static QuicFecGroup* GetFecGroup(QuicConnection* connection, int fec_group);
85 89
86 private: 90 private:
87 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 91 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
88 }; 92 };
89 93
90 } // namespace test 94 } // namespace test
91 } // namespace net 95 } // namespace net
92 96
93 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ 97 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_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