OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 QuicStreamId stream_id, | 50 QuicStreamId stream_id, |
51 bool should_include_version, | 51 bool should_include_version, |
52 bool fin, | 52 bool fin, |
53 QuicStreamOffset offset, | 53 QuicStreamOffset offset, |
54 base::StringPiece data); | 54 base::StringPiece data); |
55 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket( | 55 scoped_ptr<QuicEncryptedPacket> MakeRequestHeadersPacket( |
56 QuicPacketSequenceNumber sequence_number, | 56 QuicPacketSequenceNumber sequence_number, |
57 QuicStreamId stream_id, | 57 QuicStreamId stream_id, |
58 bool should_include_version, | 58 bool should_include_version, |
59 bool fin, | 59 bool fin, |
| 60 QuicPriority priority, |
60 const SpdyHeaderBlock& headers); | 61 const SpdyHeaderBlock& headers); |
61 scoped_ptr<QuicEncryptedPacket> MakeResponseHeadersPacket( | 62 scoped_ptr<QuicEncryptedPacket> MakeResponseHeadersPacket( |
62 QuicPacketSequenceNumber sequence_number, | 63 QuicPacketSequenceNumber sequence_number, |
63 QuicStreamId stream_id, | 64 QuicStreamId stream_id, |
64 bool should_include_version, | 65 bool should_include_version, |
65 bool fin, | 66 bool fin, |
66 const SpdyHeaderBlock& headers); | 67 const SpdyHeaderBlock& headers); |
67 | 68 |
68 SpdyHeaderBlock GetRequestHeaders(const std::string& method, | 69 SpdyHeaderBlock GetRequestHeaders(const std::string& method, |
69 const std::string& scheme, | 70 const std::string& scheme, |
(...skipping 16 matching lines...) Expand all Loading... |
86 MockRandom random_generator_; | 87 MockRandom random_generator_; |
87 QuicPacketHeader header_; | 88 QuicPacketHeader header_; |
88 | 89 |
89 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker); | 90 DISALLOW_COPY_AND_ASSIGN(QuicTestPacketMaker); |
90 }; | 91 }; |
91 | 92 |
92 } // namespace test | 93 } // namespace test |
93 } // namespace net | 94 } // namespace net |
94 | 95 |
95 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ | 96 #endif // NET_QUIC_TEST_TOOLS_QUIC_TEST_PACKET_MAKER_H_ |
OLD | NEW |