OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_job.h" | 5 #include "net/websockets/websocket_job.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 | 270 |
271 transport_params_ = new net::TransportSocketParams(host_port_pair_, | 271 transport_params_ = new net::TransportSocketParams(host_port_pair_, |
272 net::MEDIUM, | 272 net::MEDIUM, |
273 false, | 273 false, |
274 false); | 274 false); |
275 net::ClientSocketHandle* connection = new net::ClientSocketHandle; | 275 net::ClientSocketHandle* connection = new net::ClientSocketHandle; |
276 EXPECT_EQ(net::OK, connection->Init(host_port_pair_.ToString(), | 276 EXPECT_EQ(net::OK, connection->Init(host_port_pair_.ToString(), |
277 transport_params_, | 277 transport_params_, |
278 net::MEDIUM, | 278 net::MEDIUM, |
279 NULL, | 279 NULL, |
280 http_session_->transport_socket_pool(), | 280 http_session_->GetTransportSocketPool(), |
281 net::BoundNetLog())); | 281 net::BoundNetLog())); |
282 EXPECT_EQ(net::OK, | 282 EXPECT_EQ(net::OK, |
283 session_->InitializeWithSocket(connection, false, net::OK)); | 283 session_->InitializeWithSocket(connection, false, net::OK)); |
284 } | 284 } |
285 virtual int CreateTransaction(scoped_ptr<net::HttpTransaction>* trans) { | 285 virtual int CreateTransaction(scoped_ptr<net::HttpTransaction>* trans) { |
286 NOTREACHED(); | 286 NOTREACHED(); |
287 return net::ERR_UNEXPECTED; | 287 return net::ERR_UNEXPECTED; |
288 } | 288 } |
289 virtual net::HttpCache* GetCache() { | 289 virtual net::HttpCache* GetCache() { |
290 NOTREACHED(); | 290 NOTREACHED(); |
(...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 | 1078 |
1079 TEST_F(WebSocketJobTest, ThrottlingSpdySpdyEnabled) { | 1079 TEST_F(WebSocketJobTest, ThrottlingSpdySpdyEnabled) { |
1080 WebSocketJob::set_websocket_over_spdy_enabled(true); | 1080 WebSocketJob::set_websocket_over_spdy_enabled(true); |
1081 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); | 1081 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); |
1082 } | 1082 } |
1083 | 1083 |
1084 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. | 1084 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. |
1085 // TODO(toyoshim,yutak): Add tests to verify closing handshake. | 1085 // TODO(toyoshim,yutak): Add tests to verify closing handshake. |
1086 | 1086 |
1087 } // namespace net | 1087 } // namespace net |
OLD | NEW |