Index: content/browser/service_worker/service_worker_job_unittest.cc |
diff --git a/content/browser/service_worker/service_worker_job_unittest.cc b/content/browser/service_worker/service_worker_job_unittest.cc |
index e49c8294d64896eb2982149518a22db44f21098e..45ba5ef6264411317a5a3e8e581e40c5ddf8e8b7 100644 |
--- a/content/browser/service_worker/service_worker_job_unittest.cc |
+++ b/content/browser/service_worker/service_worker_job_unittest.cc |
@@ -963,31 +963,6 @@ TEST_F(ServiceWorkerJobTest, Update_NoChange) { |
EXPECT_FALSE(update_helper->update_found_); |
} |
-TEST_F(ServiceWorkerJobTest, Update_BumpLastUpdateCheckTime) { |
- const base::Time kToday = base::Time::Now(); |
- const base::Time kYesterday = |
- kToday - base::TimeDelta::FromDays(1) - base::TimeDelta::FromHours(1); |
- UpdateJobTestHelper* update_helper = |
- new UpdateJobTestHelper(render_process_id_); |
- helper_.reset(update_helper); |
- scoped_refptr<ServiceWorkerRegistration> registration = |
- update_helper->SetupInitialRegistration(kNoChangeOrigin); |
- |
- // Run an update where the last update check was less than 24 hours ago. The |
- // check time shouldn't change, as we didn't bypass cache. |
- registration->set_last_update_check(kToday); |
- registration->active_version()->StartUpdate(); |
- base::RunLoop().RunUntilIdle(); |
- EXPECT_EQ(kToday, registration->last_update_check()); |
- |
- // Run an update where the last update check was over 24 hours ago. The |
- // check time should change, as the cache was bypassed. |
- registration->set_last_update_check(kYesterday); |
- registration->active_version()->StartUpdate(); |
- base::RunLoop().RunUntilIdle(); |
- EXPECT_LT(kYesterday, registration->last_update_check()); |
-} |
- |
TEST_F(ServiceWorkerJobTest, Update_NewVersion) { |
UpdateJobTestHelper* update_helper = |
new UpdateJobTestHelper(render_process_id_); |