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

Unified Diff: net/spdy/spdy_websocket_test_util.h

Issue 7312005: WebSocket over SPDY: Move common test functions into separated file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase on lkgr Created 9 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/spdy/spdy_websocket_stream_unittest.cc ('k') | net/spdy/spdy_websocket_test_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_websocket_test_util.h
diff --git a/net/spdy/spdy_websocket_test_util.h b/net/spdy/spdy_websocket_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c16d07e747bf2faa8937b09376788375d09ae69
--- /dev/null
+++ b/net/spdy/spdy_websocket_test_util.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
+#define NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
+#pragma once
+
+#include "net/base/request_priority.h"
+#include "net/spdy/spdy_protocol.h"
+
+namespace net {
+
+// Construct a WebSocket over SPDY handshake request packet.
+spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeRequestFrame(
+ const char* const headers[],
+ int header_count,
+ spdy::SpdyStreamId stream_id,
+ RequestPriority request_priority);
+
+// Construct a WebSocket over SPDY handshake response packet.
+spdy::SpdyFrame* ConstructSpdyWebSocketHandshakeResponseFrame(
+ const char* const headers[],
+ int header_count,
+ spdy::SpdyStreamId stream_id,
+ RequestPriority request_priority);
+
+// Construct a WebSocket over SPDY data packet.
+spdy::SpdyFrame* ConstructSpdyWebSocketDataFrame(
+ const char* data,
+ int len,
+ spdy::SpdyStreamId stream_id,
+ bool fin);
+
+} // namespace net
+
+#endif // NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
« no previous file with comments | « net/spdy/spdy_websocket_stream_unittest.cc ('k') | net/spdy/spdy_websocket_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698