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

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

Issue 85023003: EmbeddedWorker, browser side code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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
Index: content/browser/service_worker/service_worker_registration_unittest.cc
diff --git a/content/browser/service_worker/service_worker_registration_unittest.cc b/content/browser/service_worker/service_worker_registration_unittest.cc
index 1ad7895b7b223dc6474f491b9a031b5fdff15e0b..3fb6611a2f3b2b07b8b93da96588206e4fc464bc 100644
--- a/content/browser/service_worker/service_worker_registration_unittest.cc
+++ b/content/browser/service_worker/service_worker_registration_unittest.cc
@@ -26,7 +26,8 @@ class ServiceWorkerRegistrationTest : public testing::Test {
};
TEST_F(ServiceWorkerRegistrationTest, Shutdown) {
- int64 registration_id = -1L;
+ const int64 registration_id = -1L;
+ const int64 version_id = -1L;
scoped_refptr<ServiceWorkerRegistration> registration =
new ServiceWorkerRegistration(
GURL("http://www.example.com/*"),
@@ -34,7 +35,7 @@ TEST_F(ServiceWorkerRegistrationTest, Shutdown) {
registration_id);
scoped_refptr<ServiceWorkerVersion> active_version =
- new ServiceWorkerVersion(registration);
+ new ServiceWorkerVersion(registration, NULL, version_id);
registration->set_active_version(active_version);
registration->Shutdown();
@@ -54,12 +55,14 @@ TEST_F(ServiceWorkerRegistrationTest, ActivatePending) {
GURL("http://www.example.com/service_worker.js"),
registration_id);
+ const int64 version_1_id = 1L;
+ const int64 version_2_id = 2L;
scoped_refptr<ServiceWorkerVersion> version_1 =
- new ServiceWorkerVersion(registration);
+ new ServiceWorkerVersion(registration, NULL, version_1_id);
registration->set_active_version(version_1);
scoped_refptr<ServiceWorkerVersion> version_2 =
- new ServiceWorkerVersion(registration);
+ new ServiceWorkerVersion(registration, NULL, version_2_id);
registration->set_pending_version(version_2);
registration->ActivatePendingVersion();

Powered by Google App Engine
This is Rietveld 408576698