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

Unified Diff: content/browser/service_worker/service_worker_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_request_handler_unittest.cc
diff --git a/content/browser/service_worker/service_worker_request_handler_unittest.cc b/content/browser/service_worker/service_worker_request_handler_unittest.cc
index d8f8d190c8f27d5e223276cad71e6e4bb02c15bf..c08c4cdebce3b3bd1b73a450e41078eba325176b 100644
--- a/content/browser/service_worker/service_worker_request_handler_unittest.cc
+++ b/content/browser/service_worker/service_worker_request_handler_unittest.cc
@@ -43,9 +43,10 @@ class ServiceWorkerRequestHandlerTest : public testing::Test {
// An empty host.
std::unique_ptr<ServiceWorkerProviderHost> host =
- CreateProviderHostForWindow(
- helper_->mock_render_process_id(), kMockProviderId,
- true /* is_parent_frame_secure */, context()->AsWeakPtr());
+ CreateProviderHostForWindow(helper_->mock_render_process_id(),
+ kMockProviderId,
+ true /* is_parent_frame_secure */,
+ context()->AsWeakPtr(), &remote_endpoint_);
provider_host_ = host->AsWeakPtr();
context()->AddProviderHost(std::move(host));
}
@@ -109,6 +110,7 @@ class ServiceWorkerRequestHandlerTest : public testing::Test {
net::URLRequestContext url_request_context_;
net::TestDelegate url_request_delegate_;
storage::BlobStorageContext blob_storage_context_;
+ ServiceWorkerRemoteProviderEndpoint remote_endpoint_;
};
TEST_F(ServiceWorkerRequestHandlerTest, InitializeHandler_FTP) {

Powered by Google App Engine
This is Rietveld 408576698