diff options
author | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 20:39:01 +0000 |
---|---|---|
committer | michaeln@chromium.org <michaeln@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-23 20:39:01 +0000 |
commit | ca25209a0338e538e0199b07bbd5c2411f52e906 (patch) | |
tree | c4cb2c20599249e0c8a23b6424551280dfc6fd15 /webkit/appcache/appcache_update_job_unittest.cc | |
parent | 1ce698cdc9cec84dcd0eea437f266d5e0b217060 (diff) | |
download | chromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.zip chromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.tar.gz chromium_src-ca25209a0338e538e0199b07bbd5c2411f52e906.tar.bz2 |
Keep track of appcache creation and last access times.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/630009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_update_job_unittest.cc')
-rw-r--r-- | webkit/appcache/appcache_update_job_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/webkit/appcache/appcache_update_job_unittest.cc b/webkit/appcache/appcache_update_job_unittest.cc index 42efbff..1c715f0 100644 --- a/webkit/appcache/appcache_update_job_unittest.cc +++ b/webkit/appcache/appcache_update_job_unittest.cc @@ -1965,7 +1965,7 @@ class AppCacheUpdateJobTest : public testing::Test, // Reset the update time to null so we can verify it gets // modified in this test case by the UpdateJob. - cache->set_update_time(base::TimeTicks()); + cache->set_update_time(base::Time()); MockFrontend* frontend2 = MakeMockFrontend(); AppCacheHost* host2 = MakeHost(2, frontend2); @@ -2582,7 +2582,7 @@ class AppCacheUpdateJobTest : public testing::Test, AppCache* MakeCacheForGroup(int64 cache_id, int64 manifest_response_id) { AppCache* cache = new AppCache(service_.get(), cache_id); cache->set_complete(true); - cache->set_update_time(base::TimeTicks::Now()); + cache->set_update_time(base::Time::Now()); group_->AddCache(cache); // Add manifest entry to cache. @@ -2753,7 +2753,7 @@ class AppCacheUpdateJobTest : public testing::Test, EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); EXPECT_TRUE(cache->online_whitelist_all_); - EXPECT_TRUE(cache->update_time_ > base::TimeTicks()); + EXPECT_TRUE(cache->update_time_ > base::Time()); } void VerifyManifestMergedTypes(AppCache* cache) { @@ -2785,7 +2785,7 @@ class AppCacheUpdateJobTest : public testing::Test, http_server_->TestServerPage("files/online1"))); EXPECT_FALSE(cache->online_whitelist_all_); - EXPECT_TRUE(cache->update_time_ > base::TimeTicks()); + EXPECT_TRUE(cache->update_time_ > base::Time()); } void VerifyEmptyManifest(AppCache* cache) { @@ -2800,7 +2800,7 @@ class AppCacheUpdateJobTest : public testing::Test, EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); EXPECT_FALSE(cache->online_whitelist_all_); - EXPECT_TRUE(cache->update_time_ > base::TimeTicks()); + EXPECT_TRUE(cache->update_time_ > base::Time()); } void VerifyEmptyFileManifest(AppCache* cache) { @@ -2820,7 +2820,7 @@ class AppCacheUpdateJobTest : public testing::Test, EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); EXPECT_FALSE(cache->online_whitelist_all_); - EXPECT_TRUE(cache->update_time_ > base::TimeTicks()); + EXPECT_TRUE(cache->update_time_ > base::Time()); } void VerifyMasterEntryNoUpdate(AppCache* cache) { @@ -2846,7 +2846,7 @@ class AppCacheUpdateJobTest : public testing::Test, EXPECT_TRUE(cache->online_whitelist_namespaces_.empty()); EXPECT_FALSE(cache->online_whitelist_all_); - EXPECT_TRUE(cache->update_time_ > base::TimeTicks()); + EXPECT_TRUE(cache->update_time_ > base::Time()); } private: |