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

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

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 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
« no previous file with comments | « net/http/http_proxy_client_socket_pool_spdy3_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) 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_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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool stream_done_; 111 bool stream_done_;
112 scoped_ptr<HttpStream> stream_; 112 scoped_ptr<HttpStream> stream_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(StreamRequestWaiter); 114 DISALLOW_COPY_AND_ASSIGN(StreamRequestWaiter);
115 }; 115 };
116 116
117 struct SessionDependencies { 117 struct SessionDependencies {
118 // Custom proxy service dependency. 118 // Custom proxy service dependency.
119 explicit SessionDependencies(ProxyService* proxy_service) 119 explicit SessionDependencies(ProxyService* proxy_service)
120 : host_resolver(new MockHostResolver), 120 : host_resolver(new MockHostResolver),
121 cert_verifier(new CertVerifier), 121 cert_verifier(CertVerifier::CreateDefault()),
122 proxy_service(proxy_service), 122 proxy_service(proxy_service),
123 ssl_config_service(new SSLConfigServiceDefaults), 123 ssl_config_service(new SSLConfigServiceDefaults),
124 http_auth_handler_factory( 124 http_auth_handler_factory(
125 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())), 125 HttpAuthHandlerFactory::CreateDefault(host_resolver.get())),
126 net_log(NULL) {} 126 net_log(NULL) {}
127 127
128 scoped_ptr<MockHostResolverBase> host_resolver; 128 scoped_ptr<MockHostResolverBase> host_resolver;
129 scoped_ptr<CertVerifier> cert_verifier; 129 scoped_ptr<CertVerifier> cert_verifier;
130 scoped_ptr<ProxyService> proxy_service; 130 scoped_ptr<ProxyService> proxy_service;
131 scoped_refptr<SSLConfigService> ssl_config_service; 131 scoped_refptr<SSLConfigService> ssl_config_service;
(...skipping 321 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_spdy3_unittest.cc ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698