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

Unified Diff: net/quic/quic_stream_factory_test.cc

Issue 1824903002: Change the AlternativeServiceMap with SchemeOriginPair key. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « net/quic/quic_stream_factory.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory_test.cc
diff --git a/net/quic/quic_stream_factory_test.cc b/net/quic/quic_stream_factory_test.cc
index 4e612585e1e6a1eeb65ae1561aa7eaf7595ab4d0..a42f96a4d48b13b7246701b721b9d45ae30e3b54 100644
--- a/net/quic/quic_stream_factory_test.cc
+++ b/net/quic/quic_stream_factory_test.cc
@@ -2527,9 +2527,11 @@ TEST_P(QuicStreamFactoryTest, RacingConnections) {
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
alternative_service_info_vector.push_back(
AlternativeServiceInfo(alternative_service1, expiration));
+ url::SchemeHostPort scheme_origin_pair("https", kDefaultServerHostName,
+ kDefaultServerPort);
http_server_properties_.SetAlternativeServices(
- host_port_pair_, alternative_service_info_vector);
+ scheme_origin_pair, alternative_service_info_vector);
crypto_client_stream_factory_.set_handshake_mode(
MockCryptoClientStream::ZERO_RTT);
@@ -3626,9 +3628,11 @@ TEST_P(QuicStreamFactoryTest, MaybeInitialize) {
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
alternative_service_info_vector.push_back(
AlternativeServiceInfo(alternative_service1, expiration));
+ url::SchemeHostPort scheme_origin_pair("https", kDefaultServerHostName,
+ kDefaultServerPort);
http_server_properties_.SetAlternativeServices(
- host_port_pair_, alternative_service_info_vector);
+ scheme_origin_pair, alternative_service_info_vector);
http_server_properties_.SetMaxServerConfigsStoredInProperties(
kMaxQuicServersToPersist);
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/spdy/spdy_network_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698