| OLD | NEW |
| 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_spdy3.h" | 5 #include "net/spdy/spdy_websocket_test_util_spdy3.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_spdy3.h" | 9 #include "net/spdy/spdy_test_util_spdy3.h" |
| 10 | 10 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 arraysize(kHeaders)); | 145 arraysize(kHeaders)); |
| 146 } | 146 } |
| 147 | 147 |
| 148 SpdyFrame* ConstructSpdyWebSocketDataFrame( | 148 SpdyFrame* ConstructSpdyWebSocketDataFrame( |
| 149 const char* data, | 149 const char* data, |
| 150 int len, | 150 int len, |
| 151 SpdyStreamId stream_id, | 151 SpdyStreamId stream_id, |
| 152 bool fin) { | 152 bool fin) { |
| 153 | 153 |
| 154 // Construct SPDY data frame. | 154 // Construct SPDY data frame. |
| 155 BufferedSpdyFramer framer(3); | 155 BufferedSpdyFramer framer(3, false); |
| 156 return framer.CreateDataFrame( | 156 return framer.CreateDataFrame( |
| 157 stream_id, | 157 stream_id, |
| 158 data, | 158 data, |
| 159 len, | 159 len, |
| 160 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE); | 160 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace test_spdy3 | 163 } // namespace test_spdy3 |
| 164 | 164 |
| 165 } // namespace net | 165 } // namespace net |
| OLD | NEW |