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

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

Issue 2653493009: Add two interfaces for ServiceWorkerProviderContext/ProviderHost (Closed)
Patch Set: Addressed comments from falken Created 3 years, 7 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
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 6e1b4442fb11e27c93e2c7c13d359d158c95d60e..490f6ecaa2d366875611b5340f406115a332379d 100644
--- a/content/browser/service_worker/service_worker_registration_unittest.cc
+++ b/content/browser/service_worker/service_worker_registration_unittest.cc
@@ -258,7 +258,8 @@ class ServiceWorkerActivationTest : public ServiceWorkerRegistrationTest {
// Give the active version a controllee.
host_ = CreateProviderHostForWindow(
33 /* dummy render process id */, 1 /* dummy provider_id */,
- true /* is_parent_frame_secure */, context()->AsWeakPtr());
+ true /* is_parent_frame_secure */, context()->AsWeakPtr(),
+ &remote_endpoint_);
version_1->AddControllee(host_.get());
// Give the active version an in-flight request.
@@ -292,6 +293,7 @@ class ServiceWorkerActivationTest : public ServiceWorkerRegistrationTest {
private:
scoped_refptr<ServiceWorkerRegistration> registration_;
std::unique_ptr<ServiceWorkerProviderHost> host_;
+ ServiceWorkerRemoteProviderEndpoint remote_endpoint_;
int inflight_request_id_ = -1;
};

Powered by Google App Engine
This is Rietveld 408576698