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

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

Issue 8572041: Make ClientSocketPoolManager into an interface. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix some straggler renames. Created 9 years, 1 month 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
« no previous file with comments | « net/spdy/spdy_websocket_stream_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) 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
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
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
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698