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

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

Issue 1108273002: Add Client Attribute to FetchEvent- Chromium Side. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 cc8ceaf29d15b591cb312267ef815abee7a50169..d6ede6575daeb1f0746d6adcf31e2b612ae50ee6 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
@@ -123,14 +123,11 @@ TEST_F(ServiceWorkerControlleeRequestHandlerTest, DisallowServiceWorker) {
kDocUrl, net::DEFAULT_PRIORITY, &url_request_delegate_);
scoped_ptr<ServiceWorkerControlleeRequestHandler> handler(
new ServiceWorkerControlleeRequestHandler(
- context()->AsWeakPtr(),
- provider_host_,
+ context()->AsWeakPtr(), provider_host_,
base::WeakPtr<storage::BlobStorageContext>(),
- FETCH_REQUEST_MODE_NO_CORS,
- FETCH_CREDENTIALS_MODE_OMIT,
- RESOURCE_TYPE_MAIN_FRAME,
- REQUEST_CONTEXT_TYPE_HYPERLINK,
- REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL,
+ FETCH_REQUEST_MODE_NO_CORS, FETCH_CREDENTIALS_MODE_OMIT,
+ RESOURCE_TYPE_MAIN_FRAME, REQUEST_CONTEXT_TYPE_HYPERLINK,
+ REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL, ServiceWorkerClientInfo(),
scoped_refptr<ResourceRequestBody>()));
scoped_refptr<net::URLRequestJob> job =
handler->MaybeCreateJob(request.get(), NULL, &mock_resource_context_);
@@ -166,14 +163,11 @@ TEST_F(ServiceWorkerControlleeRequestHandlerTest, ActivateWaitingVersion) {
kDocUrl, net::DEFAULT_PRIORITY, &url_request_delegate_);
scoped_ptr<ServiceWorkerControlleeRequestHandler> handler(
new ServiceWorkerControlleeRequestHandler(
- context()->AsWeakPtr(),
- provider_host_,
+ context()->AsWeakPtr(), provider_host_,
base::WeakPtr<storage::BlobStorageContext>(),
- FETCH_REQUEST_MODE_NO_CORS,
- FETCH_CREDENTIALS_MODE_OMIT,
- RESOURCE_TYPE_MAIN_FRAME,
- REQUEST_CONTEXT_TYPE_HYPERLINK,
- REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL,
+ FETCH_REQUEST_MODE_NO_CORS, FETCH_CREDENTIALS_MODE_OMIT,
+ RESOURCE_TYPE_MAIN_FRAME, REQUEST_CONTEXT_TYPE_HYPERLINK,
+ REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL, ServiceWorkerClientInfo(),
scoped_refptr<ResourceRequestBody>()));
scoped_refptr<net::URLRequestJob> job =
handler->MaybeCreateJob(request.get(), NULL, &mock_resource_context_);
@@ -217,14 +211,11 @@ TEST_F(ServiceWorkerControlleeRequestHandlerTest, DeletedProviderHost) {
kDocUrl, net::DEFAULT_PRIORITY, &url_request_delegate_);
scoped_ptr<ServiceWorkerControlleeRequestHandler> handler(
new ServiceWorkerControlleeRequestHandler(
- context()->AsWeakPtr(),
- provider_host_,
+ context()->AsWeakPtr(), provider_host_,
base::WeakPtr<storage::BlobStorageContext>(),
- FETCH_REQUEST_MODE_NO_CORS,
- FETCH_CREDENTIALS_MODE_OMIT,
- RESOURCE_TYPE_MAIN_FRAME,
- REQUEST_CONTEXT_TYPE_HYPERLINK,
- REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL,
+ FETCH_REQUEST_MODE_NO_CORS, FETCH_CREDENTIALS_MODE_OMIT,
+ RESOURCE_TYPE_MAIN_FRAME, REQUEST_CONTEXT_TYPE_HYPERLINK,
+ REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL, ServiceWorkerClientInfo(),
scoped_refptr<ResourceRequestBody>()));
scoped_refptr<net::URLRequestJob> job =
handler->MaybeCreateJob(request.get(), NULL, &mock_resource_context_);

Powered by Google App Engine
This is Rietveld 408576698