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

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

Issue 1376473003: Notify NQE of TCP RTT values (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reorder initialization in constructor Created 4 years, 8 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_network_transaction_unittest.cc ('k') | net/server/http_server_unittest.cc » ('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 <stdint.h> 7 #include <stdint.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 CapturePreconnectsHttpProxySocketPool; 426 CapturePreconnectsHttpProxySocketPool;
427 typedef CapturePreconnectsSocketPool<SOCKSClientSocketPool> 427 typedef CapturePreconnectsSocketPool<SOCKSClientSocketPool>
428 CapturePreconnectsSOCKSSocketPool; 428 CapturePreconnectsSOCKSSocketPool;
429 typedef CapturePreconnectsSocketPool<SSLClientSocketPool> 429 typedef CapturePreconnectsSocketPool<SSLClientSocketPool>
430 CapturePreconnectsSSLSocketPool; 430 CapturePreconnectsSSLSocketPool;
431 431
432 template <typename ParentPool> 432 template <typename ParentPool>
433 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool( 433 CapturePreconnectsSocketPool<ParentPool>::CapturePreconnectsSocketPool(
434 HostResolver* host_resolver, 434 HostResolver* host_resolver,
435 CertVerifier* /* cert_verifier */) 435 CertVerifier* /* cert_verifier */)
436 : ParentPool(0, 0, host_resolver, nullptr, nullptr), last_num_streams_(-1) { 436 : ParentPool(0, 0, host_resolver, nullptr, nullptr, nullptr),
437 } 437 last_num_streams_(-1) {}
438 438
439 template <> 439 template <>
440 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool( 440 CapturePreconnectsHttpProxySocketPool::CapturePreconnectsSocketPool(
441 HostResolver* /* host_resolver */, 441 HostResolver* /* host_resolver */,
442 CertVerifier* /* cert_verifier */) 442 CertVerifier* /* cert_verifier */)
443 : HttpProxyClientSocketPool(0, 0, nullptr, nullptr, nullptr), 443 : HttpProxyClientSocketPool(0, 0, nullptr, nullptr, nullptr),
444 last_num_streams_(-1) { 444 last_num_streams_(-1) {
445 } 445 }
446 446
447 template <> 447 template <>
(...skipping 1594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2042 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 2042 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
2043 2043
2044 // Make sure there is no orphaned job. it is already canceled. 2044 // Make sure there is no orphaned job. it is already canceled.
2045 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( 2045 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>(
2046 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); 2046 session->http_stream_factory_for_websocket())->num_orphaned_jobs());
2047 } 2047 }
2048 2048
2049 } // namespace 2049 } // namespace
2050 2050
2051 } // namespace net 2051 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_network_transaction_unittest.cc ('k') | net/server/http_server_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698