| OLD | NEW |
| 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/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1252 EXPECT_FALSE(handle.socket()); | 1252 EXPECT_FALSE(handle.socket()); |
| 1253 EXPECT_FALSE(handle.is_ssl_error()); | 1253 EXPECT_FALSE(handle.is_ssl_error()); |
| 1254 const HttpResponseInfo& tunnel_info = handle.ssl_error_response_info(); | 1254 const HttpResponseInfo& tunnel_info = handle.ssl_error_response_info(); |
| 1255 EXPECT_EQ(tunnel_info.headers->response_code(), 407); | 1255 EXPECT_EQ(tunnel_info.headers->response_code(), 407); |
| 1256 scoped_ptr<ClientSocketHandle> tunnel_handle( | 1256 scoped_ptr<ClientSocketHandle> tunnel_handle( |
| 1257 handle.release_pending_http_proxy_connection()); | 1257 handle.release_pending_http_proxy_connection()); |
| 1258 EXPECT_TRUE(tunnel_handle->socket()); | 1258 EXPECT_TRUE(tunnel_handle->socket()); |
| 1259 EXPECT_FALSE(tunnel_handle->socket()->IsConnected()); | 1259 EXPECT_FALSE(tunnel_handle->socket()->IsConnected()); |
| 1260 } | 1260 } |
| 1261 | 1261 |
| 1262 // TODO(rch): re-enable this. | 1262 TEST_P(SSLClientSocketPoolTest, IPPooling) { |
| 1263 TEST_P(SSLClientSocketPoolTest, DISABLED_IPPooling) { | |
| 1264 const int kTestPort = 80; | 1263 const int kTestPort = 80; |
| 1265 struct TestHosts { | 1264 struct TestHosts { |
| 1266 std::string name; | 1265 std::string name; |
| 1267 std::string iplist; | 1266 std::string iplist; |
| 1268 SpdySessionKey key; | 1267 SpdySessionKey key; |
| 1269 AddressList addresses; | 1268 AddressList addresses; |
| 1270 } test_hosts[] = { | 1269 } test_hosts[] = { |
| 1271 { "www.webkit.org", "192.0.2.33,192.168.0.1,192.168.0.5" }, | 1270 { "www.webkit.org", "192.0.2.33,192.168.0.1,192.168.0.5" }, |
| 1272 { "code.google.com", "192.168.0.2,192.168.0.3,192.168.0.5" }, | 1271 { "code.google.com", "192.168.0.2,192.168.0.3,192.168.0.5" }, |
| 1273 { "js.webkit.org", "192.168.0.4,192.168.0.1,192.0.2.33" }, | 1272 { "js.webkit.org", "192.168.0.4,192.168.0.1,192.0.2.33" }, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1391 ssl.channel_id_sent = true; | 1390 ssl.channel_id_sent = true; |
| 1392 ssl.SetNextProto(GetParam()); | 1391 ssl.SetNextProto(GetParam()); |
| 1393 TestIPPoolingDisabled(&ssl); | 1392 TestIPPoolingDisabled(&ssl); |
| 1394 } | 1393 } |
| 1395 | 1394 |
| 1396 // It would be nice to also test the timeouts in SSLClientSocketPool. | 1395 // It would be nice to also test the timeouts in SSLClientSocketPool. |
| 1397 | 1396 |
| 1398 } // namespace | 1397 } // namespace |
| 1399 | 1398 |
| 1400 } // namespace net | 1399 } // namespace net |
| OLD | NEW |