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/notifier/base/fake_ssl_client_socket.h" | 5 #include "jingle/notifier/base/fake_ssl_client_socket.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 } | 295 } |
296 | 296 |
297 bool FakeSSLClientSocket::IsConnected() const { | 297 bool FakeSSLClientSocket::IsConnected() const { |
298 return handshake_completed_ && transport_socket_->IsConnected(); | 298 return handshake_completed_ && transport_socket_->IsConnected(); |
299 } | 299 } |
300 | 300 |
301 bool FakeSSLClientSocket::IsConnectedAndIdle() const { | 301 bool FakeSSLClientSocket::IsConnectedAndIdle() const { |
302 return handshake_completed_ && transport_socket_->IsConnectedAndIdle(); | 302 return handshake_completed_ && transport_socket_->IsConnectedAndIdle(); |
303 } | 303 } |
304 | 304 |
305 int FakeSSLClientSocket::GetPeerAddress(net::AddressList* address) const { | 305 int FakeSSLClientSocket::GetPeerAddress(net::IPEndPoint* address) const { |
306 return transport_socket_->GetPeerAddress(address); | 306 return transport_socket_->GetPeerAddress(address); |
307 } | 307 } |
308 | 308 |
309 int FakeSSLClientSocket::GetLocalAddress(net::IPEndPoint* address) const { | 309 int FakeSSLClientSocket::GetLocalAddress(net::IPEndPoint* address) const { |
310 return transport_socket_->GetLocalAddress(address); | 310 return transport_socket_->GetLocalAddress(address); |
311 } | 311 } |
312 | 312 |
313 const net::BoundNetLog& FakeSSLClientSocket::NetLog() const { | 313 const net::BoundNetLog& FakeSSLClientSocket::NetLog() const { |
314 return transport_socket_->NetLog(); | 314 return transport_socket_->NetLog(); |
315 } | 315 } |
(...skipping 20 matching lines...) Expand all Loading... |
336 | 336 |
337 base::TimeDelta FakeSSLClientSocket::GetConnectTimeMicros() const { | 337 base::TimeDelta FakeSSLClientSocket::GetConnectTimeMicros() const { |
338 return transport_socket_->GetConnectTimeMicros(); | 338 return transport_socket_->GetConnectTimeMicros(); |
339 } | 339 } |
340 | 340 |
341 net::NextProto FakeSSLClientSocket::GetNegotiatedProtocol() const { | 341 net::NextProto FakeSSLClientSocket::GetNegotiatedProtocol() const { |
342 return transport_socket_->GetNegotiatedProtocol(); | 342 return transport_socket_->GetNegotiatedProtocol(); |
343 } | 343 } |
344 | 344 |
345 } // namespace notifier | 345 } // namespace notifier |
OLD | NEW |