| 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 "jingle/glue/fake_ssl_client_socket.h" | 5 #include "jingle/glue/fake_ssl_client_socket.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <cstdlib> | 9 #include <cstdlib> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 } | 324 } |
| 325 | 325 |
| 326 void FakeSSLClientSocket::SetOmniboxSpeculation() { | 326 void FakeSSLClientSocket::SetOmniboxSpeculation() { |
| 327 transport_socket_->SetOmniboxSpeculation(); | 327 transport_socket_->SetOmniboxSpeculation(); |
| 328 } | 328 } |
| 329 | 329 |
| 330 bool FakeSSLClientSocket::WasEverUsed() const { | 330 bool FakeSSLClientSocket::WasEverUsed() const { |
| 331 return transport_socket_->WasEverUsed(); | 331 return transport_socket_->WasEverUsed(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 bool FakeSSLClientSocket::UsingTCPFastOpen() const { | |
| 335 return transport_socket_->UsingTCPFastOpen(); | |
| 336 } | |
| 337 | |
| 338 bool FakeSSLClientSocket::WasNpnNegotiated() const { | 334 bool FakeSSLClientSocket::WasNpnNegotiated() const { |
| 339 return transport_socket_->WasNpnNegotiated(); | 335 return transport_socket_->WasNpnNegotiated(); |
| 340 } | 336 } |
| 341 | 337 |
| 342 net::NextProto FakeSSLClientSocket::GetNegotiatedProtocol() const { | 338 net::NextProto FakeSSLClientSocket::GetNegotiatedProtocol() const { |
| 343 return transport_socket_->GetNegotiatedProtocol(); | 339 return transport_socket_->GetNegotiatedProtocol(); |
| 344 } | 340 } |
| 345 | 341 |
| 346 bool FakeSSLClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { | 342 bool FakeSSLClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
| 347 return transport_socket_->GetSSLInfo(ssl_info); | 343 return transport_socket_->GetSSLInfo(ssl_info); |
| 348 } | 344 } |
| 349 | 345 |
| 350 void FakeSSLClientSocket::GetConnectionAttempts( | 346 void FakeSSLClientSocket::GetConnectionAttempts( |
| 351 net::ConnectionAttempts* out) const { | 347 net::ConnectionAttempts* out) const { |
| 352 out->clear(); | 348 out->clear(); |
| 353 } | 349 } |
| 354 | 350 |
| 355 int64_t FakeSSLClientSocket::GetTotalReceivedBytes() const { | 351 int64_t FakeSSLClientSocket::GetTotalReceivedBytes() const { |
| 356 NOTIMPLEMENTED(); | 352 NOTIMPLEMENTED(); |
| 357 return 0; | 353 return 0; |
| 358 } | 354 } |
| 359 | 355 |
| 360 } // namespace jingle_glue | 356 } // namespace jingle_glue |
| OLD | NEW |