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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 2625633002: Supporting changes in preparation of browser side mixed content checking. (Closed)
Patch Set: Address code review comments. Created 3 years, 11 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
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index 01c19d4eb58ff2859f378bdb8aa31ae23d8b665a..eb3c606c16e0a8d86201e719bd85dff3ad782019 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -269,6 +269,7 @@ class WebURLLoaderImplTest : public testing::Test {
void DoStartAsyncRequest() {
blink::WebURLRequest request{GURL(kTestURL)};
+ request.setRequestContext(blink::WebURLRequest::RequestContextInternal);
client()->loader()->loadAsynchronously(request, client());
ASSERT_TRUE(peer());
}
@@ -276,6 +277,7 @@ class WebURLLoaderImplTest : public testing::Test {
void DoStartAsyncRequestWithPriority(
blink::WebURLRequest::Priority priority) {
blink::WebURLRequest request{GURL(kTestURL)};
+ request.setRequestContext(blink::WebURLRequest::RequestContextInternal);
request.setPriority(priority);
client()->loader()->loadAsynchronously(request, client());
ASSERT_TRUE(peer());
@@ -668,6 +670,7 @@ TEST_F(WebURLLoaderImplTest, SyncLengths) {
const int kEncodedDataLength = 130;
const GURL url(kTestURL);
blink::WebURLRequest request(url);
+ request.setRequestContext(blink::WebURLRequest::RequestContextInternal);
// Prepare a mock response
SyncLoadResponse sync_load_response;
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | content/child/web_url_request_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698