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

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

Issue 1660593004: Landing Recent QUIC changes until 01/28/2016 18:41 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Final_0202
Patch Set: Created 4 years, 10 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/spdy_utils_test.cc ('k') | net/quic/test_tools/quic_packet_creator_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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PACKET_CREATOR_PEER_H_ 5 #ifndef NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ 6 #define NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 QuicStreamId id, 43 QuicStreamId id,
44 QuicIOVector iov, 44 QuicIOVector iov,
45 size_t iov_offset, 45 size_t iov_offset,
46 QuicStreamOffset offset, 46 QuicStreamOffset offset,
47 bool fin, 47 bool fin,
48 QuicFrame* frame); 48 QuicFrame* frame);
49 static bool IsFecProtected(QuicPacketCreator* creator); 49 static bool IsFecProtected(QuicPacketCreator* creator);
50 static bool IsFecEnabled(QuicPacketCreator* creator); 50 static bool IsFecEnabled(QuicPacketCreator* creator);
51 static void StartFecProtectingPackets(QuicPacketCreator* creator); 51 static void StartFecProtectingPackets(QuicPacketCreator* creator);
52 static void StopFecProtectingPackets(QuicPacketCreator* creator); 52 static void StopFecProtectingPackets(QuicPacketCreator* creator);
53 static SerializedPacket SerializeFec(QuicPacketCreator* creator, 53 static void SerializeFec(QuicPacketCreator* creator,
54 char* buffer, 54 char* buffer,
55 size_t buffer_len); 55 size_t buffer_len);
56 static SerializedPacket SerializeAllFrames(QuicPacketCreator* creator,
57 const QuicFrames& frames,
58 char* buffer,
59 size_t buffer_len);
56 static void ResetFecGroup(QuicPacketCreator* creator); 60 static void ResetFecGroup(QuicPacketCreator* creator);
57 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator); 61 static QuicTime::Delta GetFecTimeout(QuicPacketCreator* creator);
58 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment. 62 // TODO(rtenneti): Delete this code after the 0.25 RTT FEC experiment.
59 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator); 63 static float GetRttMultiplierForFecTimeout(QuicPacketCreator* creator);
60 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator); 64 static EncryptionLevel GetEncryptionLevel(QuicPacketCreator* creator);
61 static QuicPathId GetCurrentPath(QuicPacketCreator* creator); 65 static QuicPathId GetCurrentPath(QuicPacketCreator* creator);
62 66
63 private: 67 private:
64 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer); 68 DISALLOW_COPY_AND_ASSIGN(QuicPacketCreatorPeer);
65 }; 69 };
66 70
67 } // namespace test 71 } // namespace test
68 72
69 } // namespace net 73 } // namespace net
70 74
71 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_ 75 #endif // NET_QUIC_TEST_TOOLS_QUIC_PACKET_CREATOR_PEER_H_
OLDNEW
« no previous file with comments | « net/quic/spdy_utils_test.cc ('k') | net/quic/test_tools/quic_packet_creator_peer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698