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

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

Issue 215023002: Rename PrivateMode enum values: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 8 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.cc ('k') | net/http/http_request_info.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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 return new SSLSocketParams( 128 return new SSLSocketParams(
129 new TransportSocketParams( 129 new TransportSocketParams(
130 HostPortPair(kHttpsProxyHost, 443), 130 HostPortPair(kHttpsProxyHost, 443),
131 false, 131 false,
132 false, 132 false,
133 OnHostResolutionCallback()), 133 OnHostResolutionCallback()),
134 NULL, 134 NULL,
135 NULL, 135 NULL,
136 HostPortPair(kHttpsProxyHost, 443), 136 HostPortPair(kHttpsProxyHost, 443),
137 SSLConfig(), 137 SSLConfig(),
138 kPrivacyModeDisabled, 138 PRIVACY_MODE_DISABLED,
139 0, 139 0,
140 false, 140 false,
141 false); 141 false);
142 } 142 }
143 143
144 // Returns the a correctly constructed HttpProxyParms 144 // Returns the a correctly constructed HttpProxyParms
145 // for the HTTP or HTTPS proxy. 145 // for the HTTP or HTTPS proxy.
146 scoped_refptr<HttpProxySocketParams> CreateParams(bool tunnel) { 146 scoped_refptr<HttpProxySocketParams> CreateParams(bool tunnel) {
147 return scoped_refptr<HttpProxySocketParams>(new HttpProxySocketParams( 147 return scoped_refptr<HttpProxySocketParams>(new HttpProxySocketParams(
148 CreateHttpProxyParams(), 148 CreateHttpProxyParams(),
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 EXPECT_TRUE(headers->IsRedirect(&location)); 725 EXPECT_TRUE(headers->IsRedirect(&location));
726 EXPECT_EQ(location, redirectTarget); 726 EXPECT_EQ(location, redirectTarget);
727 } 727 }
728 } 728 }
729 729
730 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 730 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
731 731
732 } // namespace 732 } // namespace
733 733
734 } // namespace net 734 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/http/http_request_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698