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

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

Issue 2766603004: QUIC: mark QUIC handshake failed if connection is closed after CryptoConnect (Closed)
Patch Set: disable QuicUploadToAlternativeProxyServer Created 3 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 unified diff | Download patch
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 <memory> 5 #include <memory>
6 #include <ostream> 6 #include <ostream>
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2652 matching lines...) Expand 10 before | Expand all | Expand 10 after
2663 2663
2664 request_.url = GURL("https://www.example.org:443"); 2664 request_.url = GURL("https://www.example.org:443");
2665 AddHangingNonAlternateProtocolSocketData(); 2665 AddHangingNonAlternateProtocolSocketData();
2666 CreateSession(); 2666 CreateSession();
2667 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); 2667 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE);
2668 SendRequestAndExpectQuicResponse("hello!"); 2668 SendRequestAndExpectQuicResponse("hello!");
2669 EXPECT_TRUE( 2669 EXPECT_TRUE(
2670 test_socket_performance_watcher_factory_.rtt_notification_received()); 2670 test_socket_performance_watcher_factory_.rtt_notification_received());
2671 } 2671 }
2672 2672
2673 TEST_P(QuicNetworkTransactionTest, QuicUploadToAlternativeProxyServer) { 2673 // TODO(zhongyi): disabled this broken test as it is not testing the correct
2674 // code path. Need fix.
xunjieli 2017/03/23 16:18:02 Need a bug number here.
Zhongyi Shi 2017/03/23 17:28:50 Done.
2675 TEST_P(QuicNetworkTransactionTest,
2676 DISABLED_QuicUploadToAlternativeProxyServer) {
2674 base::HistogramTester histogram_tester; 2677 base::HistogramTester histogram_tester;
2675 proxy_service_ = 2678 proxy_service_ =
2676 ProxyService::CreateFixedFromPacResult("HTTPS mail.example.org:443"); 2679 ProxyService::CreateFixedFromPacResult("HTTPS mail.example.org:443");
2677 2680
2678 TestProxyDelegate test_proxy_delegate; 2681 TestProxyDelegate test_proxy_delegate;
2679 2682
2680 test_proxy_delegate.set_alternative_proxy_server( 2683 test_proxy_delegate.set_alternative_proxy_server(
2681 ProxyServer::FromPacString("QUIC mail.example.org:443")); 2684 ProxyServer::FromPacString("QUIC mail.example.org:443"));
2682 params_.proxy_delegate = &test_proxy_delegate; 2685 params_.proxy_delegate = &test_proxy_delegate;
2683 2686
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
3510 AddHangingSocketData(); 3513 AddHangingSocketData();
3511 3514
3512 SendRequestAndExpectQuicResponse(origin1_); 3515 SendRequestAndExpectQuicResponse(origin1_);
3513 SendRequestAndExpectQuicResponse(origin2_); 3516 SendRequestAndExpectQuicResponse(origin2_);
3514 3517
3515 EXPECT_TRUE(AllDataConsumed()); 3518 EXPECT_TRUE(AllDataConsumed());
3516 } 3519 }
3517 3520
3518 } // namespace test 3521 } // namespace test
3519 } // namespace net 3522 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698