net: Return LoadTiming information in the case of a cache hit.
If the request went over the wire before headers were returned,
return information about the last over the wire request. Otherwise,
set send times to be when the cache entry was opened, and
receive_header_start to be when the headers were read.
BUG=239842
Review URL: https://chromiumcodereview.appspot.com/14625012
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200356 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/net/http/http_transaction_unittest.h b/net/http/http_transaction_unittest.h
index 6e31097..a84c86be 100644
--- a/net/http/http_transaction_unittest.h
+++ b/net/http/http_transaction_unittest.h
@@ -16,6 +16,7 @@
#include "net/base/io_buffer.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
+#include "net/base/net_log.h"
#include "net/base/request_priority.h"
#include "net/base/test_completion_callback.h"
#include "net/disk_cache/disk_cache.h"
@@ -213,6 +214,11 @@
int test_mode_;
net::RequestPriority priority_;
base::WeakPtr<MockNetworkLayer> transaction_factory_;
+
+ // NetLog ID of the fake / non-existent underlying socket used by the
+ // connection. Requires Start() be passed a BoundNetLog with a real NetLog to
+ // be initialized.
+ unsigned int socket_log_id_;
};
class MockNetworkLayer : public net::HttpTransactionFactory,