| 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/websockets/websocket_handshake_handler.h" | 5 #include "net/websockets/websocket_handshake_handler.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "googleurl/src/gurl.h" | |
| 10 #include "net/socket/next_proto.h" | 9 #include "net/socket/next_proto.h" |
| 11 #include "net/spdy/spdy_header_block.h" | 10 #include "net/spdy/spdy_header_block.h" |
| 12 #include "net/spdy/spdy_websocket_test_util.h" | 11 #include "net/spdy/spdy_websocket_test_util.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "url/gurl.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| 18 | 18 |
| 19 class WebSocketHandshakeHandlerSpdyTest | 19 class WebSocketHandshakeHandlerSpdyTest |
| 20 : public ::testing::Test, | 20 : public ::testing::Test, |
| 21 public ::testing::WithParamInterface<NextProto> { | 21 public ::testing::WithParamInterface<NextProto> { |
| 22 protected: | 22 protected: |
| 23 WebSocketHandshakeHandlerSpdyTest() : spdy_util_(GetParam()) {} | 23 WebSocketHandshakeHandlerSpdyTest() : spdy_util_(GetParam()) {} |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 "set-cookie: WK-websocket-test=1\r\n" | 181 "set-cookie: WK-websocket-test=1\r\n" |
| 182 "set-cookie: WK-websocket-test-httponly=1; HttpOnly\r\n" | 182 "set-cookie: WK-websocket-test-httponly=1; HttpOnly\r\n" |
| 183 "\r\n"; | 183 "\r\n"; |
| 184 | 184 |
| 185 EXPECT_EQ(kHandshakeResponseExpectedMessage, response_handler.GetResponse()); | 185 EXPECT_EQ(kHandshakeResponseExpectedMessage, response_handler.GetResponse()); |
| 186 } | 186 } |
| 187 | 187 |
| 188 } // namespace | 188 } // namespace |
| 189 | 189 |
| 190 } // namespace net | 190 } // namespace net |
| OLD | NEW |