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

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

Issue 2899313006: Plumb NQP to context and to http_proxy_client_socket_pool (Closed)
Patch Set: mmenke comments Created 3 years, 6 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) 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/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 HostPortPair("host", 80), 120 HostPortPair("host", 80),
121 session_->http_auth_cache(), 121 session_->http_auth_cache(),
122 session_->http_auth_handler_factory(), 122 session_->http_auth_handler_factory(),
123 session_->spdy_session_pool(), 123 session_->spdy_session_pool(),
124 true, 124 true,
125 NULL)), 125 NULL)),
126 http_proxy_socket_pool_(kMaxSockets, 126 http_proxy_socket_pool_(kMaxSockets,
127 kMaxSocketsPerGroup, 127 kMaxSocketsPerGroup,
128 &transport_socket_pool_, 128 &transport_socket_pool_,
129 NULL, 129 NULL,
130 NULL,
130 NULL) { 131 NULL) {
131 scoped_refptr<SSLConfigService> ssl_config_service( 132 scoped_refptr<SSLConfigService> ssl_config_service(
132 new SSLConfigServiceDefaults); 133 new SSLConfigServiceDefaults);
133 ssl_config_service->GetSSLConfig(&ssl_config_); 134 ssl_config_service->GetSSLConfig(&ssl_config_);
134 } 135 }
135 136
136 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) { 137 void CreatePool(bool transport_pool, bool http_proxy_pool, bool socks_pool) {
137 pool_.reset(new SSLClientSocketPool( 138 pool_.reset(new SSLClientSocketPool(
138 kMaxSockets, kMaxSocketsPerGroup, cert_verifier_.get(), 139 kMaxSockets, kMaxSocketsPerGroup, cert_verifier_.get(),
139 NULL /* channel_id_service */, transport_security_state_.get(), 140 NULL /* channel_id_service */, transport_security_state_.get(),
(...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 ssl.channel_id_sent = true; 938 ssl.channel_id_sent = true;
938 ssl.next_proto = kProtoHTTP2; 939 ssl.next_proto = kProtoHTTP2;
939 TestIPPoolingDisabled(&ssl); 940 TestIPPoolingDisabled(&ssl);
940 } 941 }
941 942
942 // It would be nice to also test the timeouts in SSLClientSocketPool. 943 // It would be nice to also test the timeouts in SSLClientSocketPool.
943 944
944 } // namespace 945 } // namespace
945 946
946 } // namespace net 947 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698