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

Unified Diff: net/quic/quic_network_transaction_unittest.cc

Issue 25977005: [SPDY] Do not advertise SPDY/2 by default (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 2 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/http/http_stream_factory_impl_unittest.cc ('k') | net/socket/next_proto.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_network_transaction_unittest.cc
diff --git a/net/quic/quic_network_transaction_unittest.cc b/net/quic/quic_network_transaction_unittest.cc
index a6cbff1b81aa582bb8698686ea99754078ea66b6..a9438c4dbd1fc1922f3bcbfc8958adc7fa8fbf34 100644
--- a/net/quic/quic_network_transaction_unittest.cc
+++ b/net/quic/quic_network_transaction_unittest.cc
@@ -456,7 +456,7 @@ TEST_F(QuicNetworkTransactionTest, DoNotForceQuicForHttps) {
}
TEST_F(QuicNetworkTransactionTest, UseAlternateProtocolForQuic) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
MockRead http_reads[] = {
MockRead("HTTP/1.1 200 OK\r\n"),
@@ -509,7 +509,7 @@ TEST_F(QuicNetworkTransactionTest, UseAlternateProtocolForQuicForHttps) {
params_.origin_to_force_quic_on =
HostPortPair::FromString("www.google.com:443");
params_.enable_quic_https = true;
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
MockRead http_reads[] = {
MockRead("HTTP/1.1 200 OK\r\n"),
@@ -559,7 +559,7 @@ TEST_F(QuicNetworkTransactionTest, UseAlternateProtocolForQuicForHttps) {
}
TEST_F(QuicNetworkTransactionTest, HungAlternateProtocol) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
crypto_client_stream_factory_.set_handshake_mode(
MockCryptoClientStream::COLD_START);
@@ -618,7 +618,7 @@ TEST_F(QuicNetworkTransactionTest, HungAlternateProtocol) {
}
TEST_F(QuicNetworkTransactionTest, ZeroRTTWithHttpRace) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
scoped_ptr<QuicEncryptedPacket> req(
ConstructDataPacket(1, 3, true, true, 0,
@@ -655,7 +655,7 @@ TEST_F(QuicNetworkTransactionTest, ZeroRTTWithHttpRace) {
}
TEST_F(QuicNetworkTransactionTest, ZeroRTTWithNoHttpRace) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
scoped_ptr<QuicEncryptedPacket> req(
ConstructDataPacket(1, 3, true, true, 0,
@@ -702,7 +702,7 @@ TEST_F(QuicNetworkTransactionTest, ZeroRTTWithNoHttpRace) {
}
TEST_F(QuicNetworkTransactionTest, ZeroRTTWithConfirmationRequired) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
scoped_ptr<QuicEncryptedPacket> req(
ConstructDataPacket(1, 3, true, true, 0,
@@ -761,7 +761,7 @@ TEST_F(QuicNetworkTransactionTest, ZeroRTTWithConfirmationRequired) {
}
TEST_F(QuicNetworkTransactionTest, BrokenAlternateProtocol) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
// Alternate-protocol job
scoped_ptr<QuicEncryptedPacket> close(ConstructConnectionClosePacket(1));
@@ -792,7 +792,7 @@ TEST_F(QuicNetworkTransactionTest, BrokenAlternateProtocol) {
}
TEST_F(QuicNetworkTransactionTest, BrokenAlternateProtocolReadError) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
// Alternate-protocol job
MockRead quic_reads[] = {
@@ -822,7 +822,7 @@ TEST_F(QuicNetworkTransactionTest, BrokenAlternateProtocolReadError) {
}
TEST_F(QuicNetworkTransactionTest, FailedZeroRttBrokenAlternateProtocol) {
- HttpStreamFactory::EnableNpnSpdy(); // Enables QUIC too.
+ HttpStreamFactory::EnableNpnSpdy3(); // Enables QUIC too.
// Alternate-protocol job
MockRead quic_reads[] = {
« no previous file with comments | « net/http/http_stream_factory_impl_unittest.cc ('k') | net/socket/next_proto.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698