Index: net/socket/socket_test_util.cc |
=================================================================== |
--- net/socket/socket_test_util.cc (revision 90003) |
+++ net/socket/socket_test_util.cc (working copy) |
@@ -800,6 +800,14 @@ |
return false; |
} |
+int64 MockTCPClientSocket::NumBytesRead() const { |
+ return -1; |
+} |
+ |
+int MockTCPClientSocket::GetConnectTimeMicros() const { |
+ return -1; |
+} |
+ |
void MockTCPClientSocket::OnReadComplete(const MockRead& data) { |
// There must be a read pending. |
DCHECK(pending_buf_); |
@@ -990,6 +998,14 @@ |
return false; |
} |
+int64 DeterministicMockTCPClientSocket::NumBytesRead() const { |
+ return -1; |
+} |
+ |
+int DeterministicMockTCPClientSocket::GetConnectTimeMicros() const { |
+ return -1; |
+} |
+ |
void DeterministicMockTCPClientSocket::OnReadComplete(const MockRead& data) {} |
class MockSSLClientSocket::ConnectCallback |
@@ -1083,6 +1099,14 @@ |
return transport_->socket()->UsingTCPFastOpen(); |
} |
+int64 MockSSLClientSocket::NumBytesRead() const { |
+ return -1; |
+} |
+ |
+int MockSSLClientSocket::GetConnectTimeMicros() const { |
+ return -1; |
+} |
+ |
void MockSSLClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
ssl_info->Reset(); |
ssl_info->cert = data_->cert_; |