Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: net/websockets/websocket_job_spdy3_unittest.cc

Issue 9618002: SPDY - integration of spdy/3 code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/websockets/websocket_job_spdy2_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/websockets/websocket_job_spdy2_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698