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

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

Issue 1744693002: Implement QUIC-based net::BidirectionalStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@basecl
Patch Set: Fix compile due to merge Created 4 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/quic_stream_factory_test.cc ('k') | net/quic/test_tools/quic_test_packet_maker.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 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 <stddef.h> 10 #include <stddef.h>
(...skipping 19 matching lines...) Expand all
30 ~QuicTestPacketMaker(); 30 ~QuicTestPacketMaker();
31 31
32 void set_hostname(const std::string& host); 32 void set_hostname(const std::string& host);
33 scoped_ptr<QuicEncryptedPacket> MakePingPacket(QuicPacketNumber num, 33 scoped_ptr<QuicEncryptedPacket> MakePingPacket(QuicPacketNumber num,
34 bool include_version); 34 bool include_version);
35 scoped_ptr<QuicEncryptedPacket> MakeRstPacket( 35 scoped_ptr<QuicEncryptedPacket> MakeRstPacket(
36 QuicPacketNumber num, 36 QuicPacketNumber num,
37 bool include_version, 37 bool include_version,
38 QuicStreamId stream_id, 38 QuicStreamId stream_id,
39 QuicRstStreamErrorCode error_code); 39 QuicRstStreamErrorCode error_code);
40
41 scoped_ptr<QuicEncryptedPacket> MakeRstPacket(
42 QuicPacketNumber num,
43 bool include_version,
44 QuicStreamId stream_id,
45 QuicRstStreamErrorCode error_code,
46 size_t bytes_written);
47
40 scoped_ptr<QuicEncryptedPacket> MakeAckAndRstPacket( 48 scoped_ptr<QuicEncryptedPacket> MakeAckAndRstPacket(
41 QuicPacketNumber num, 49 QuicPacketNumber num,
42 bool include_version, 50 bool include_version,
43 QuicStreamId stream_id, 51 QuicStreamId stream_id,
44 QuicRstStreamErrorCode error_code, 52 QuicRstStreamErrorCode error_code,
45 QuicPacketNumber largest_received, 53 QuicPacketNumber largest_received,
46 QuicPacketNumber ack_least_unacked, 54 QuicPacketNumber ack_least_unacked,
47 QuicPacketNumber stop_least_unacked, 55 QuicPacketNumber stop_least_unacked,
48 bool send_feedback); 56 bool send_feedback);
49 scoped_ptr<QuicEncryptedPacket> MakeAckAndConnectionClosePacket( 57 scoped_ptr<QuicEncryptedPacket> MakeAckAndConnectionClosePacket(
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 MockRandom random_generator_; 182 MockRandom random_generator_;
175 QuicPacketHeader header_; 183 QuicPacketHeader header_;
176 184
177 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker); 185 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker);
178 }; 186 };
179 187
180 } // namespace test 188 } // namespace test
181 } // namespace net 189 } // namespace net
182 190
183 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ 191 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory_test.cc ('k') | net/quic/test_tools/quic_test_packet_maker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698