Commit bd6b1a5c authored by Matt Menke's avatar Matt Menke Committed by Chromium LUCI CQ

Fix AltSvcVersionSelection tests when network partitioning is enabled.

These tests were setting a NetworkIsolationKey for a simulated
received alternative service header, but not on the request that it was
intended to affect.

Bug: 969893
Change-Id: Id7eaa270e48db4303aca58b0536f7463398cc507
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2595827Reviewed-by: default avatarDavid Schinazi <dschinazi@chromium.org>
Commit-Queue: Matt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#838001}
parent 3a2cf168
......@@ -2953,11 +2953,12 @@ void HttpStreamFactoryJobControllerTest::TestAltSvcVersionSelection(
HttpRequestInfo request_info;
request_info.method = "GET";
request_info.url = GURL("https://example.com");
Initialize(request_info);
url::SchemeHostPort origin(request_info.url);
NetworkIsolationKey network_isolation_key(
SchemefulSite(GURL("https://example.com")),
SchemefulSite(GURL("https://example.com")));
request_info.network_isolation_key = network_isolation_key;
Initialize(request_info);
url::SchemeHostPort origin(request_info.url);
scoped_refptr<HttpResponseHeaders> headers(
base::MakeRefCounted<HttpResponseHeaders>(""));
headers->AddHeader("alt-svc", alt_svc_header);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment