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

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

Issue 851503003: Update from https://crrev.com/311076 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/http/http_response_info.h » ('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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 BoundNetLog().net_log()), 182 BoundNetLog().net_log()),
183 session_(CreateNetworkSession()), 183 session_(CreateNetworkSession()),
184 http_proxy_histograms_("HttpProxyUnitTest"), 184 http_proxy_histograms_("HttpProxyUnitTest"),
185 spdy_util_(GetParam().protocol), 185 spdy_util_(GetParam().protocol),
186 pool_(kMaxSockets, 186 pool_(kMaxSockets,
187 kMaxSocketsPerGroup, 187 kMaxSocketsPerGroup,
188 &http_proxy_histograms_, 188 &http_proxy_histograms_,
189 NULL, 189 NULL,
190 &transport_socket_pool_, 190 &transport_socket_pool_,
191 &ssl_socket_pool_, 191 &ssl_socket_pool_,
192 NULL,
193 NULL) {} 192 NULL) {}
194 193
195 virtual ~HttpProxyClientSocketPoolTest() { 194 virtual ~HttpProxyClientSocketPoolTest() {
196 } 195 }
197 196
198 void AddAuthToCache() { 197 void AddAuthToCache() {
199 const base::string16 kFoo(base::ASCIIToUTF16("foo")); 198 const base::string16 kFoo(base::ASCIIToUTF16("foo"));
200 const base::string16 kBar(base::ASCIIToUTF16("bar")); 199 const base::string16 kBar(base::ASCIIToUTF16("bar"));
201 GURL proxy_url(GetParam().proxy_type == HTTP ? 200 GURL proxy_url(GetParam().proxy_type == HTTP ?
202 (std::string("http://") + kHttpProxyHost) : 201 (std::string("http://") + kHttpProxyHost) :
(...skipping 643 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 EXPECT_TRUE(headers->IsRedirect(&location)); 845 EXPECT_TRUE(headers->IsRedirect(&location));
847 EXPECT_EQ(location, redirectTarget); 846 EXPECT_EQ(location, redirectTarget);
848 } 847 }
849 } 848 }
850 849
851 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 850 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
852 851
853 } // namespace 852 } // namespace
854 853
855 } // namespace net 854 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool.cc ('k') | net/http/http_response_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698