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

Side by Side Diff: net/http/http_proxy_client_socket_pool_spdy2_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 HttpProxyClientSocketPoolSpdy2Test() 48 HttpProxyClientSocketPoolSpdy2Test()
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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 // Make sure Location header was included and correct. 597 // Make sure Location header was included and correct.
600 std::string location; 598 std::string location;
601 EXPECT_TRUE(headers->IsRedirect(&location)); 599 EXPECT_TRUE(headers->IsRedirect(&location));
602 EXPECT_EQ(location, redirectTarget); 600 EXPECT_EQ(location, redirectTarget);
603 } 601 }
604 } 602 }
605 603
606 // It would be nice to also test the timeouts in HttpProxyClientSocketPool. 604 // It would be nice to also test the timeouts in HttpProxyClientSocketPool.
607 605
608 } // namespace net 606 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool_spdy3_unittest.cc » ('j') | net/socket/client_socket_pool_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698