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

Unified Diff: net/http/http_stream_factory_impl_unittest.cc

Issue 2373663002: Unify enum NextProto and enum AlternateProtocol. (Closed)
Patch Set: Fix compile errors. Created 4 years, 1 month 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/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | net/log/net_log_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 db1ca2d1fe9b100a2a3b30e7007c95ad207c2639..9ea8df492aa43761889b4caeea35f66c7f7f098f 100644
--- a/net/http/http_stream_factory_impl_unittest.cc
+++ b/net/http/http_stream_factory_impl_unittest.cc
@@ -1109,7 +1109,7 @@ TEST_F(HttpStreamFactoryTest, UsePreConnectIfNoZeroRTT) {
// Set up QUIC as alternative_service.
HttpServerPropertiesImpl http_server_properties;
- const AlternativeService alternative_service(QUIC, url.host().c_str(),
+ const AlternativeService alternative_service(kProtoQUIC, url.host().c_str(),
url.IntPort());
AlternativeServiceInfoVector alternative_service_info_vector;
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
@@ -1164,7 +1164,8 @@ TEST_F(HttpStreamFactoryTest, QuicDisablePreConnectIfZeroRtt) {
// Set up QUIC as alternative_service.
HttpServerPropertiesImpl http_server_properties;
- const AlternativeService alternative_service(QUIC, "www.google.com", 443);
+ const AlternativeService alternative_service(kProtoQUIC, "www.google.com",
+ 443);
AlternativeServiceInfoVector alternative_service_info_vector;
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
alternative_service_info_vector.push_back(
@@ -1794,7 +1795,8 @@ class HttpStreamFactoryBidirectionalQuicTest
}
void AddQuicAlternativeService() {
- const AlternativeService alternative_service(QUIC, "www.example.org", 443);
+ const AlternativeService alternative_service(kProtoQUIC, "www.example.org",
+ 443);
AlternativeServiceInfoVector alternative_service_info_vector;
base::Time expiration = base::Time::Now() + base::TimeDelta::FromDays(1);
alternative_service_info_vector.push_back(
@@ -2238,7 +2240,7 @@ TEST_F(HttpStreamFactoryTest, DISABLED_OrphanedWebSocketStream) {
session->http_server_properties()->SetAlternativeService(
url::SchemeHostPort(request_info.url.scheme(), host_port_pair.host(),
host_port_pair.port()),
- AlternativeService(NPN_HTTP_2, "www.google.com", 9999), expiration);
+ AlternativeService(kProtoHTTP2, "www.google.com", 9999), expiration);
SSLConfig ssl_config;
StreamRequestWaiter waiter;
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller_unittest.cc ('k') | net/log/net_log_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698