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

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

Issue 2533063002: Fix Net.Socket.IdleSocketTimeSaving histogram (Closed)
Patch Set: self review Created 4 years 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 | « no previous file | net/http/http_proxy_client_socket_pool.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 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 10
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 RequestPriority priority, 671 RequestPriority priority,
672 ClientSocketPool::RespectLimits respect_limits, 672 ClientSocketPool::RespectLimits respect_limits,
673 ClientSocketHandle* handle, 673 ClientSocketHandle* handle,
674 const CompletionCallback& callback, 674 const CompletionCallback& callback,
675 const NetLogWithSource& net_log) override { 675 const NetLogWithSource& net_log) override {
676 last_group_name_ = group_name; 676 last_group_name_ = group_name;
677 return ERR_IO_PENDING; 677 return ERR_IO_PENDING;
678 } 678 }
679 void CancelRequest(const std::string& group_name, 679 void CancelRequest(const std::string& group_name,
680 ClientSocketHandle* handle) override {} 680 ClientSocketHandle* handle) override {}
681 void ReleaseSocket(const std::string& group_name, 681 void ReleaseSocket(
682 std::unique_ptr<StreamSocket> socket, 682 const std::string& group_name,
683 int id) override {} 683 std::unique_ptr<StreamSocket> socket,
684 int id,
685 const LoadTimingInfo::ConnectTiming& connect_timing) override {}
684 void CloseIdleSockets() override {} 686 void CloseIdleSockets() override {}
685 int IdleSocketCount() const override { return 0; } 687 int IdleSocketCount() const override { return 0; }
686 int IdleSocketCountInGroup(const std::string& group_name) const override { 688 int IdleSocketCountInGroup(const std::string& group_name) const override {
687 return 0; 689 return 0;
688 } 690 }
689 LoadState GetLoadState(const std::string& group_name, 691 LoadState GetLoadState(const std::string& group_name,
690 const ClientSocketHandle* handle) const override { 692 const ClientSocketHandle* handle) const override {
691 return LOAD_STATE_IDLE; 693 return LOAD_STATE_IDLE;
692 } 694 }
693 base::TimeDelta ConnectionTimeout() const override { 695 base::TimeDelta ConnectionTimeout() const override {
(...skipping 15807 matching lines...) Expand 10 before | Expand all | Expand 10 after
16501 base::RunLoop().RunUntilIdle(); 16503 base::RunLoop().RunUntilIdle();
16502 16504
16503 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy); 16505 EXPECT_TRUE(trans.GetResponseInfo()->was_fetched_via_spdy);
16504 HttpRequestHeaders headers; 16506 HttpRequestHeaders headers;
16505 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers)); 16507 ASSERT_TRUE(trans.GetFullRequestHeaders(&headers));
16506 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding)); 16508 EXPECT_TRUE(headers.HasHeader(HttpRequestHeaders::kTokenBinding));
16507 } 16509 }
16508 #endif // !defined(OS_IOS) 16510 #endif // !defined(OS_IOS)
16509 16511
16510 } // namespace net 16512 } // namespace net
OLDNEW
« no previous file with comments | « no previous file | net/http/http_proxy_client_socket_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698