| 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_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 Loading... |
| 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 |
| OLD | NEW |