| Index: net/http/http_network_transaction_unittest.cc
|
| diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc
|
| index e27fbcc263094440a321e79089a8f8846e2cfd83..aa1697483294bacbd641d580fc734200609885bc 100644
|
| --- a/net/http/http_network_transaction_unittest.cc
|
| +++ b/net/http/http_network_transaction_unittest.cc
|
| @@ -8785,11 +8785,11 @@ TEST_P(HttpNetworkTransactionTest,
|
|
|
| base::WeakPtr<HttpServerProperties> http_server_properties =
|
| session->http_server_properties();
|
| + const HostPortPair host_port_pair = HostPortPair::FromURL(request.url);
|
| // Port must be < 1024, or the header will be ignored (since initial port was
|
| // port 80 (another restricted port).
|
| http_server_properties->SetAlternateProtocol(
|
| - HostPortPair::FromURL(request.url),
|
| - 666 /* port is ignored by MockConnect anyway */,
|
| + host_port_pair, 666 /* port is ignored by MockConnect anyway */,
|
| AlternateProtocolFromNextProto(GetParam()), 1.0);
|
|
|
| scoped_ptr<HttpTransaction> trans(
|
| @@ -8810,10 +8810,12 @@ TEST_P(HttpNetworkTransactionTest,
|
| EXPECT_EQ("hello world", response_data);
|
|
|
| const AlternateProtocolInfo alternate =
|
| - http_server_properties->GetAlternateProtocol(
|
| - HostPortPair::FromURL(request.url));
|
| + http_server_properties->GetAlternateProtocol(host_port_pair);
|
| EXPECT_NE(UNINITIALIZED_ALTERNATE_PROTOCOL, alternate.protocol);
|
| - EXPECT_TRUE(alternate.is_broken);
|
| + const AlternativeService alternative_service(
|
| + alternate.protocol, host_port_pair.host(), alternate.port);
|
| + EXPECT_TRUE(
|
| + http_server_properties->IsAlternativeServiceBroken(alternative_service));
|
| }
|
|
|
| TEST_P(HttpNetworkTransactionTest,
|
|
|