chromeos: bluetooth: add BluetoothInputClient
[chromium-blink-merge.git] / net / spdy / spdy_websocket_test_util.h
blob5c16d07e747bf2faa8937b09376788375d09ae69
1 // Copyright (c) 2011 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_SPDY_WEBSOCKET_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
7 #pragma once
9 #include "net/base/request_priority.h"
10 #include "net/spdy/spdy_protocol.h"
12 namespace net {
14 // Construct a WebSocket over SPDY handshake request packet.
15 spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeRequestFrame(
16 const char* const headers[],
17 int header_count,
18 spdy::SpdyStreamId stream_id,
19 RequestPriority request_priority);
21 // Construct a WebSocket over SPDY handshake response packet.
22 spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeResponseFrame(
23 const char* const headers[],
24 int header_count,
25 spdy::SpdyStreamId stream_id,
26 RequestPriority request_priority);
28 // Construct a WebSocket over SPDY data packet.
29 spdy::SpdyFrame* ConstructSpdyWebSocketDataFrame(
30 const char* data,
31 int len,
32 spdy::SpdyStreamId stream_id,
33 bool fin);
35 } // namespace net
37 #endif // NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_