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

Unified Diff: net/socket/socket_test_util.cc

Issue 11428150: LoadTiming implementation in net, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Try upload again Created 8 years 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 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();
}

Powered by Google App Engine
This is Rietveld 408576698