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

Side by Side Diff: content/browser/service_worker/service_worker_request_handler_unittest.cc

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/service_worker/service_worker_request_handler.h" 5 #include "content/browser/service_worker/service_worker_request_handler.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "content/browser/service_worker/embedded_worker_test_helper.h" 10 #include "content/browser/service_worker/embedded_worker_test_helper.h"
11 #include "content/browser/service_worker/service_worker_context_core.h" 11 #include "content/browser/service_worker/service_worker_context_core.h"
12 #include "content/browser/service_worker/service_worker_context_wrapper.h" 12 #include "content/browser/service_worker/service_worker_context_wrapper.h"
13 #include "content/browser/service_worker/service_worker_provider_host.h" 13 #include "content/browser/service_worker/service_worker_provider_host.h"
14 #include "content/browser/service_worker/service_worker_test_utils.h" 14 #include "content/browser/service_worker/service_worker_test_utils.h"
15 #include "content/common/resource_request_body_impl.h"
16 #include "content/common/service_worker/service_worker_utils.h" 15 #include "content/common/service_worker/service_worker_utils.h"
17 #include "content/public/common/request_context_frame_type.h" 16 #include "content/public/common/request_context_frame_type.h"
18 #include "content/public/common/request_context_type.h" 17 #include "content/public/common/request_context_type.h"
19 #include "content/public/common/resource_type.h" 18 #include "content/public/common/resource_type.h"
20 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
21 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h" 20 #include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
22 #include "net/url_request/redirect_info.h" 21 #include "net/url_request/redirect_info.h"
23 #include "net/url_request/url_request_context.h" 22 #include "net/url_request/url_request_context.h"
24 #include "net/url_request/url_request_job.h" 23 #include "net/url_request/url_request_job.h"
25 #include "net/url_request/url_request_test_util.h" 24 #include "net/url_request/url_request_test_util.h"
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // Check provider host's URL after initializing a handler for an image. 161 // Check provider host's URL after initializing a handler for an image.
163 provider_host_->SetDocumentUrl(GURL("https://host/scope/doc")); 162 provider_host_->SetDocumentUrl(GURL("https://host/scope/doc"));
164 std::unique_ptr<net::URLRequest> request = 163 std::unique_ptr<net::URLRequest> request =
165 CreateRequest("https://host/scope/image", "GET"); 164 CreateRequest("https://host/scope/image", "GET");
166 InitializeHandler(request.get(), true, RESOURCE_TYPE_IMAGE); 165 InitializeHandler(request.get(), true, RESOURCE_TYPE_IMAGE);
167 ASSERT_FALSE(GetHandler(request.get())); 166 ASSERT_FALSE(GetHandler(request.get()));
168 EXPECT_EQ(GURL("https://host/scope/doc"), provider_host_->document_url()); 167 EXPECT_EQ(GURL("https://host/scope/doc"), provider_host_->document_url());
169 } 168 }
170 169
171 } // namespace content 170 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698