| 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 <errno.h> | 7 #include <errno.h> |
| 8 #include <string.h> | 8 #include <string.h> |
| 9 | 9 |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 void ClearConnectionAttempts() override { | 124 void ClearConnectionAttempts() override { |
| 125 transport_->ClearConnectionAttempts(); | 125 transport_->ClearConnectionAttempts(); |
| 126 } | 126 } |
| 127 void AddConnectionAttempts(const ConnectionAttempts& attempts) override { | 127 void AddConnectionAttempts(const ConnectionAttempts& attempts) override { |
| 128 transport_->AddConnectionAttempts(attempts); | 128 transport_->AddConnectionAttempts(attempts); |
| 129 } | 129 } |
| 130 int64_t GetTotalReceivedBytes() const override { | 130 int64_t GetTotalReceivedBytes() const override { |
| 131 return transport_->GetTotalReceivedBytes(); | 131 return transport_->GetTotalReceivedBytes(); |
| 132 } | 132 } |
| 133 | 133 |
| 134 void DumpMemoryStats( |
| 135 base::trace_event::MemoryAllocatorDump* dump) const override {} |
| 136 |
| 134 // Socket implementation: | 137 // Socket implementation: |
| 135 int Read(IOBuffer* buf, | 138 int Read(IOBuffer* buf, |
| 136 int buf_len, | 139 int buf_len, |
| 137 const CompletionCallback& callback) override { | 140 const CompletionCallback& callback) override { |
| 138 return transport_->Read(buf, buf_len, callback); | 141 return transport_->Read(buf, buf_len, callback); |
| 139 } | 142 } |
| 140 int Write(IOBuffer* buf, | 143 int Write(IOBuffer* buf, |
| 141 int buf_len, | 144 int buf_len, |
| 142 const CompletionCallback& callback) override { | 145 const CompletionCallback& callback) override { |
| 143 return transport_->Write(buf, buf_len, callback); | 146 return transport_->Write(buf, buf_len, callback); |
| (...skipping 3522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3666 // Replace it with an alert. | 3669 // Replace it with an alert. |
| 3667 raw_transport->ReplaceReadResult( | 3670 raw_transport->ReplaceReadResult( |
| 3668 FormatTLS12Alert(49 /* AlertDescription.access_denied */)); | 3671 FormatTLS12Alert(49 /* AlertDescription.access_denied */)); |
| 3669 raw_transport->UnblockReadResult(); | 3672 raw_transport->UnblockReadResult(); |
| 3670 | 3673 |
| 3671 rv = callback.GetResult(rv); | 3674 rv = callback.GetResult(rv); |
| 3672 EXPECT_THAT(rv, IsError(ERR_BAD_SSL_CLIENT_AUTH_CERT)); | 3675 EXPECT_THAT(rv, IsError(ERR_BAD_SSL_CLIENT_AUTH_CERT)); |
| 3673 } | 3676 } |
| 3674 | 3677 |
| 3675 } // namespace net | 3678 } // namespace net |
| OLD | NEW |