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

Side by Side Diff: net/spdy/spdy_proxy_client_socket_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_http_stream_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | 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/spdy/spdy_proxy_client_socket.h" 5 #include "net/spdy/spdy_proxy_client_socket.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "net/base/address_list.h" 8 #include "net/base/address_list.h"
9 #include "net/base/net_log.h" 9 #include "net/base/net_log.h"
10 #include "net/base/net_log_unittest.h" 10 #include "net/base/net_log_unittest.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 spdy_stream_(NULL), 136 spdy_stream_(NULL),
137 framer_(), 137 framer_(),
138 user_agent_(kUserAgent), 138 user_agent_(kUserAgent),
139 url_(kUrl), 139 url_(kUrl),
140 proxy_host_port_(kProxyHost, kProxyPort), 140 proxy_host_port_(kProxyHost, kProxyPort),
141 endpoint_host_port_pair_(kOriginHost, kOriginPort), 141 endpoint_host_port_pair_(kOriginHost, kOriginPort),
142 proxy_(ProxyServer::SCHEME_HTTPS, proxy_host_port_), 142 proxy_(ProxyServer::SCHEME_HTTPS, proxy_host_port_),
143 endpoint_host_port_proxy_pair_(endpoint_host_port_pair_, proxy_), 143 endpoint_host_port_proxy_pair_(endpoint_host_port_pair_, proxy_),
144 transport_params_(new TransportSocketParams(proxy_host_port_, 144 transport_params_(new TransportSocketParams(proxy_host_port_,
145 LOWEST, 145 LOWEST,
146 url_,
147 false, 146 false,
148 false)) { 147 false)) {
149 } 148 }
150 149
151 void SpdyProxyClientSocketTest::TearDown() { 150 void SpdyProxyClientSocketTest::TearDown() {
152 if (session_ != NULL) 151 if (session_ != NULL)
153 session_->spdy_session_pool()->CloseAllSessions(); 152 session_->spdy_session_pool()->CloseAllSessions();
154 153
155 spdy::SpdyFramer::set_enable_compression_default(true); 154 spdy::SpdyFramer::set_enable_compression_default(true);
156 // Empty the current queue. 155 // Empty the current queue.
(...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 scoped_refptr<IOBuffer> buf(new IOBuffer(kLen1)); 1162 scoped_refptr<IOBuffer> buf(new IOBuffer(kLen1));
1164 ASSERT_EQ(ERR_IO_PENDING, sock_->Read(buf, kLen1, &read_callback_)); 1163 ASSERT_EQ(ERR_IO_PENDING, sock_->Read(buf, kLen1, &read_callback_));
1165 1164
1166 sock_->Disconnect(); 1165 sock_->Disconnect();
1167 1166
1168 EXPECT_FALSE(sock_->IsConnected()); 1167 EXPECT_FALSE(sock_->IsConnected());
1169 EXPECT_FALSE(read_callback_.have_result()); 1168 EXPECT_FALSE(read_callback_.have_result());
1170 } 1169 }
1171 1170
1172 } // namespace net 1171 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_session_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698