Chromium Code Reviews

Side by Side Diff: net/http/http_stream_factory_impl_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.
Jump to:
View unified diff |
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_transaction_test_util.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_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 369 matching lines...)
380 CapturePreconnectsSOCKSSocketPool; 380 CapturePreconnectsSOCKSSocketPool;
381 typedef CapturePreconnectsSocketPool<SSLClientSocketPool> 381 typedef CapturePreconnectsSocketPool<SSLClientSocketPool>
382 CapturePreconnectsSSLSocketPool; 382 CapturePreconnectsSSLSocketPool;
383 383
384 template<typename ParentPool> 384 template<typename ParentPool>
385 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool( 385 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool(
386 HostResolver* host_resolver, CertVerifier* /* cert_verifier */) 386 HostResolver* host_resolver, CertVerifier* /* cert_verifier */)
387 : ParentPool(0, 0, nullptr, host_resolver, nullptr, nullptr), 387 : ParentPool(0, 0, nullptr, host_resolver, nullptr, nullptr),
388 last_num_streams_(-1) {} 388 last_num_streams_(-1) {}
389 389
390 template<> 390 template <>
391 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( 391 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool(
392 HostResolver* host_resolver, CertVerifier* /* cert_verifier */) 392 HostResolver* host_resolver,
393 : HttpProxyClientSocketPool( 393 CertVerifier* /* cert_verifier */)
394 0, 0, nullptr, host_resolver, nullptr, nullptr, nullptr, nullptr), 394 : HttpProxyClientSocketPool(0,
395 last_num_streams_(-1) {} 395 0,
396 nullptr,
397 host_resolver,
398 nullptr,
399 nullptr,
400 nullptr),
401 last_num_streams_(-1) {
402 }
396 403
397 template <> 404 template <>
398 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool( 405 CapturePreconnectsSSLSocketPool::CapturePreconnectsSocketPool(
399 HostResolver* host_resolver, 406 HostResolver* host_resolver,
400 CertVerifier* cert_verifier) 407 CertVerifier* cert_verifier)
401 : SSLClientSocketPool(0, 408 : SSLClientSocketPool(0,
402 0, 409 0,
403 nullptr, // ssl_histograms 410 nullptr, // ssl_histograms
404 host_resolver, 411 host_resolver,
405 cert_verifier, 412 cert_verifier,
(...skipping 893 matching lines...)
1299 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 1306 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
1300 1307
1301 // Make sure there is no orphaned job. it is already canceled. 1308 // Make sure there is no orphaned job. it is already canceled.
1302 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( 1309 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>(
1303 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); 1310 session->http_stream_factory_for_websocket())->num_orphaned_jobs());
1304 } 1311 }
1305 1312
1306 } // namespace 1313 } // namespace
1307 1314
1308 } // namespace net 1315 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | net/http/http_transaction_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine