OLD | NEW |
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_SPDY_SPDY_TEST_UTIL_SPDY2_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ |
6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
11 #include "net/base/host_port_pair.h" | 11 #include "net/base/host_port_pair.h" |
12 #include "net/base/request_priority.h" | 12 #include "net/base/request_priority.h" |
13 #include "net/http/http_cache.h" | 13 #include "net/http/http_cache.h" |
14 #include "net/http/http_network_layer.h" | 14 #include "net/http/http_network_layer.h" |
15 #include "net/http/http_transaction_factory.h" | 15 #include "net/http/http_transaction_factory.h" |
16 #include "net/socket/socket_test_util.h" | 16 #include "net/socket/socket_test_util.h" |
17 #include "net/spdy/spdy_session.h" | 17 #include "net/spdy/spdy_session.h" |
18 #include "net/spdy/spdy_test_util_common.h" | 18 #include "net/spdy/spdy_test_util_common.h" |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 | 21 |
22 namespace test_spdy2 { | 22 namespace test_spdy2 { |
23 | 23 |
24 // Can't find a function you're looking for? ttuttle is migrating functions | 24 // Can't find a function you're looking for? ttuttle is migrating functions |
25 // from here into methods in the SpdyTestUtil class in spdy_test_common.h. | 25 // from here into methods in the SpdyTestUtil class in spdy_test_common.h. |
26 | 26 |
27 // Constructs a standard SPDY SYN_STREAM frame for a CONNECT request. | |
28 SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[], | |
29 int extra_header_count, | |
30 int stream_id); | |
31 | |
32 // Constructs a standard SPDY push SYN frame. | 27 // Constructs a standard SPDY push SYN frame. |
33 // |extra_headers| are the extra header-value pairs, which typically | 28 // |extra_headers| are the extra header-value pairs, which typically |
34 // will vary the most between calls. | 29 // will vary the most between calls. |
35 // Returns a SpdyFrame. | 30 // Returns a SpdyFrame. |
36 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], | 31 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], |
37 int extra_header_count, | 32 int extra_header_count, |
38 int stream_id, | 33 int stream_id, |
39 int associated_stream_id); | 34 int associated_stream_id); |
40 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], | 35 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], |
41 int extra_header_count, | 36 int extra_header_count, |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 SpdyFrame* ConstructWrappedSpdyFrame(const scoped_ptr<SpdyFrame>& frame, | 113 SpdyFrame* ConstructWrappedSpdyFrame(const scoped_ptr<SpdyFrame>& frame, |
119 int stream_id); | 114 int stream_id); |
120 | 115 |
121 const SpdyHeaderInfo MakeSpdyHeader(SpdyFrameType type); | 116 const SpdyHeaderInfo MakeSpdyHeader(SpdyFrameType type); |
122 | 117 |
123 } // namespace test_spdy2 | 118 } // namespace test_spdy2 |
124 | 119 |
125 } // namespace net | 120 } // namespace net |
126 | 121 |
127 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ | 122 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY2_H_ |
OLD | NEW |