Index: net/socket/socket_test_util.cc |
=================================================================== |
--- net/socket/socket_test_util.cc (revision 172981) |
+++ net/socket/socket_test_util.cc (working copy) |
@@ -1537,6 +1537,16 @@ |
return; |
if (rv == OK) { |
handle_->set_socket(socket_.release()); |
+ |
+ // Needed for socket pool tests that layer other sockets on top of mock |
+ // sockets. |
+ ConnectTiming connect_timing; |
+ base::TimeTicks now = base::TimeTicks::Now(); |
+ connect_timing.dns_start = now; |
+ connect_timing.dns_end = now; |
+ connect_timing.connect_start = now; |
+ connect_timing.connect_end = now; |
+ handle_->set_connect_timing(connect_timing); |
} else { |
socket_.reset(); |
} |