Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(442)

Unified Diff: net/socket/socket_test_util.cc

Issue 7189055: Deciding best connection to schedule requests on based on cwnd and idle time (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: syncing to head Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698