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

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

Issue 8572018: Remove referrer from TransportSocketParams and SOCKSSocketParams. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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 | Annotate | Revision Log
« 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 net::SpdySessionPool* spdy_session_pool = 263 net::SpdySessionPool* spdy_session_pool =
264 http_session_->spdy_session_pool(); 264 http_session_->spdy_session_pool();
265 DCHECK(spdy_session_pool); 265 DCHECK(spdy_session_pool);
266 EXPECT_FALSE(spdy_session_pool->HasSession(host_port_proxy_pair_)); 266 EXPECT_FALSE(spdy_session_pool->HasSession(host_port_proxy_pair_));
267 session_ = 267 session_ =
268 spdy_session_pool->Get(host_port_proxy_pair_, net::BoundNetLog()); 268 spdy_session_pool->Get(host_port_proxy_pair_, net::BoundNetLog());
269 EXPECT_TRUE(spdy_session_pool->HasSession(host_port_proxy_pair_)); 269 EXPECT_TRUE(spdy_session_pool->HasSession(host_port_proxy_pair_));
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 GURL(),
274 false, 273 false,
275 false); 274 false);
276 net::ClientSocketHandle* connection = new net::ClientSocketHandle; 275 net::ClientSocketHandle* connection = new net::ClientSocketHandle;
277 EXPECT_EQ(net::OK, connection->Init(host_port_pair_.ToString(), 276 EXPECT_EQ(net::OK, connection->Init(host_port_pair_.ToString(),
278 transport_params_, 277 transport_params_,
279 net::MEDIUM, 278 net::MEDIUM,
280 NULL, 279 NULL,
281 http_session_->transport_socket_pool(), 280 http_session_->transport_socket_pool(),
282 net::BoundNetLog())); 281 net::BoundNetLog()));
283 EXPECT_EQ(net::OK, 282 EXPECT_EQ(net::OK,
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 1078
1080 TEST_F(WebSocketJobTest, ThrottlingSpdySpdyEnabled) { 1079 TEST_F(WebSocketJobTest, ThrottlingSpdySpdyEnabled) {
1081 WebSocketJob::set_websocket_over_spdy_enabled(true); 1080 WebSocketJob::set_websocket_over_spdy_enabled(true);
1082 TestConnectBySpdy(SPDY_ON, THROTTLING_ON); 1081 TestConnectBySpdy(SPDY_ON, THROTTLING_ON);
1083 } 1082 }
1084 1083
1085 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation. 1084 // TODO(toyoshim): Add tests to verify throttling, SPDY stream limitation.
1086 // TODO(toyoshim,yutak): Add tests to verify closing handshake. 1085 // TODO(toyoshim,yutak): Add tests to verify closing handshake.
1087 1086
1088 } // 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