| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettingsAck() const { | 98 SpdyFrame* SpdyWebSocketTestUtil::ConstructSpdySettingsAck() const { |
| 99 return spdy_util_.ConstructSpdySettingsAck(); | 99 return spdy_util_.ConstructSpdySettingsAck(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 SpdyMajorVersion SpdyWebSocketTestUtil::spdy_version() const { | 102 SpdyMajorVersion SpdyWebSocketTestUtil::spdy_version() const { |
| 103 return spdy_util_.spdy_version(); | 103 return spdy_util_.spdy_version(); |
| 104 } | 104 } |
| 105 | 105 |
| 106 std::string SpdyWebSocketTestUtil::GetHeaderKey( | 106 std::string SpdyWebSocketTestUtil::GetHeaderKey( |
| 107 const std::string& key) const { | 107 const std::string& key) const { |
| 108 return (spdy_util_.is_spdy2() ? "" : ":") + key; | 108 return ":" + key; |
| 109 } | 109 } |
| 110 | 110 |
| 111 } // namespace net | 111 } // namespace net |
| OLD | NEW |