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

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

Issue 1470713003: Landing Recent QUIC changes until and including Mon Nov 16 14:15:48 2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding NET_EXPORT_PRIVATE to DelegateInterface. Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 // Provides a simple interface for QUIC tests to create a variety of packets. 5 // Provides a simple interface for QUIC tests to create a variety of packets.
6 6
7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ 7 #ifndef NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_
8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ 8 #define NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 QuicStreamOffset offset, 54 QuicStreamOffset offset,
55 base::StringPiece data); 55 base::StringPiece data);
56 56
57 // If |spdy_headers_frame_length| is non-null, it will be set to the size of 57 // If |spdy_headers_frame_length| is non-null, it will be set to the size of
58 // the SPDY headers frame created for this packet. 58 // the SPDY headers frame created for this packet.
59 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket( 59 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket(
60 QuicPacketNumber packet_number, 60 QuicPacketNumber packet_number,
61 QuicStreamId stream_id, 61 QuicStreamId stream_id,
62 bool should_include_version, 62 bool should_include_version,
63 bool fin, 63 bool fin,
64 QuicPriority priority, 64 SpdyPriority priority,
65 const SpdyHeaderBlock& headers, 65 const SpdyHeaderBlock& headers,
66 size_t* spdy_headers_frame_length); 66 size_t* spdy_headers_frame_length);
67 67
68 // Convenience method for calling MakeRequestHeadersPacket with nullptr for 68 // Convenience method for calling MakeRequestHeadersPacket with nullptr for
69 // |spdy_headers_frame_length|. 69 // |spdy_headers_frame_length|.
70 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket( 70 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket(
71 QuicPacketNumber packet_number, 71 QuicPacketNumber packet_number,
72 QuicStreamId stream_id, 72 QuicStreamId stream_id,
73 bool should_include_version, 73 bool should_include_version,
74 bool fin, 74 bool fin,
75 QuicPriority priority, 75 SpdyPriority priority,
76 const SpdyHeaderBlock& headers); 76 const SpdyHeaderBlock& headers);
77 77
78 // If |spdy_headers_frame_length| is non-null, it will be set to the size of 78 // If |spdy_headers_frame_length| is non-null, it will be set to the size of
79 // the SPDY headers frame created for this packet. 79 // the SPDY headers frame created for this packet.
80 scoped_ptr<QuicEncryptedPacket> MakeResponseHeadersPacket( 80 scoped_ptr<QuicEncryptedPacket> MakeResponseHeadersPacket(
81 QuicPacketNumber packet_number, 81 QuicPacketNumber packet_number,
82 QuicStreamId stream_id, 82 QuicStreamId stream_id,
83 bool should_include_version, 83 bool should_include_version,
84 bool fin, 84 bool fin,
85 const SpdyHeaderBlock& headers, 85 const SpdyHeaderBlock& headers,
(...skipping 30 matching lines...) Expand all
116 MockRandom random_generator_; 116 MockRandom random_generator_;
117 QuicPacketHeader header_; 117 QuicPacketHeader header_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker); 119 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker);
120 }; 120 };
121 121
122 } // namespace test 122 } // namespace test
123 } // namespace net 123 } // namespace net
124 124
125 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ 125 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698