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

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

Issue 9959033: Move NextProto enum to a new file net/socket/next_proto.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address wtc's comments Created 8 years, 8 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::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
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
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