| OLD | NEW |
| 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/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "net/base/address_list.h" | 10 #include "net/base/address_list.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocketTest); | 125 DISALLOW_COPY_AND_ASSIGN(SpdyProxyClientSocketTest); |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() | 128 SpdyProxyClientSocketTest::SpdyProxyClientSocketTest() |
| 129 : sock_(NULL), | 129 : sock_(NULL), |
| 130 data_(NULL), | 130 data_(NULL), |
| 131 session_(NULL), | 131 session_(NULL), |
| 132 read_buf_(NULL), | 132 read_buf_(NULL), |
| 133 session_deps_(), | 133 session_deps_(), |
| 134 connect_data_(false, OK), | 134 connect_data_(SYNCHRONOUS, OK), |
| 135 spdy_session_(NULL), | 135 spdy_session_(NULL), |
| 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_, |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 write_callback_.callback())); | 1291 write_callback_.callback())); |
| 1292 | 1292 |
| 1293 Run(2); | 1293 Run(2); |
| 1294 | 1294 |
| 1295 EXPECT_FALSE(sock_.get()); | 1295 EXPECT_FALSE(sock_.get()); |
| 1296 EXPECT_TRUE(read_callback.have_result()); | 1296 EXPECT_TRUE(read_callback.have_result()); |
| 1297 EXPECT_FALSE(write_callback_.have_result()); | 1297 EXPECT_FALSE(write_callback_.have_result()); |
| 1298 } | 1298 } |
| 1299 | 1299 |
| 1300 } // namespace net | 1300 } // namespace net |
| OLD | NEW |