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

Unified Diff: net/http/http_stream_factory_impl_unittest.cc

Issue 2901093004: Add and persist a new field in AlternativeServiceInfo to list QUIC verisons advertised (Closed)
Patch Set: self review Created 3 years, 7 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_unittest.cc
diff --git a/net/http/http_stream_factory_impl_unittest.cc b/net/http/http_stream_factory_impl_unittest.cc
index d0432931b16f74768a2746c1dde3b200d1924fbb..8ed3c727b8b0defd14306c91b694257280ec7715 100644
--- a/net/http/http_stream_factory_impl_unittest.cc
+++ b/net/http/http_stream_factory_impl_unittest.cc
@@ -1107,8 +1107,9 @@ TEST_F(HttpStreamFactoryTest, UsePreConnectIfNoZeroRTT) {
url.IntPort());
AlternativeServiceInfoVector alternative_service_info_vector;
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
- alternative_service_info_vector.push_back(
- AlternativeServiceInfo(alternative_service, expiration));
+ alternative_service_info_vector.push_back(AlternativeServiceInfo(
+ alternative_service, expiration,
+ HttpNetworkSession::Params().quic_supported_versions));
HostPortPair host_port_pair(alternative_service.host_port_pair());
url::SchemeHostPort server("https", host_port_pair.host(),
host_port_pair.port());
@@ -2194,8 +2195,9 @@ class HttpStreamFactoryBidirectionalQuicTest
443);
AlternativeServiceInfoVector alternative_service_info_vector;
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
- alternative_service_info_vector.push_back(
- AlternativeServiceInfo(alternative_service, expiration));
+ alternative_service_info_vector.push_back(AlternativeServiceInfo(
+ alternative_service, expiration,
+ HttpNetworkSession::Params().quic_supported_versions));
http_server_properties_.SetAlternativeServices(
url::SchemeHostPort(default_url_), alternative_service_info_vector);
}

Powered by Google App Engine
This is Rietveld 408576698