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

Unified Diff: content/browser/service_worker/service_worker_version_unittest.cc

Issue 992353003: Decouple Cache Storage messaging from Service Worker/Embedded Worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 9 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 | « content/browser/service_worker/service_worker_version.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/service_worker/service_worker_version_unittest.cc
diff --git a/content/browser/service_worker/service_worker_version_unittest.cc b/content/browser/service_worker/service_worker_version_unittest.cc
index 2fba41ae758bdf4eaaa5de678cb786e135c9bb59..42ff69f688c6237bd6a41d97aea687338dff85f3 100644
--- a/content/browser/service_worker/service_worker_version_unittest.cc
+++ b/content/browser/service_worker/service_worker_version_unittest.cc
@@ -411,32 +411,6 @@ TEST_F(ServiceWorkerVersionTest, ScheduleStopWorker) {
EXPECT_TRUE(version_->timeout_timer_.IsRunning());
}
-TEST_F(ServiceWorkerVersionTest, ListenerAvailability) {
- // Initially the worker is not running. There should be no cache_listener_.
- EXPECT_FALSE(version_->cache_listener_.get());
-
- ServiceWorkerStatusCode status = SERVICE_WORKER_ERROR_FAILED;
- version_->StartWorker(
- CreateReceiverOnCurrentThread(&status));
- base::RunLoop().RunUntilIdle();
-
- // A new cache listener should be available once the worker starts.
- EXPECT_TRUE(version_->cache_listener_.get());
-
- version_->StopWorker(
- CreateReceiverOnCurrentThread(&status));
- base::RunLoop().RunUntilIdle();
-
- // Should be destroyed when the worker stops.
- EXPECT_FALSE(version_->cache_listener_.get());
-
- version_->StartWorker(
- CreateReceiverOnCurrentThread(&status));
- base::RunLoop().RunUntilIdle();
-
- // Recreated when the worker starts again.
- EXPECT_TRUE(version_->cache_listener_.get());
-}
TEST_F(ServiceWorkerVersionTest, SetDevToolsAttached) {
ServiceWorkerStatusCode status = SERVICE_WORKER_ERROR_FAILED;
« no previous file with comments | « content/browser/service_worker/service_worker_version.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698