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

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

Issue 476023002: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0814_2
Patch Set: Created 6 years, 4 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
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"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 QuicConnection* connection, 66 QuicConnection* connection,
67 QuicPacketSequenceNumber sequence_number); 67 QuicPacketSequenceNumber sequence_number);
68 68
69 static bool IsRetransmission(QuicConnection* connection, 69 static bool IsRetransmission(QuicConnection* connection,
70 QuicPacketSequenceNumber sequence_number); 70 QuicPacketSequenceNumber sequence_number);
71 71
72 static QuicPacketEntropyHash GetSentEntropyHash( 72 static QuicPacketEntropyHash GetSentEntropyHash(
73 QuicConnection* connection, 73 QuicConnection* connection,
74 QuicPacketSequenceNumber sequence_number); 74 QuicPacketSequenceNumber sequence_number);
75 75
76 static bool IsValidEntropy(QuicConnection* connection, 76 static QuicPacketEntropyHash PacketEntropy(
77 QuicPacketSequenceNumber largest_observed, 77 QuicConnection* connection,
78 const SequenceNumberSet& missing_packets, 78 QuicPacketSequenceNumber sequence_number);
79 QuicPacketEntropyHash entropy_hash);
80 79
81 static QuicPacketEntropyHash ReceivedEntropyHash( 80 static QuicPacketEntropyHash ReceivedEntropyHash(
82 QuicConnection* connection, 81 QuicConnection* connection,
83 QuicPacketSequenceNumber sequence_number); 82 QuicPacketSequenceNumber sequence_number);
84 83
85 static bool IsServer(QuicConnection* connection); 84 static bool IsServer(QuicConnection* connection);
86 85
87 static void SetIsServer(QuicConnection* connection, bool is_server); 86 static void SetIsServer(QuicConnection* connection, bool is_server);
88 87
89 static void SetSelfAddress(QuicConnection* connection, 88 static void SetSelfAddress(QuicConnection* connection,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 121
123 private: 122 private:
124 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 123 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
125 }; 124 };
126 125
127 } // namespace test 126 } // namespace test
128 127
129 } // namespace net 128 } // namespace net
130 129
131 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ 130 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_sustained_bandwidth_recorder_test.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