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

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

Issue 14471023: Refactor pooled socket request code to prepare for implementation of pretend-to-preconnect. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't overload SSLSocketParams c-tor Created 7 years, 7 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
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/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 protected: 47 protected:
48 HttpProxyClientSocketPoolSpdy3Test() 48 HttpProxyClientSocketPoolSpdy3Test()
49 : ssl_config_(), 49 : ssl_config_(),
50 ignored_transport_socket_params_( 50 ignored_transport_socket_params_(
51 new TransportSocketParams(HostPortPair("proxy", 80), 51 new TransportSocketParams(HostPortPair("proxy", 80),
52 LOWEST, 52 LOWEST,
53 false, 53 false,
54 false, 54 false,
55 OnHostResolutionCallback())), 55 OnHostResolutionCallback())),
56 ignored_ssl_socket_params_( 56 ignored_ssl_socket_params_(
57 new SSLSocketParams(ignored_transport_socket_params_, 57 SSLSocketParams::CreateForDirectConnection(
58 NULL, 58 ignored_transport_socket_params_,
59 NULL, 59 HostPortPair("www.google.com", 443),
60 ProxyServer::SCHEME_DIRECT, 60 ssl_config_,
61 HostPortPair("www.google.com", 443), 61 0,
62 ssl_config_, 62 false,
63 0, 63 false)),
64 false,
65 false)),
66 tcp_histograms_("MockTCP"), 64 tcp_histograms_("MockTCP"),
67 transport_socket_pool_( 65 transport_socket_pool_(
68 kMaxSockets, 66 kMaxSockets,
69 kMaxSocketsPerGroup, 67 kMaxSocketsPerGroup,
70 &tcp_histograms_, 68 &tcp_histograms_,
71 session_deps_.deterministic_socket_factory.get()), 69 session_deps_.deterministic_socket_factory.get()),
72 ssl_histograms_("MockSSL"), 70 ssl_histograms_("MockSSL"),
73 ssl_socket_pool_(kMaxSockets, 71 ssl_socket_pool_(kMaxSockets,
74 kMaxSocketsPerGroup, 72 kMaxSocketsPerGroup,
75 &ssl_histograms_, 73 &ssl_histograms_,
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
600 // Make sure Location header was included and correct. 598 // Make sure Location header was included and correct.
601 std::string location; 599 std::string location;
602 EXPECT_TRUE(headers->IsRedirect(&location)); 600 EXPECT_TRUE(headers->IsRedirect(&location));
603 EXPECT_EQ(location, redirectTarget); 601 EXPECT_EQ(location, redirectTarget);
604 } 602 }
605 } 603 }
606 604
607 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 605 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
608 606
609 } // namespace net 607 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698