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

Side by Side Diff: net/http/http_network_transaction_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: merge Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_network_transaction.h" 5 #include "net/http/http_network_transaction.h"
6 6
7 #include <math.h> // ceil 7 #include <math.h> // ceil
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <limits> 10 #include <limits>
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 CaptureGroupNameSocketPool(HostResolver* host_resolver, 579 CaptureGroupNameSocketPool(HostResolver* host_resolver,
580 CertVerifier* cert_verifier); 580 CertVerifier* cert_verifier);
581 581
582 const std::string last_group_name_received() const { 582 const std::string last_group_name_received() const {
583 return last_group_name_; 583 return last_group_name_;
584 } 584 }
585 585
586 int RequestSocket(const std::string& group_name, 586 int RequestSocket(const std::string& group_name,
587 const void* socket_params, 587 const void* socket_params,
588 RequestPriority priority, 588 RequestPriority priority,
589 bool ignore_limits,
589 ClientSocketHandle* handle, 590 ClientSocketHandle* handle,
590 const CompletionCallback& callback, 591 const CompletionCallback& callback,
591 const BoundNetLog& net_log) override { 592 const BoundNetLog& net_log) override {
592 last_group_name_ = group_name; 593 last_group_name_ = group_name;
593 return ERR_IO_PENDING; 594 return ERR_IO_PENDING;
594 } 595 }
595 void CancelRequest(const std::string& group_name, 596 void CancelRequest(const std::string& group_name,
596 ClientSocketHandle* handle) override {} 597 ClientSocketHandle* handle) override {}
597 void ReleaseSocket(const std::string& group_name, 598 void ReleaseSocket(const std::string& group_name,
598 scoped_ptr<StreamSocket> socket, 599 scoped_ptr<StreamSocket> socket,
(...skipping 15197 matching lines...) Expand 10 before | Expand all | Expand 10 after
15796 15797
15797 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_)); 15798 scoped_ptr<HttpNetworkSession> session(CreateSession(&session_deps_));
15798 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get()); 15799 HttpNetworkTransaction trans(DEFAULT_PRIORITY, session.get());
15799 15800
15800 EXPECT_THAT(trans.server_ssl_config_.alpn_protos, 15801 EXPECT_THAT(trans.server_ssl_config_.alpn_protos,
15801 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11)); 15802 testing::ElementsAre(kProtoHTTP2, kProtoSPDY31, kProtoHTTP11));
15802 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty()); 15803 EXPECT_TRUE(trans.server_ssl_config_.npn_protos.empty());
15803 } 15804 }
15804 15805
15805 } // namespace net 15806 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool.h » ('j') | net/http/http_proxy_client_socket_pool.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698