OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |