| 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_SPDY3_H_ | 5 #ifndef NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ |
| 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ | 6 #define NET_SPDY_SPDY_TEST_UTIL_SPDY3_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" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 class ECSignatureCreatorFactory; | 21 class ECSignatureCreatorFactory; |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace net { | 24 namespace net { |
| 25 | 25 |
| 26 namespace test_spdy3 { | 26 namespace test_spdy3 { |
| 27 | 27 |
| 28 // Can't find a function you're looking for? ttuttle is migrating functions | 28 // Can't find a function you're looking for? ttuttle is migrating functions |
| 29 // from here into methods in the SpdyTestUtil class in spdy_test_common.h. | 29 // from here into methods in the SpdyTestUtil class in spdy_test_common.h. |
| 30 | 30 |
| 31 // Constructs a standard SPDY SYN_STREAM frame for a CONNECT request. | |
| 32 SpdyFrame* ConstructSpdyConnect(const char* const extra_headers[], | |
| 33 int extra_header_count, | |
| 34 int stream_id); | |
| 35 | |
| 36 // Constructs a standard SPDY push SYN frame. | 31 // Constructs a standard SPDY push SYN frame. |
| 37 // |extra_headers| are the extra header-value pairs, which typically | 32 // |extra_headers| are the extra header-value pairs, which typically |
| 38 // will vary the most between calls. | 33 // will vary the most between calls. |
| 39 // Returns a SpdyFrame. | 34 // Returns a SpdyFrame. |
| 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, |
| 42 int stream_id, | 37 int stream_id, |
| 43 int associated_stream_id); | 38 int associated_stream_id); |
| 44 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], | 39 SpdyFrame* ConstructSpdyPush(const char* const extra_headers[], |
| 45 int extra_header_count, | 40 int extra_header_count, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 SpdyFrame* ConstructWrappedSpdyFrame(const scoped_ptr<SpdyFrame>& frame, | 145 SpdyFrame* ConstructWrappedSpdyFrame(const scoped_ptr<SpdyFrame>& frame, |
| 151 int stream_id); | 146 int stream_id); |
| 152 | 147 |
| 153 const SpdyHeaderInfo MakeSpdyHeader(SpdyFrameType type); | 148 const SpdyHeaderInfo MakeSpdyHeader(SpdyFrameType type); |
| 154 | 149 |
| 155 } // namespace test_spdy3 | 150 } // namespace test_spdy3 |
| 156 | 151 |
| 157 } // namespace net | 152 } // namespace net |
| 158 | 153 |
| 159 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ | 154 #endif // NET_SPDY_SPDY_TEST_UTIL_SPDY3_H_ |
| OLD | NEW |