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

Unified Diff: net/http/http_stream_factory_impl_request_unittest.cc

Issue 1540463003: Change the interface of GetAlternativeServicesFor, always return the best Alt-Svc entry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change hanging_data_ to vector Created 4 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
Index: net/http/http_stream_factory_impl_request_unittest.cc
diff --git a/net/http/http_stream_factory_impl_request_unittest.cc b/net/http/http_stream_factory_impl_request_unittest.cc
index 0704ebf1e48de00f286b9b5a23af9771918ef0bd..9e9c5d1f013c95a9ad12e3e4006f00cb7e75b7e7 100644
--- a/net/http/http_stream_factory_impl_request_unittest.cc
+++ b/net/http/http_stream_factory_impl_request_unittest.cc
@@ -80,14 +80,14 @@ TEST_P(HttpStreamFactoryImplRequestTest, SetPriority) {
GURL(), factory, &request_delegate, NULL, BoundNetLog(),
HttpStreamFactoryImpl::Request::HTTP_STREAM);
- HttpStreamFactoryImpl::Job* job =
- new HttpStreamFactoryImpl::Job(factory,
- session.get(),
- HttpRequestInfo(),
- DEFAULT_PRIORITY,
- SSLConfig(),
- SSLConfig(),
- NULL);
+ HttpRequestInfo request_info;
+
+ HostPortPair server = HostPortPair::FromURL(request_info.url);
+ GURL original_url = factory->ApplyHostMappingRules(request_info.url, &server);
+
+ HttpStreamFactoryImpl::Job* job = new HttpStreamFactoryImpl::Job(
+ factory, session.get(), request_info, DEFAULT_PRIORITY, SSLConfig(),
+ SSLConfig(), server, original_url, NULL);
request.AttachJob(job);
EXPECT_EQ(DEFAULT_PRIORITY, job->priority());

Powered by Google App Engine
This is Rietveld 408576698