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

Side by Side Diff: net/quic/quic_network_transaction_unittest.cc

Issue 343783003: Disable the QUIC handshake timeout until we cut Beta. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « net/quic/quic_client_session.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698