- add sources.
[platform/framework/web/crosswalk.git] / src / net / spdy / spdy_test_utils.h
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.
4
5 #ifndef NET_SPDY_TEST_UTILS_H_
6 #define NET_SPDY_TEST_UTILS_H_
7
8 #include <string>
9
10 #include "net/spdy/spdy_protocol.h"
11
12 namespace net {
13
14 namespace test {
15
16 std::string HexDumpWithMarks(const unsigned char* data, int length,
17                              const bool* marks, int mark_length);
18
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);
25
26 void SetFrameFlags(SpdyFrame* frame, uint8 flags, int spdy_version);
27
28 void SetFrameLength(SpdyFrame* frame, size_t length, int spdy_version);
29
30 }  // namespace test
31
32 }  // namespace net
33
34 #endif  // NET_SPDY_TEST_UTILS_H_