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

Side by Side Diff: net/socket/client_socket_pool_base_unittest.cc

Issue 1821633003: net: remove UsingTCPFastOpen() method from StreamSocket class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove use_tcp_fastopen_ from transport_client_socket_pool_test_util.cc Created 4 years, 9 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/server/http_server_unittest.cc ('k') | net/socket/socket_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/socket/client_socket_pool_base.h" 5 #include "net/socket/client_socket_pool_base.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 int GetLocalAddress(IPEndPoint* /* address */) const override { 169 int GetLocalAddress(IPEndPoint* /* address */) const override {
170 return ERR_UNEXPECTED; 170 return ERR_UNEXPECTED;
171 } 171 }
172 172
173 const BoundNetLog& NetLog() const override { return net_log_; } 173 const BoundNetLog& NetLog() const override { return net_log_; }
174 174
175 void SetSubresourceSpeculation() override {} 175 void SetSubresourceSpeculation() override {}
176 void SetOmniboxSpeculation() override {} 176 void SetOmniboxSpeculation() override {}
177 bool WasEverUsed() const override { return was_used_to_convey_data_; } 177 bool WasEverUsed() const override { return was_used_to_convey_data_; }
178 bool UsingTCPFastOpen() const override { return false; }
179 bool WasNpnNegotiated() const override { return false; } 178 bool WasNpnNegotiated() const override { return false; }
180 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; } 179 NextProto GetNegotiatedProtocol() const override { return kProtoUnknown; }
181 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; } 180 bool GetSSLInfo(SSLInfo* ssl_info) override { return false; }
182 void GetConnectionAttempts(ConnectionAttempts* out) const override { 181 void GetConnectionAttempts(ConnectionAttempts* out) const override {
183 out->clear(); 182 out->clear();
184 } 183 }
185 void ClearConnectionAttempts() override {} 184 void ClearConnectionAttempts() override {}
186 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {} 185 void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
187 int64_t GetTotalReceivedBytes() const override { 186 int64_t GetTotalReceivedBytes() const override {
188 NOTIMPLEMENTED(); 187 NOTIMPLEMENTED();
(...skipping 3650 matching lines...) Expand 10 before | Expand all | Expand 10 after
3839 request(1)->handle()->Reset(); 3838 request(1)->handle()->Reset();
3840 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a")); 3839 ASSERT_EQ(1, pool_->NumConnectJobsInGroup("a"));
3841 3840
3842 EXPECT_EQ(OK, request(2)->WaitForResult()); 3841 EXPECT_EQ(OK, request(2)->WaitForResult());
3843 EXPECT_FALSE(request(1)->have_result()); 3842 EXPECT_FALSE(request(1)->have_result());
3844 } 3843 }
3845 3844
3846 } // namespace 3845 } // namespace
3847 3846
3848 } // namespace net 3847 } // namespace net
OLDNEW
« no previous file with comments | « net/server/http_server_unittest.cc ('k') | net/socket/socket_test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698