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

Unified Diff: net/http/http_cache_unittest.cc

Issue 895853003: Update from https://crrev.com/314320 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
diff --git a/net/http/http_cache_unittest.cc b/net/http/http_cache_unittest.cc
index cee0c4a554255c05ecc57b9e4485f6d5b12c383a..3458402376cdfe19663cb59e177cc4720a5aa3c9 100644
--- a/net/http/http_cache_unittest.cc
+++ b/net/http/http_cache_unittest.cc
@@ -6444,17 +6444,15 @@ TEST(HttpCache, WriteMetadata_OK) {
// Trivial call.
cache.http_cache()->WriteMetadata(GURL("foo"), net::DEFAULT_PRIORITY,
- Time::Now(), NULL, 0);
+ Time::Now().ToDoubleT(), NULL, 0);
// Write meta data to the same entry.
scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(50));
memset(buf->data(), 0, buf->size());
base::strlcpy(buf->data(), "Hi there", buf->size());
- cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url),
- net::DEFAULT_PRIORITY,
- response.response_time,
- buf.get(),
- buf->size());
+ cache.http_cache()->WriteMetadata(
+ GURL(kSimpleGET_Transaction.url), net::DEFAULT_PRIORITY,
+ response.response_time.ToDoubleT(), buf.get(), buf->size());
// Release the buffer before the operation takes place.
buf = NULL;
@@ -6489,11 +6487,9 @@ TEST(HttpCache, WriteMetadata_Fail) {
base::strlcpy(buf->data(), "Hi there", buf->size());
base::Time expected_time = response.response_time -
base::TimeDelta::FromMilliseconds(20);
- cache.http_cache()->WriteMetadata(GURL(kSimpleGET_Transaction.url),
- net::DEFAULT_PRIORITY,
- expected_time,
- buf.get(),
- buf->size());
+ cache.http_cache()->WriteMetadata(
+ GURL(kSimpleGET_Transaction.url), net::DEFAULT_PRIORITY,
+ expected_time.ToDoubleT(), buf.get(), buf->size());
// Makes sure we finish pending operations.
base::MessageLoop::current()->RunUntilIdle();
@@ -6522,11 +6518,9 @@ TEST(HttpCache, ReadMetadata) {
scoped_refptr<net::IOBufferWithSize> buf(new net::IOBufferWithSize(50));
memset(buf->data(), 0, buf->size());
base::strlcpy(buf->data(), "Hi there", buf->size());
- cache.http_cache()->WriteMetadata(GURL(kTypicalGET_Transaction.url),
- net::DEFAULT_PRIORITY,
- response.response_time,
- buf.get(),
- buf->size());
+ cache.http_cache()->WriteMetadata(
+ GURL(kTypicalGET_Transaction.url), net::DEFAULT_PRIORITY,
+ response.response_time.ToDoubleT(), buf.get(), buf->size());
// Makes sure we finish pending operations.
base::MessageLoop::current()->RunUntilIdle();
« no previous file with comments | « net/http/http_cache.cc ('k') | net/http/http_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698