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

Unified Diff: net/spdy/spdy_network_transaction_unittest.cc

Issue 987123002: Advertise HTTP/2 support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_network_transaction_unittest.cc
diff --git a/net/spdy/spdy_network_transaction_unittest.cc b/net/spdy/spdy_network_transaction_unittest.cc
index a79d76a8bfeda79de4db1cc1d6eda1dfa4ec46c8..a790772f506708e4c6eb16b7a53f6974182814dd 100644
--- a/net/spdy/spdy_network_transaction_unittest.cc
+++ b/net/spdy/spdy_network_transaction_unittest.cc
@@ -731,7 +731,10 @@ INSTANTIATE_TEST_CASE_P(
SpdyNetworkTransactionTestParams(kProtoSPDY4_14, SPDYNPN),
SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYNOSSL),
SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYSSL),
- SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYNPN)));
+ SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYNPN),
+ SpdyNetworkTransactionTestParams(kProtoSPDY4, SPDYNOSSL),
+ SpdyNetworkTransactionTestParams(kProtoSPDY4, SPDYSSL),
+ SpdyNetworkTransactionTestParams(kProtoSPDY4, SPDYNPN)));
// Verify HttpNetworkTransaction constructor.
TEST_P(SpdyNetworkTransactionTest, Constructor) {
@@ -4622,6 +4625,7 @@ TEST_P(SpdyNetworkTransactionTest, HTTP11RequiredRetry) {
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY31);
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4_14);
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4_15);
+ ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4);
// Force SPDY.
ssl_provider0->SetNextProto(GetParam().protocol);
helper.AddDataWithSSLSocketDataProvider(&data0, ssl_provider0.Pass());
@@ -4715,6 +4719,7 @@ TEST_P(SpdyNetworkTransactionTest, HTTP11RequiredProxyRetry) {
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY31);
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4_14);
ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4_15);
+ ssl_provider0->next_protos_expected_in_ssl_config.push_back(kProtoSPDY4);
// Force SPDY.
ssl_provider0->SetNextProto(GetParam().protocol);
helper.AddDataWithSSLSocketDataProvider(&data0, ssl_provider0.Pass());
@@ -6806,9 +6811,9 @@ class SpdyNetworkTransactionTLSUsageCheckTest
INSTANTIATE_TEST_CASE_P(
Spdy,
SpdyNetworkTransactionTLSUsageCheckTest,
- ::testing::Values(
- SpdyNetworkTransactionTestParams(kProtoSPDY4_14, SPDYNPN),
- SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYNPN)));
+ ::testing::Values(SpdyNetworkTransactionTestParams(kProtoSPDY4_14, SPDYNPN),
+ SpdyNetworkTransactionTestParams(kProtoSPDY4_15, SPDYNPN),
+ SpdyNetworkTransactionTestParams(kProtoSPDY4, SPDYNPN)));
TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSVersionTooOld) {
scoped_ptr<SSLSocketDataProvider> ssl_provider(
« no previous file with comments | « net/spdy/spdy_http_stream_unittest.cc ('k') | net/spdy/spdy_proxy_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698