summaryrefslogtreecommitdiffstats
path: root/net/http/http_transaction_unittest.h
diff options
context:
space:
mode:
authorjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 18:06:03 +0000
committerjar@chromium.org <jar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-13 18:06:03 +0000
commit87a1a958cd1a99a57bb28d242e244411a5f39cfa (patch)
tree04e97186d459fd2430adc8a7b3cd1e7cf5120f66 /net/http/http_transaction_unittest.h
parent5cbb127e6b67a646b98a460faf89740f29b91403 (diff)
downloadchromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.zip
chromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.tar.gz
chromium_src-87a1a958cd1a99a57bb28d242e244411a5f39cfa.tar.bz2
Correct latency histograms for SDCH encoding
Add a boolean to indicate if the request_time_ was set via a call to Now(), vs unpickling from the cache, so that cached results can be excluded from latency measurements. bug=1561947 r=darin,rvargas Review URL: http://codereview.chromium.org/17371 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7942 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_transaction_unittest.h')
-rw-r--r--net/http/http_transaction_unittest.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_transaction_unittest.h b/net/http/http_transaction_unittest.h
index eb2d7bb..ccdb954 100644
--- a/net/http/http_transaction_unittest.h
+++ b/net/http/http_transaction_unittest.h
@@ -7,6 +7,7 @@
#include "net/http/http_transaction.h"
+#include <algorithm>
#include <string>
#include "base/compiler_specific.h"
@@ -212,6 +213,7 @@ class MockNetworkTransaction : public net::HttpTransaction {
std::replace(header_data.begin(), header_data.end(), '\n', '\0');
response_.request_time = base::Time::Now();
+ response_.was_cached = false;
response_.response_time = base::Time::Now();
response_.headers = new net::HttpResponseHeaders(header_data);
response_.ssl_info.cert_status = t->cert_status;