| 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 <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 2644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2655 | 2655 |
| 2656 request_.url = GURL("https://www.example.org:443"); | 2656 request_.url = GURL("https://www.example.org:443"); |
| 2657 AddHangingNonAlternateProtocolSocketData(); | 2657 AddHangingNonAlternateProtocolSocketData(); |
| 2658 CreateSession(); | 2658 CreateSession(); |
| 2659 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); | 2659 AddQuicAlternateProtocolMapping(MockCryptoClientStream::CONFIRM_HANDSHAKE); |
| 2660 SendRequestAndExpectQuicResponse("hello!"); | 2660 SendRequestAndExpectQuicResponse("hello!"); |
| 2661 EXPECT_TRUE( | 2661 EXPECT_TRUE( |
| 2662 test_socket_performance_watcher_factory_.rtt_notification_received()); | 2662 test_socket_performance_watcher_factory_.rtt_notification_received()); |
| 2663 } | 2663 } |
| 2664 | 2664 |
| 2665 TEST_P(QuicNetworkTransactionTest, QuicUploadToAlternativeProxyServer) { | 2665 // TODO(zhongyi): disabled this broken test as it was not testing the correct |
| 2666 // code path. Need a fix to re-enable this test, tracking at crbug.com/704596. |
| 2667 TEST_P(QuicNetworkTransactionTest, |
| 2668 DISABLED_QuicUploadToAlternativeProxyServer) { |
| 2666 base::HistogramTester histogram_tester; | 2669 base::HistogramTester histogram_tester; |
| 2667 proxy_service_ = | 2670 proxy_service_ = |
| 2668 ProxyService::CreateFixedFromPacResult("HTTPS mail.example.org:443"); | 2671 ProxyService::CreateFixedFromPacResult("HTTPS mail.example.org:443"); |
| 2669 | 2672 |
| 2670 TestProxyDelegate test_proxy_delegate; | 2673 TestProxyDelegate test_proxy_delegate; |
| 2671 | 2674 |
| 2672 test_proxy_delegate.set_alternative_proxy_server( | 2675 test_proxy_delegate.set_alternative_proxy_server( |
| 2673 ProxyServer::FromPacString("QUIC mail.example.org:443")); | 2676 ProxyServer::FromPacString("QUIC mail.example.org:443")); |
| 2674 params_.proxy_delegate = &test_proxy_delegate; | 2677 params_.proxy_delegate = &test_proxy_delegate; |
| 2675 | 2678 |
| (...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3502 AddHangingSocketData(); | 3505 AddHangingSocketData(); |
| 3503 | 3506 |
| 3504 SendRequestAndExpectQuicResponse(origin1_); | 3507 SendRequestAndExpectQuicResponse(origin1_); |
| 3505 SendRequestAndExpectQuicResponse(origin2_); | 3508 SendRequestAndExpectQuicResponse(origin2_); |
| 3506 | 3509 |
| 3507 EXPECT_TRUE(AllDataConsumed()); | 3510 EXPECT_TRUE(AllDataConsumed()); |
| 3508 } | 3511 } |
| 3509 | 3512 |
| 3510 } // namespace test | 3513 } // namespace test |
| 3511 } // namespace net | 3514 } // namespace net |
| OLD | NEW |