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

Side by Side Diff: net/spdy/spdy_websocket_test_util_spdy2.cc

Issue 11415219: Move a number of static variables SPDY to HttpNetworkSession::Params. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix flip_in_mem_edsm_server Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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 #include "net/spdy/spdy_websocket_test_util_spdy2.h" 5 #include "net/spdy/spdy_websocket_test_util_spdy2.h"
6 6
7 #include "net/spdy/buffered_spdy_framer.h" 7 #include "net/spdy/buffered_spdy_framer.h"
8 #include "net/spdy/spdy_http_utils.h" 8 #include "net/spdy/spdy_http_utils.h"
9 #include "net/spdy/spdy_test_util_spdy2.h" 9 #include "net/spdy/spdy_test_util_spdy2.h"
10 10
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 arraysize(kHeaders)); 142 arraysize(kHeaders));
143 } 143 }
144 144
145 SpdyFrame* ConstructSpdyWebSocketDataFrame( 145 SpdyFrame* ConstructSpdyWebSocketDataFrame(
146 const char* data, 146 const char* data,
147 int len, 147 int len,
148 SpdyStreamId stream_id, 148 SpdyStreamId stream_id,
149 bool fin) { 149 bool fin) {
150 150
151 // Construct SPDY data frame. 151 // Construct SPDY data frame.
152 BufferedSpdyFramer framer(2); 152 BufferedSpdyFramer framer(2, false);
153 return framer.CreateDataFrame( 153 return framer.CreateDataFrame(
154 stream_id, 154 stream_id,
155 data, 155 data,
156 len, 156 len,
157 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE); 157 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE);
158 } 158 }
159 159
160 } // namespace test_spdy2 160 } // namespace test_spdy2
161 161
162 } // namespace net 162 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream_spdy3_unittest.cc ('k') | net/spdy/spdy_websocket_test_util_spdy3.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698