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/socket_test_util.h" | 5 #include "net/socket/socket_test_util.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
885 int MockClientSocket::GetTLSUniqueChannelBinding(std::string* out) { | 885 int MockClientSocket::GetTLSUniqueChannelBinding(std::string* out) { |
886 out->assign(MockClientSocket::kTlsUnique); | 886 out->assign(MockClientSocket::kTlsUnique); |
887 return OK; | 887 return OK; |
888 } | 888 } |
889 | 889 |
890 ChannelIDService* MockClientSocket::GetChannelIDService() const { | 890 ChannelIDService* MockClientSocket::GetChannelIDService() const { |
891 NOTREACHED(); | 891 NOTREACHED(); |
892 return NULL; | 892 return NULL; |
893 } | 893 } |
894 | 894 |
| 895 std::string MockClientSocket::GetProvidedTokenBinding() { |
| 896 return ""; |
| 897 } |
| 898 |
895 SSLFailureState MockClientSocket::GetSSLFailureState() const { | 899 SSLFailureState MockClientSocket::GetSSLFailureState() const { |
896 return IsConnected() ? SSL_FAILURE_NONE : SSL_FAILURE_UNKNOWN; | 900 return IsConnected() ? SSL_FAILURE_NONE : SSL_FAILURE_UNKNOWN; |
897 } | 901 } |
898 | 902 |
899 SSLClientSocket::NextProtoStatus MockClientSocket::GetNextProto( | 903 SSLClientSocket::NextProtoStatus MockClientSocket::GetNextProto( |
900 std::string* proto) const { | 904 std::string* proto) const { |
901 proto->clear(); | 905 proto->clear(); |
902 return SSLClientSocket::kNextProtoUnsupported; | 906 return SSLClientSocket::kNextProtoUnsupported; |
903 } | 907 } |
904 | 908 |
(...skipping 1150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2055 } | 2059 } |
2056 | 2060 |
2057 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size) { | 2061 int64_t CountWriteBytes(const MockWrite writes[], size_t writes_size) { |
2058 int64_t total = 0; | 2062 int64_t total = 0; |
2059 for (const MockWrite* write = writes; write != writes + writes_size; ++write) | 2063 for (const MockWrite* write = writes; write != writes + writes_size; ++write) |
2060 total += write->data_len; | 2064 total += write->data_len; |
2061 return total; | 2065 return total; |
2062 } | 2066 } |
2063 | 2067 |
2064 } // namespace net | 2068 } // namespace net |
OLD | NEW |