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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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
« no previous file with comments | « net/quic/test_tools/mock_clock.cc ('k') | net/quic/test_tools/quic_connection_peer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/quic/quic_protocol.h" 9 #include "net/quic/quic_protocol.h"
10 #include "net/quic/quic_stats.h" 10 #include "net/quic/quic_stats.h"
11 11
12 namespace net { 12 namespace net {
13 13
14 struct QuicAckFrame; 14 struct QuicAckFrame;
15 class QuicConnection; 15 class QuicConnection;
16 class QuicConnectionVisitorInterface; 16 class QuicConnectionVisitorInterface;
17 class QuicFramer;
17 class QuicPacketCreator; 18 class QuicPacketCreator;
18 class ReceiveAlgorithmInterface; 19 class ReceiveAlgorithmInterface;
19 class SendAlgorithmInterface; 20 class SendAlgorithmInterface;
20 21
21 namespace test { 22 namespace test {
22 23
23 // Peer to make public a number of otherwise private QuicConnection methods. 24 // Peer to make public a number of otherwise private QuicConnection methods.
24 class QuicConnectionPeer { 25 class QuicConnectionPeer {
25 public: 26 public:
26 static void SendAck(QuicConnection* connection); 27 static void SendAck(QuicConnection* connection);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 QuicPacketEntropyHash entropy_hash); 61 QuicPacketEntropyHash entropy_hash);
61 62
62 static QuicPacketEntropyHash ReceivedEntropyHash( 63 static QuicPacketEntropyHash ReceivedEntropyHash(
63 QuicConnection* connection, 64 QuicConnection* connection,
64 QuicPacketSequenceNumber sequence_number); 65 QuicPacketSequenceNumber sequence_number);
65 66
66 static bool IsServer(QuicConnection* connection); 67 static bool IsServer(QuicConnection* connection);
67 68
68 static void SetIsServer(QuicConnection* connection, bool is_server); 69 static void SetIsServer(QuicConnection* connection, bool is_server);
69 70
71 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer);
72
70 private: 73 private:
71 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 74 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
72 }; 75 };
73 76
74 } // namespace test 77 } // namespace test
75 } // namespace net 78 } // namespace net
76 79
77 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_ 80 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/mock_clock.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