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