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

Side by Side Diff: net/spdy/spdy_test_utils.h

Issue 246073007: SPDY & HPACK: Land recent internal changes (through 65328503) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on upstream change: Expanded FRAME_TOO_LARGE/FRAME_SIZE_ERROR comment. Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_utils.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 (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"
11 11
12 namespace net { 12 namespace net {
13 13
14 namespace test { 14 namespace test {
15 15
16 std::string HexDumpWithMarks(const unsigned char* data, int length, 16 std::string HexDumpWithMarks(const unsigned char* data, int length,
17 const bool* marks, int mark_length); 17 const bool* marks, int mark_length);
18 18
19 void CompareCharArraysWithHexError( 19 void CompareCharArraysWithHexError(
20 const std::string& description, 20 const std::string& description,
21 const unsigned char* actual, 21 const unsigned char* actual,
22 const int actual_len, 22 const int actual_len,
23 const unsigned char* expected, 23 const unsigned char* expected,
24 const int expected_len); 24 const int expected_len);
25 25
26 void SetFrameFlags(SpdyFrame* frame, uint8 flags, int spdy_version); 26 void SetFrameFlags(SpdyFrame* frame,
27 uint8 flags,
28 SpdyMajorVersion spdy_version);
27 29
28 void SetFrameLength(SpdyFrame* frame, size_t length, int spdy_version); 30 void SetFrameLength(SpdyFrame* frame,
31 size_t length,
32 SpdyMajorVersion spdy_version);
29 33
30 } // namespace test 34 } // namespace test
31 35
32 } // namespace net 36 } // namespace net
33 37
34 #endif // NET_SPDY_TEST_UTILS_H_ 38 #endif // NET_SPDY_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | net/spdy/spdy_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698