OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); | 853 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); |
854 | 854 |
855 SendRequestAndExpectHttpResponse("hello from http"); | 855 SendRequestAndExpectHttpResponse("hello from http"); |
856 | 856 |
857 ExpectBrokenAlternateProtocolMapping(); | 857 ExpectBrokenAlternateProtocolMapping(); |
858 | 858 |
859 EXPECT_TRUE(quic_data.at_read_eof()); | 859 EXPECT_TRUE(quic_data.at_read_eof()); |
860 EXPECT_TRUE(quic_data.at_write_eof()); | 860 EXPECT_TRUE(quic_data.at_write_eof()); |
861 } | 861 } |
862 | 862 |
863 TEST_P(QuicNetworkTransactionTest, HangingZeroRttFallback) { | 863 TEST_P(QuicNetworkTransactionTest, DISABLED_HangingZeroRttFallback) { |
864 // Alternate-protocol job | 864 // Alternate-protocol job |
865 MockRead quic_reads[] = { | 865 MockRead quic_reads[] = { |
866 MockRead(ASYNC, ERR_IO_PENDING), | 866 MockRead(ASYNC, ERR_IO_PENDING), |
867 }; | 867 }; |
868 StaticSocketDataProvider quic_data(quic_reads, arraysize(quic_reads), | 868 StaticSocketDataProvider quic_data(quic_reads, arraysize(quic_reads), |
869 NULL, 0); | 869 NULL, 0); |
870 socket_factory_.AddSocketDataProvider(&quic_data); | 870 socket_factory_.AddSocketDataProvider(&quic_data); |
871 | 871 |
872 // Main job that will proceed when the QUIC job fails. | 872 // Main job that will proceed when the QUIC job fails. |
873 MockRead http_reads[] = { | 873 MockRead http_reads[] = { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
950 NULL, | 950 NULL, |
951 net_log_.bound()); | 951 net_log_.bound()); |
952 | 952 |
953 CreateSessionWithNextProtos(); | 953 CreateSessionWithNextProtos(); |
954 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); | 954 AddQuicAlternateProtocolMapping(MockCryptoClientStream::ZERO_RTT); |
955 SendRequestAndExpectHttpResponse("hello world"); | 955 SendRequestAndExpectHttpResponse("hello world"); |
956 } | 956 } |
957 | 957 |
958 } // namespace test | 958 } // namespace test |
959 } // namespace net | 959 } // namespace net |
OLD | NEW |