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

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

Issue 1580903002: Convert ignore_limits from a SocketParam to a socket request argument. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: RespectLimits Created 4 years, 10 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_wrapper.cc ('k') | net/socket/client_socket_handle.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 <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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 CapturePreconnectsSocketPool(HostResolver* host_resolver, 362 CapturePreconnectsSocketPool(HostResolver* host_resolver,
363 CertVerifier* cert_verifier); 363 CertVerifier* cert_verifier);
364 364
365 int last_num_streams() const { 365 int last_num_streams() const {
366 return last_num_streams_; 366 return last_num_streams_;
367 } 367 }
368 368
369 int RequestSocket(const std::string& group_name, 369 int RequestSocket(const std::string& group_name,
370 const void* socket_params, 370 const void* socket_params,
371 RequestPriority priority, 371 RequestPriority priority,
372 ClientSocketPool::RespectLimits respect_limits,
372 ClientSocketHandle* handle, 373 ClientSocketHandle* handle,
373 const CompletionCallback& callback, 374 const CompletionCallback& callback,
374 const BoundNetLog& net_log) override { 375 const BoundNetLog& net_log) override {
375 ADD_FAILURE(); 376 ADD_FAILURE();
376 return ERR_UNEXPECTED; 377 return ERR_UNEXPECTED;
377 } 378 }
378 379
379 void RequestSockets(const std::string& group_name, 380 void RequestSockets(const std::string& group_name,
380 const void* socket_params, 381 const void* socket_params,
381 int num_sockets, 382 int num_sockets,
(...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after
1682 EXPECT_TRUE(waiter.used_proxy_info().is_direct()); 1683 EXPECT_TRUE(waiter.used_proxy_info().is_direct());
1683 1684
1684 // Make sure there is no orphaned job. it is already canceled. 1685 // Make sure there is no orphaned job. it is already canceled.
1685 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>( 1686 ASSERT_EQ(0u, static_cast<HttpStreamFactoryImpl*>(
1686 session->http_stream_factory_for_websocket())->num_orphaned_jobs()); 1687 session->http_stream_factory_for_websocket())->num_orphaned_jobs());
1687 } 1688 }
1688 1689
1689 } // namespace 1690 } // namespace
1690 1691
1691 } // namespace net 1692 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_proxy_client_socket_wrapper.cc ('k') | net/socket/client_socket_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698