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 762 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
773 } | 773 } |
774 | 774 |
775 const BoundNetLog& MockClientSocket::NetLog() const { | 775 const BoundNetLog& MockClientSocket::NetLog() const { |
776 return net_log_; | 776 return net_log_; |
777 } | 777 } |
778 | 778 |
779 void MockClientSocket::GetSSLCertRequestInfo( | 779 void MockClientSocket::GetSSLCertRequestInfo( |
780 SSLCertRequestInfo* cert_request_info) { | 780 SSLCertRequestInfo* cert_request_info) { |
781 } | 781 } |
782 | 782 |
783 std::string MockClientSocket::GetSessionCacheKey() const { | |
784 NOTREACHED(); | |
785 return ""; | |
Ryan Sleevi
2014/07/25 21:40:07
return std::string()
mshelley
2014/07/28 21:05:32
Done.
| |
786 } | |
787 | |
783 bool MockClientSocket::InSessionCache() const { | 788 bool MockClientSocket::InSessionCache() const { |
784 return true; | 789 return true; |
785 } | 790 } |
786 | 791 |
787 void MockClientSocket::WatchSessionForCompletion(const base::Closure& cb) { | 792 void MockClientSocket::WatchSessionForCompletion(const base::Closure& cb) { |
788 } | 793 } |
789 | 794 |
790 void MockClientSocket::SetSocketFailureCallback(const base::Closure& cb) { | 795 void MockClientSocket::SetSocketFailureCallback(const base::Closure& cb) { |
791 } | 796 } |
792 | 797 |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1976 | 1981 |
1977 const char kSOCKS5OkRequest[] = | 1982 const char kSOCKS5OkRequest[] = |
1978 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; | 1983 { 0x05, 0x01, 0x00, 0x03, 0x04, 'h', 'o', 's', 't', 0x00, 0x50 }; |
1979 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); | 1984 const int kSOCKS5OkRequestLength = arraysize(kSOCKS5OkRequest); |
1980 | 1985 |
1981 const char kSOCKS5OkResponse[] = | 1986 const char kSOCKS5OkResponse[] = |
1982 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; | 1987 { 0x05, 0x00, 0x00, 0x01, 127, 0, 0, 1, 0x00, 0x50 }; |
1983 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); | 1988 const int kSOCKS5OkResponseLength = arraysize(kSOCKS5OkResponse); |
1984 | 1989 |
1985 } // namespace net | 1990 } // namespace net |
OLD | NEW |