Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / net / spdy / spdy_test_utils.h
blob439311e2c16a95456109d35c9a90490bbc6c41ca
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
3 // found in the LICENSE file.
5 #ifndef NET_SPDY_TEST_UTILS_H_
6 #define NET_SPDY_TEST_UTILS_H_
8 #include <string>
10 #include "net/spdy/spdy_protocol.h"
12 namespace net {
14 namespace test {
16 std::string HexDumpWithMarks(const unsigned char* data, int length,
17 const bool* marks, int mark_length);
19 void CompareCharArraysWithHexError(
20 const std::string& description,
21 const unsigned char* actual,
22 const int actual_len,
23 const unsigned char* expected,
24 const int expected_len);
26 void SetFrameFlags(SpdyFrame* frame,
27 uint8 flags,
28 SpdyMajorVersion spdy_version);
30 void SetFrameLength(SpdyFrame* frame,
31 size_t length,
32 SpdyMajorVersion spdy_version);
34 std::string a2b_hex(const char* hex_data);
36 } // namespace test
38 } // namespace net
40 #endif // NET_SPDY_TEST_UTILS_H_