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

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

Issue 1009543004: Create a Perspective enum to use instead of a bool is_server to improve (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added NET_EXPORT_PRIVATE to fix compiler error Created 5 years, 9 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
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.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/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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 QuicPacketSequenceNumber sequence_number); 60 QuicPacketSequenceNumber sequence_number);
61 61
62 static QuicPacketEntropyHash PacketEntropy( 62 static QuicPacketEntropyHash PacketEntropy(
63 QuicConnection* connection, 63 QuicConnection* connection,
64 QuicPacketSequenceNumber sequence_number); 64 QuicPacketSequenceNumber sequence_number);
65 65
66 static QuicPacketEntropyHash ReceivedEntropyHash( 66 static QuicPacketEntropyHash ReceivedEntropyHash(
67 QuicConnection* connection, 67 QuicConnection* connection,
68 QuicPacketSequenceNumber sequence_number); 68 QuicPacketSequenceNumber sequence_number);
69 69
70 static bool IsServer(QuicConnection* connection); 70 static void SetPerspective(QuicConnection* connection,
71 71 Perspective perspective);
72 static void SetIsServer(QuicConnection* connection, bool is_server);
73 72
74 static void SetSelfAddress(QuicConnection* connection, 73 static void SetSelfAddress(QuicConnection* connection,
75 const IPEndPoint& self_address); 74 const IPEndPoint& self_address);
76 75
77 static void SetPeerAddress(QuicConnection* connection, 76 static void SetPeerAddress(QuicConnection* connection,
78 const IPEndPoint& peer_address); 77 const IPEndPoint& peer_address);
79 78
80 static bool IsSilentCloseEnabled(QuicConnection* connection); 79 static bool IsSilentCloseEnabled(QuicConnection* connection);
81 80
82 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer); 81 static void SwapCrypters(QuicConnection* connection, QuicFramer* framer);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 113
115 private: 114 private:
116 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer); 115 DISALLOW_COPY_AND_ASSIGN(QuicConnectionPeer);
117 }; 116 };
118 117
119 } // namespace test 118 } // namespace test
120 119
121 } // namespace net 120 } // namespace net
122 121
123 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_ 122 #endif // NET_QUIC_TEST_TOOLS_QUIC_CONNECTION_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/test_tools/crypto_test_utils.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