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

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

Issue 4339001: Correctly handle SSL Client Authentication requests when connecting... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy, 109 scoped_refptr<SSLSocketParams> SSLParams(ProxyServer::Scheme proxy,
110 bool want_spdy_over_npn) { 110 bool want_spdy_over_npn) {
111 return make_scoped_refptr(new SSLSocketParams( 111 return make_scoped_refptr(new SSLSocketParams(
112 proxy == ProxyServer::SCHEME_DIRECT ? direct_tcp_socket_params_ : NULL, 112 proxy == ProxyServer::SCHEME_DIRECT ? direct_tcp_socket_params_ : NULL,
113 proxy == ProxyServer::SCHEME_SOCKS5 ? socks_socket_params_ : NULL, 113 proxy == ProxyServer::SCHEME_SOCKS5 ? socks_socket_params_ : NULL,
114 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL, 114 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL,
115 proxy, 115 proxy,
116 "host", 116 "host",
117 443,
117 ssl_config_, 118 ssl_config_,
118 0, 119 0,
119 false, 120 false,
120 want_spdy_over_npn)); 121 want_spdy_over_npn));
121 } 122 }
122 123
123 void AddAuthToCache() { 124 void AddAuthToCache() {
124 const string16 kFoo(ASCIIToUTF16("foo")); 125 const string16 kFoo(ASCIIToUTF16("foo"));
125 const string16 kBar(ASCIIToUTF16("bar")); 126 const string16 kBar(ASCIIToUTF16("bar"));
126 session_->auth_cache()->Add(GURL("http://proxy:443/"), "MyRealm1", "Basic", 127 session_->auth_cache()->Add(GURL("http://proxy:443/"), "MyRealm1", "Basic",
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 handle.release_pending_http_proxy_connection()); 632 handle.release_pending_http_proxy_connection());
632 EXPECT_TRUE(tunnel_handle->socket()); 633 EXPECT_TRUE(tunnel_handle->socket());
633 EXPECT_FALSE(tunnel_handle->socket()->IsConnected()); 634 EXPECT_FALSE(tunnel_handle->socket()->IsConnected());
634 } 635 }
635 636
636 // It would be nice to also test the timeouts in SSLClientSocketPool. 637 // It would be nice to also test the timeouts in SSLClientSocketPool.
637 638
638 } // namespace 639 } // namespace
639 640
640 } // namespace net 641 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698