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

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

Issue 8944001: net: remove DNS certificate checking code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
« no previous file with comments | « net/http/http_proxy_client_socket_pool_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/http/http_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "net/base/cert_verifier.h" 10 #include "net/base/cert_verifier.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 267
268 template<> 268 template<>
269 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( 269 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool(
270 HostResolver* host_resolver, CertVerifier* /* cert_verifier */) 270 HostResolver* host_resolver, CertVerifier* /* cert_verifier */)
271 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL), 271 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL),
272 last_num_streams_(-1) {} 272 last_num_streams_(-1) {}
273 273
274 template<> 274 template<>
275 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool( 275 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool(
276 HostResolver* host_resolver, CertVerifier* cert_verifier) 276 HostResolver* host_resolver, CertVerifier* cert_verifier)
277 : SSLClientSocketPool(0, 0, NULL, host_resolver, cert_verifier, NULL, NULL, 277 : SSLClientSocketPool(0, 0, NULL, host_resolver, cert_verifier, NULL,
278 NULL, NULL, "", NULL, NULL, NULL, NULL, NULL, NULL), 278 NULL, NULL, "", NULL, NULL, NULL, NULL, NULL, NULL),
279 last_num_streams_(-1) {} 279 last_num_streams_(-1) {}
280 280
281 TEST(HttpStreamFactoryTest, PreconnectDirect) { 281 TEST(HttpStreamFactoryTest, PreconnectDirect) {
282 for (size_t i = 0; i < arraysize(kTests); ++i) { 282 for (size_t i = 0; i < arraysize(kTests); ++i) {
283 SessionDependencies session_deps(ProxyService::CreateDirect()); 283 SessionDependencies session_deps(ProxyService::CreateDirect());
284 scoped_refptr<HttpNetworkSession> session(CreateSession(&session_deps)); 284 scoped_refptr<HttpNetworkSession> session(CreateSession(&session_deps));
285 HttpNetworkSessionPeer peer(session); 285 HttpNetworkSessionPeer peer(session);
286 CapturePreconnectsTransportSocketPool* transport_conn_pool = 286 CapturePreconnectsTransportSocketPool* transport_conn_pool =
287 new CapturePreconnectsTransportSocketPool( 287 new CapturePreconnectsTransportSocketPool(
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 const ProxyRetryInfoMap& retry_info = 453 const ProxyRetryInfoMap& retry_info =
454 session->proxy_service()->proxy_retry_info(); 454 session->proxy_service()->proxy_retry_info();
455 EXPECT_EQ(1u, retry_info.size()); 455 EXPECT_EQ(1u, retry_info.size());
456 ProxyRetryInfoMap::const_iterator iter = retry_info.find("bad:99"); 456 ProxyRetryInfoMap::const_iterator iter = retry_info.find("bad:99");
457 EXPECT_TRUE(iter != retry_info.end()); 457 EXPECT_TRUE(iter != retry_info.end());
458 } 458 }
459 459
460 } // namespace 460 } // namespace
461 461
462 } // namespace net 462 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698