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

Side by Side Diff: net/socket/ssl_client_socket_pool_unittest.cc

Issue 3417010: Integrate the SpdyProxyClientSocket into the HttpStreamRequest... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Rebasing again 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 | Annotate | Revision Log
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/time.h" 10 #include "base/time.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 socks_socket_pool_( 64 socks_socket_pool_(
65 kMaxSockets, 65 kMaxSockets,
66 kMaxSocketsPerGroup, 66 kMaxSocketsPerGroup,
67 &socks_histograms_, 67 &socks_histograms_,
68 &tcp_socket_pool_), 68 &tcp_socket_pool_),
69 http_proxy_socket_params_(new HttpProxySocketParams( 69 http_proxy_socket_params_(new HttpProxySocketParams(
70 proxy_tcp_socket_params_, NULL, GURL("http://host"), "", 70 proxy_tcp_socket_params_, NULL, GURL("http://host"), "",
71 HostPortPair("host", 80), 71 HostPortPair("host", 80),
72 session_->auth_cache(), 72 session_->auth_cache(),
73 session_->http_auth_handler_factory(), 73 session_->http_auth_handler_factory(),
74 session_->spdy_session_pool(),
75 session_->mutable_spdy_settings(),
74 true)), 76 true)),
75 http_proxy_histograms_("MockHttpProxy"), 77 http_proxy_histograms_("MockHttpProxy"),
76 http_proxy_socket_pool_( 78 http_proxy_socket_pool_(
77 kMaxSockets, 79 kMaxSockets,
78 kMaxSocketsPerGroup, 80 kMaxSocketsPerGroup,
79 &http_proxy_histograms_, 81 &http_proxy_histograms_,
80 host_resolver_.get(), 82 host_resolver_.get(),
81 &tcp_socket_pool_, 83 &tcp_socket_pool_,
82 NULL, 84 NULL,
83 NULL) { 85 NULL) {
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 handle.release_pending_http_proxy_connection()); 629 handle.release_pending_http_proxy_connection());
628 EXPECT_TRUE(tunnel_handle->socket()); 630 EXPECT_TRUE(tunnel_handle->socket());
629 EXPECT_FALSE(tunnel_handle->socket()->IsConnected()); 631 EXPECT_FALSE(tunnel_handle->socket()->IsConnected());
630 } 632 }
631 633
632 // It would be nice to also test the timeouts in SSLClientSocketPool. 634 // It would be nice to also test the timeouts in SSLClientSocketPool.
633 635
634 } // namespace 636 } // namespace
635 637
636 } // namespace net 638 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698