Index: net/socket/socket_test_util.cc |
diff --git a/net/socket/socket_test_util.cc b/net/socket/socket_test_util.cc |
index cf033c245c3e86c8b5c427c2dc061e49172b7a3a..c5861faa796cdb373be504169b7ab5bbe548e1fd 100644 |
--- a/net/socket/socket_test_util.cc |
+++ b/net/socket/socket_test_util.cc |
@@ -1006,6 +1006,10 @@ const BoundNetLog& MockClientSocket::NetLog() const { |
return net_log_; |
} |
+void MockClientSocket::GetConnectionAttempts(ConnectionAttempts* out) const { |
+ out->clear(); |
+} |
+ |
void MockClientSocket::GetSSLCertRequestInfo( |
SSLCertRequestInfo* cert_request_info) { |
} |
@@ -1148,6 +1152,22 @@ int MockTCPClientSocket::Write(IOBuffer* buf, int buf_len, |
return write_result.result; |
} |
+void MockTCPClientSocket::GetConnectionAttempts(ConnectionAttempts* out) const { |
+ int connect_result = data_->connect_data().result; |
+ |
+ out->clear(); |
+ if (connected_ && connect_result != OK) |
+ out->push_back(ConnectionAttempt(addresses_[0], connect_result)); |
+} |
+ |
+void MockTCPClientSocket::ClearConnectionAttempts() { |
+ NOTIMPLEMENTED(); |
+} |
+ |
+void MockTCPClientSocket::AddConnectionAttempts(const ConnectionAttempts& in) { |
+ NOTIMPLEMENTED(); |
+} |
+ |
int MockTCPClientSocket::Connect(const CompletionCallback& callback) { |
if (connected_) |
return OK; |