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

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

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc Created 6 years, 2 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 c4dda14573bc175c692de177bd6b744b7ea3921e..419d25c7202f2007a6da2d8dff790063d5b065d6 100644
--- a/content/browser/service_worker/service_worker_request_handler_unittest.cc
+++ b/content/browser/service_worker/service_worker_request_handler_unittest.cc
@@ -12,6 +12,9 @@
#include "content/browser/service_worker/service_worker_registration.h"
#include "content/browser/service_worker/service_worker_utils.h"
#include "content/common/resource_request_body.h"
+#include "content/public/common/request_context_frame_type.h"
+#include "content/public/common/request_context_type.h"
+#include "content/public/common/resource_type.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "net/url_request/url_request_context.h"
#include "storage/browser/blob/blob_storage_context.h"
@@ -83,16 +86,19 @@ class ServiceWorkerRequestHandlerTest : public testing::Test {
scoped_ptr<net::URLRequest> request = url_request_context_.CreateRequest(
kDocUrl, net::DEFAULT_PRIORITY, &url_request_delegate_, NULL);
request->set_method(method);
- ServiceWorkerRequestHandler::InitializeHandler(request.get(),
- context_wrapper(),
- &blob_storage_context_,
- kMockRenderProcessId,
- kMockProviderId,
- skip_service_worker,
- FETCH_REQUEST_MODE_NO_CORS,
- FETCH_CREDENTIALS_MODE_OMIT,
- resource_type,
- NULL);
+ ServiceWorkerRequestHandler::InitializeHandler(
+ request.get(),
+ context_wrapper(),
+ &blob_storage_context_,
+ kMockRenderProcessId,
+ kMockProviderId,
+ skip_service_worker,
+ FETCH_REQUEST_MODE_NO_CORS,
+ FETCH_CREDENTIALS_MODE_OMIT,
+ resource_type,
+ REQUEST_CONTEXT_TYPE_HYPERLINK,
+ REQUEST_CONTEXT_FRAME_TYPE_TOP_LEVEL,
+ NULL);
return ServiceWorkerRequestHandler::GetHandler(request.get()) != NULL;
}

Powered by Google App Engine
This is Rietveld 408576698