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

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

Issue 517693002: Add embedder-specific headers to HTTP CONNECT tunnel request (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reworked HaveAuth test Created 6 years, 3 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_unittest.cc ('k') | net/net.gypi » ('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_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 387
388 template<typename ParentPool> 388 template<typename ParentPool>
389 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool( 389 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool(
390 HostResolver* host_resolver, CertVerifier* /* cert_verifier */) 390 HostResolver* host_resolver, CertVerifier* /* cert_verifier */)
391 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL), 391 : ParentPool(0, 0, NULL, host_resolver, NULL, NULL),
392 last_num_streams_(-1) {} 392 last_num_streams_(-1) {}
393 393
394 template<> 394 template<>
395 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( 395 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool(
396 HostResolver* host_resolver, CertVerifier* /* cert_verifier */) 396 HostResolver* host_resolver, CertVerifier* /* cert_verifier */)
397 : HttpProxyClientSocketPool(0, 0, NULL, host_resolver, NULL, NULL, NULL), 397 : HttpProxyClientSocketPool(
398 0, 0, NULL, host_resolver, NULL, NULL, NULL, NULL),
398 last_num_streams_(-1) {} 399 last_num_streams_(-1) {}
399 400
400 template <> 401 template <>
401 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool( 402 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool(
402 HostResolver* host_resolver, 403 HostResolver* host_resolver,
403 CertVerifier* cert_verifier) 404 CertVerifier* cert_verifier)
404 : SSLClientSocketPool(0, 405 : SSLClientSocketPool(0,
405 0, 406 0,
406 NULL, // ssl_histograms 407 NULL, // ssl_histograms
407 host_resolver, 408 host_resolver,
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 1308 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
1308 1309
1309 // Make sure there is no orphaned job. it is already canceled. 1310 // Make sure there is no orphaned job. it is already canceled.
1310 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( 1311 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>(
1311 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); 1312 session->http_stream_factory_for_websocket())->num_orphaned_jobs());
1312 } 1313 }
1313 1314
1314 } // namespace 1315 } // namespace
1315 1316
1316 } // namespace net 1317 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_pool_unittest.cc ('k') | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698