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_TEST_UTILS_H_ | 5 #ifndef NET_SPDY_TEST_UTILS_H_ |
6 #define NET_SPDY_TEST_UTILS_H_ | 6 #define NET_SPDY_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "net/spdy/spdy_protocol.h" | 10 #include "net/spdy/spdy_protocol.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 const int expected_len); | 24 const int expected_len); |
25 | 25 |
26 void SetFrameFlags(SpdyFrame* frame, | 26 void SetFrameFlags(SpdyFrame* frame, |
27 uint8 flags, | 27 uint8 flags, |
28 SpdyMajorVersion spdy_version); | 28 SpdyMajorVersion spdy_version); |
29 | 29 |
30 void SetFrameLength(SpdyFrame* frame, | 30 void SetFrameLength(SpdyFrame* frame, |
31 size_t length, | 31 size_t length, |
32 SpdyMajorVersion spdy_version); | 32 SpdyMajorVersion spdy_version); |
33 | 33 |
| 34 std::string a2b_hex(const char* hex_data); |
| 35 |
34 } // namespace test | 36 } // namespace test |
35 | 37 |
36 } // namespace net | 38 } // namespace net |
37 | 39 |
38 #endif // NET_SPDY_TEST_UTILS_H_ | 40 #endif // NET_SPDY_TEST_UTILS_H_ |
OLD | NEW |