Index: net/http/http_network_transaction_unittest.cc |
=================================================================== |
--- net/http/http_network_transaction_unittest.cc (revision 121685) |
+++ net/http/http_network_transaction_unittest.cc (working copy) |
@@ -377,7 +377,7 @@ |
// This is the expected return from a current server advertising SPDY. |
static const char kAlternateProtocolHttpHeader[] = |
- "Alternate-Protocol: 443:npn-spdy/2.1\r\n\r\n"; |
+ "Alternate-Protocol: 443:npn-spdy/2\r\n\r\n"; |
// Helper functions for validating that AuthChallengeInfo's are correctly |
// configured for common cases. |
@@ -5480,7 +5480,7 @@ |
session->http_server_properties(); |
http_server_properties->SetAlternateProtocol( |
HostPortPair("host.with.alternate", 80), 443, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
return session; |
} |
@@ -6420,7 +6420,7 @@ |
http_server_properties.GetAlternateProtocol(http_host_port_pair); |
PortAlternateProtocolPair expected_alternate; |
expected_alternate.port = 443; |
- expected_alternate.protocol = NPN_SPDY_21; |
+ expected_alternate.protocol = NPN_SPDY_2; |
EXPECT_TRUE(expected_alternate.Equals(alternate)); |
HttpStreamFactory::set_use_alternate_protocols(false); |
@@ -6459,7 +6459,7 @@ |
http_server_properties->SetAlternateProtocol( |
HostPortPair::FromURL(request.url), |
666 /* port is ignored by MockConnect anyway */, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
scoped_ptr<HttpTransaction> trans(new HttpNetworkTransaction(session)); |
TestCompletionCallback callback; |
@@ -6521,7 +6521,7 @@ |
http_server_properties->SetAlternateProtocol( |
HostPortPair::FromURL(restricted_port_request.url), |
kUnrestrictedAlternatePort, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
scoped_ptr<HttpTransaction> trans(new HttpNetworkTransaction(session)); |
TestCompletionCallback callback; |
@@ -6570,7 +6570,7 @@ |
http_server_properties->SetAlternateProtocol( |
HostPortPair::FromURL(restricted_port_request.url), |
kRestrictedAlternatePort, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
scoped_ptr<HttpTransaction> trans(new HttpNetworkTransaction(session)); |
TestCompletionCallback callback; |
@@ -6619,7 +6619,7 @@ |
http_server_properties->SetAlternateProtocol( |
HostPortPair::FromURL(unrestricted_port_request.url), |
kRestrictedAlternatePort, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
scoped_ptr<HttpTransaction> trans(new HttpNetworkTransaction(session)); |
TestCompletionCallback callback; |
@@ -6668,7 +6668,7 @@ |
http_server_properties->SetAlternateProtocol( |
HostPortPair::FromURL(unrestricted_port_request.url), |
kUnrestrictedAlternatePort, |
- NPN_SPDY_21); |
+ NPN_SPDY_2); |
scoped_ptr<HttpTransaction> trans(new HttpNetworkTransaction(session)); |
TestCompletionCallback callback; |
@@ -8162,7 +8162,7 @@ |
MockRead data_reads_1[] = { |
MockRead(false, ERR_TEST_PEER_CLOSE_AFTER_NEXT_MOCK_READ), |
MockRead("HTTP/1.1 200 OK\r\n" |
- "Alternate-Protocol: 443:npn-spdy/2.1\r\n" |
+ "Alternate-Protocol: 443:npn-spdy/2\r\n" |
"Proxy-Connection: close\r\n" |
"\r\n"), |
}; |