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

Side by Side Diff: net/http/http_proxy_client_socket_pool_unittest.cc

Issue 3533013: net: plumb DnsRRResolver from IOThread to HttpNetworkSession. (Closed)
Patch Set: Created 10 years, 2 months 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 &tcp_client_socket_factory_), 52 &tcp_client_socket_factory_),
53 ssl_histograms_("MockSSL"), 53 ssl_histograms_("MockSSL"),
54 ssl_socket_pool_(kMaxSockets, kMaxSocketsPerGroup, 54 ssl_socket_pool_(kMaxSockets, kMaxSocketsPerGroup,
55 &ssl_histograms_, 55 &ssl_histograms_,
56 &tcp_client_socket_factory_, 56 &tcp_client_socket_factory_,
57 &tcp_socket_pool_), 57 &tcp_socket_pool_),
58 host_resolver_(new MockHostResolver), 58 host_resolver_(new MockHostResolver),
59 http_auth_handler_factory_( 59 http_auth_handler_factory_(
60 HttpAuthHandlerFactory::CreateDefault(host_resolver_.get())), 60 HttpAuthHandlerFactory::CreateDefault(host_resolver_.get())),
61 session_(new HttpNetworkSession(host_resolver_.get(), 61 session_(new HttpNetworkSession(host_resolver_.get(),
62 NULL /* dnsrr_resolver */,
62 ProxyService::CreateDirect(), 63 ProxyService::CreateDirect(),
63 &socket_factory_, 64 &socket_factory_,
64 new SSLConfigServiceDefaults, 65 new SSLConfigServiceDefaults,
65 new SpdySessionPool(NULL), 66 new SpdySessionPool(NULL),
66 http_auth_handler_factory_.get(), 67 http_auth_handler_factory_.get(),
67 NULL, 68 NULL,
68 NULL)), 69 NULL)),
69 http_proxy_histograms_("HttpProxyUnitTest"), 70 http_proxy_histograms_("HttpProxyUnitTest"),
70 pool_(kMaxSockets, kMaxSocketsPerGroup, 71 pool_(kMaxSockets, kMaxSocketsPerGroup,
71 &http_proxy_histograms_, 72 &http_proxy_histograms_,
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 EXPECT_EQ(ERR_TUNNEL_CONNECTION_FAILED, callback.WaitForResult()); 338 EXPECT_EQ(ERR_TUNNEL_CONNECTION_FAILED, callback.WaitForResult());
338 EXPECT_FALSE(handle.is_initialized()); 339 EXPECT_FALSE(handle.is_initialized());
339 EXPECT_FALSE(handle.socket()); 340 EXPECT_FALSE(handle.socket());
340 } 341 }
341 342
342 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 343 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
343 344
344 } // namespace 345 } // namespace
345 346
346 } // namespace net 347 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698