| 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_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/bind.h" | 10 #include "base/bind.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 net::HostPortPair host_port_pair_; | 312 net::HostPortPair host_port_pair_; |
| 313 net::HostPortProxyPair host_port_proxy_pair_; | 313 net::HostPortProxyPair host_port_proxy_pair_; |
| 314 }; | 314 }; |
| 315 } // namespace | 315 } // namespace |
| 316 | 316 |
| 317 namespace net { | 317 namespace net { |
| 318 | 318 |
| 319 class WebSocketJobSpdy3Test : public PlatformTest { | 319 class WebSocketJobSpdy3Test : public PlatformTest { |
| 320 public: | 320 public: |
| 321 virtual void SetUp() { | 321 virtual void SetUp() { |
| 322 SpdySession::set_default_protocol(SSLClientSocket::kProtoSPDY3); | 322 SpdySession::set_default_protocol(kProtoSPDY3); |
| 323 stream_type_ = STREAM_INVALID; | 323 stream_type_ = STREAM_INVALID; |
| 324 cookie_store_ = new MockCookieStore; | 324 cookie_store_ = new MockCookieStore; |
| 325 context_ = new MockURLRequestContext(cookie_store_.get()); | 325 context_ = new MockURLRequestContext(cookie_store_.get()); |
| 326 } | 326 } |
| 327 virtual void TearDown() { | 327 virtual void TearDown() { |
| 328 cookie_store_ = NULL; | 328 cookie_store_ = NULL; |
| 329 context_ = NULL; | 329 context_ = NULL; |
| 330 websocket_ = NULL; | 330 websocket_ = NULL; |
| 331 socket_ = NULL; | 331 socket_ = NULL; |
| 332 } | 332 } |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 | 1094 |
| 1095 TEST_F(WebSocketJobSpdy3Test, ThrottlingSpdySpdyEnabled) { | 1095 TEST_F(WebSocketJobSpdy3Test, ThrottlingSpdySpdyEnabled) { |
| 1096 WebSocketJob::set_websocket_over_spdy_enabled(true); | 1096 WebSocketJob::set_websocket_over_spdy_enabled(true); |
| 1097 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); | 1097 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); |
| 1098 } | 1098 } |
| 1099 | 1099 |
| 1100 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. | 1100 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. |
| 1101 // TODO(toyoshim,yutak): Add tests to verify closing handshake. | 1101 // TODO(toyoshim,yutak): Add tests to verify closing handshake. |
| 1102 | 1102 |
| 1103 } // namespace net | 1103 } // namespace net |
| OLD | NEW |