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

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

Issue 289823002: SPDY4: SpdySession should send SETTINGS acknowledgements. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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_websocket_stream_unittest.cc ('k') | net/spdy/spdy_websocket_test_util.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_SPDY_WEBSOCKET_TEST_UTIL_H_ 5 #ifndef NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
6 #define NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_ 6 #define NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
7 7
8 #include "net/base/request_priority.h" 8 #include "net/base/request_priority.h"
9 #include "net/spdy/spdy_header_block.h" 9 #include "net/spdy/spdy_header_block.h"
10 #include "net/spdy/spdy_protocol.h" 10 #include "net/spdy/spdy_protocol.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool fin); 56 bool fin);
57 57
58 // Constructs a WebSocket over SPDY data packet. 58 // Constructs a WebSocket over SPDY data packet.
59 SpdyFrame* ConstructSpdyWebSocketDataFrame(const char* data, 59 SpdyFrame* ConstructSpdyWebSocketDataFrame(const char* data,
60 int len, 60 int len,
61 SpdyStreamId stream_id, 61 SpdyStreamId stream_id,
62 bool fin); 62 bool fin);
63 63
64 // Forwards to |spdy_util_|. 64 // Forwards to |spdy_util_|.
65 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings) const; 65 SpdyFrame* ConstructSpdySettings(const SettingsMap& settings) const;
66 SpdyFrame* ConstructSpdySettingsAck() const;
66 SpdyMajorVersion spdy_version() const; 67 SpdyMajorVersion spdy_version() const;
67 68
68 private: 69 private:
69 // Modify the header key based on the SPDY version and return it. 70 // Modify the header key based on the SPDY version and return it.
70 std::string GetHeaderKey(const std::string& key) const; 71 std::string GetHeaderKey(const std::string& key) const;
71 72
72 SpdyTestUtil spdy_util_; 73 SpdyTestUtil spdy_util_;
73 }; 74 };
74 75
75 } // namespace net 76 } // namespace net
76 77
77 #endif // NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_ 78 #endif // NET_SPDY_SPDY_WEBSOCKET_TEST_UTIL_H_
OLDNEW
« 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