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

Unified Diff: content/browser/service_worker/service_worker_controllee_request_handler_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_controllee_request_handler_unittest.cc
diff --git a/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc b/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc
index fa176b910e91d5d41ece8bf4bd81f3f6dadb3857..5c4be2fffdc687ff0f6a7c3663b98abce8762e20 100644
--- a/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc
+++ b/content/browser/service_worker/service_worker_controllee_request_handler_unittest.cc
@@ -110,10 +110,12 @@ class ServiceWorkerControlleeRequestHandlerTest : public testing::Test {
EmbeddedWorkerTestHelper::CreateHttpResponseInfo());
// An empty host.
+ remote_endpoints_.emplace_back();
std::unique_ptr<ServiceWorkerProviderHost> host =
CreateProviderHostForWindow(
helper_->mock_render_process_id(), kMockProviderId,
- true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr());
+ true /* is_parent_frame_secure */, helper_->context()->AsWeakPtr(),
+ &remote_endpoints_.back());
provider_host_ = host->AsWeakPtr();
context()->AddProviderHost(std::move(host));
@@ -140,6 +142,7 @@ class ServiceWorkerControlleeRequestHandlerTest : public testing::Test {
MockResourceContext mock_resource_context_;
GURL scope_;
GURL script_url_;
+ std::vector<ServiceWorkerRemoteProviderEndpoint> remote_endpoints_;
};
class ServiceWorkerTestContentBrowserClient : public TestContentBrowserClient {

Powered by Google App Engine
This is Rietveld 408576698