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

Side by Side Diff: net/socket/ssl_client_socket_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/socket/ssl_client_socket_openssl.cc ('k') | net/socket/ssl_server_socket_nss.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/socket/ssl_client_socket.h" 5 #include "net/socket/ssl_client_socket.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/callback_helpers.h" 9 #include "base/callback_helpers.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 int GetLocalAddress(IPEndPoint* address) const override { 97 int GetLocalAddress(IPEndPoint* address) const override {
98 return transport_->GetLocalAddress(address); 98 return transport_->GetLocalAddress(address);
99 } 99 }
100 const BoundNetLog& NetLog() const override { return transport_->NetLog(); } 100 const BoundNetLog& NetLog() const override { return transport_->NetLog(); }
101 void SetSubresourceSpeculation() override { 101 void SetSubresourceSpeculation() override {
102 transport_->SetSubresourceSpeculation(); 102 transport_->SetSubresourceSpeculation();
103 } 103 }
104 void SetOmniboxSpeculation() override { transport_->SetOmniboxSpeculation(); } 104 void SetOmniboxSpeculation() override { transport_->SetOmniboxSpeculation(); }
105 bool WasEverUsed() const override { return transport_->WasEverUsed(); } 105 bool WasEverUsed() const override { return transport_->WasEverUsed(); }
106 bool UsingTCPFastOpen() const override {
107 return transport_->UsingTCPFastOpen();
108 }
109 bool WasNpnNegotiated() const override { 106 bool WasNpnNegotiated() const override {
110 return transport_->WasNpnNegotiated(); 107 return transport_->WasNpnNegotiated();
111 } 108 }
112 NextProto GetNegotiatedProtocol() const override { 109 NextProto GetNegotiatedProtocol() const override {
113 return transport_->GetNegotiatedProtocol(); 110 return transport_->GetNegotiatedProtocol();
114 } 111 }
115 bool GetSSLInfo(SSLInfo* ssl_info) override { 112 bool GetSSLInfo(SSLInfo* ssl_info) override {
116 return transport_->GetSSLInfo(ssl_info); 113 return transport_->GetSSLInfo(ssl_info);
117 } 114 }
118 void GetConnectionAttempts(ConnectionAttempts* out) const override { 115 void GetConnectionAttempts(ConnectionAttempts* out) const override {
(...skipping 3249 matching lines...) Expand 10 before | Expand all | Expand 10 after
3368 SSLInfo ssl_info; 3365 SSLInfo ssl_info;
3369 ASSERT_TRUE(sock_->GetSSLInfo(&ssl_info)); 3366 ASSERT_TRUE(sock_->GetSSLInfo(&ssl_info));
3370 EXPECT_TRUE(ssl_info.client_cert_sent); 3367 EXPECT_TRUE(ssl_info.client_cert_sent);
3371 3368
3372 sock_->Disconnect(); 3369 sock_->Disconnect();
3373 EXPECT_FALSE(sock_->IsConnected()); 3370 EXPECT_FALSE(sock_->IsConnected());
3374 } 3371 }
3375 #endif // defined(USE_OPENSSL) 3372 #endif // defined(USE_OPENSSL)
3376 3373
3377 } // namespace net 3374 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_openssl.cc ('k') | net/socket/ssl_server_socket_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698