| OLD | NEW |
| 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 #include "net/spdy/spdy_websocket_test_util.h" | 5 #include "net/spdy/spdy_websocket_test_util.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 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 data, | 143 data, |
| 144 len, | 144 len, |
| 145 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE); | 145 fin ? DATA_FLAG_FIN : DATA_FLAG_NONE); |
| 146 } | 146 } |
| 147 | 147 |
| 148 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettings( | 148 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettings( |
| 149 const SettingsMap& settings) const { | 149 const SettingsMap& settings) const { |
| 150 return spdy_util_.ConstructSpdySettings(settings); | 150 return spdy_util_.ConstructSpdySettings(settings); |
| 151 } | 151 } |
| 152 | 152 |
| 153 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettingsAck() const { |
| 154 return spdy_util_.ConstructSpdySettingsAck(); |
| 155 } |
| 156 |
| 153 SpdyMajorVersion SpdyWebSocketTestUtil::spdy_version() const { | 157 SpdyMajorVersion SpdyWebSocketTestUtil::spdy_version() const { |
| 154 return spdy_util_.spdy_version(); | 158 return spdy_util_.spdy_version(); |
| 155 } | 159 } |
| 156 | 160 |
| 157 std::string SpdyWebSocketTestUtil::GetHeaderKey( | 161 std::string SpdyWebSocketTestUtil::GetHeaderKey( |
| 158 const std::string& key) const { | 162 const std::string& key) const { |
| 159 return (spdy_util_.is_spdy2() ? "" : ":") + key; | 163 return (spdy_util_.is_spdy2() ? "" : ":") + key; |
| 160 } | 164 } |
| 161 | 165 |
| 162 } // namespace net | 166 } // namespace net |
| OLD | NEW |