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

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

Issue 112963005: Update uses of UTF conversions in courgette/, device/, extensions/, google_apis/, gpu/, ipc/, media… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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/proxy/proxy_service_unittest.cc ('k') | net/socket_stream/socket_stream_unittest.cc » ('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_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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL, 159 proxy == ProxyServer::SCHEME_HTTP ? http_proxy_socket_params_ : NULL,
160 HostPortPair("host", 443), 160 HostPortPair("host", 443),
161 ssl_config_, 161 ssl_config_,
162 kPrivacyModeDisabled, 162 kPrivacyModeDisabled,
163 0, 163 0,
164 false, 164 false,
165 want_spdy_over_npn)); 165 want_spdy_over_npn));
166 } 166 }
167 167
168 void AddAuthToCache() { 168 void AddAuthToCache() {
169 const base::string16 kFoo(ASCIIToUTF16("foo")); 169 const base::string16 kFoo(base::ASCIIToUTF16("foo"));
170 const base::string16 kBar(ASCIIToUTF16("bar")); 170 const base::string16 kBar(base::ASCIIToUTF16("bar"));
171 session_->http_auth_cache()->Add(GURL("http://proxy:443/"), 171 session_->http_auth_cache()->Add(GURL("http://proxy:443/"),
172 "MyRealm1", 172 "MyRealm1",
173 HttpAuth::AUTH_SCHEME_BASIC, 173 HttpAuth::AUTH_SCHEME_BASIC,
174 "Basic realm=MyRealm1", 174 "Basic realm=MyRealm1",
175 AuthCredentials(kFoo, kBar), 175 AuthCredentials(kFoo, kBar),
176 "/"); 176 "/");
177 } 177 }
178 178
179 HttpNetworkSession* CreateNetworkSession() { 179 HttpNetworkSession* CreateNetworkSession() {
180 HttpNetworkSession::Params params; 180 HttpNetworkSession::Params params;
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 ssl.channel_id_sent = true; 930 ssl.channel_id_sent = true;
931 ssl.SetNextProto(GetParam()); 931 ssl.SetNextProto(GetParam());
932 TestIPPoolingDisabled(&ssl); 932 TestIPPoolingDisabled(&ssl);
933 } 933 }
934 934
935 // It would be nice to also test the timeouts in SSLClientSocketPool. 935 // It would be nice to also test the timeouts in SSLClientSocketPool.
936 936
937 } // namespace 937 } // namespace
938 938
939 } // namespace net 939 } // namespace net
OLDNEW
« no previous file with comments | « net/proxy/proxy_service_unittest.cc ('k') | net/socket_stream/socket_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698