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

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

Issue 2822053002: Remove unused "Disable remote Alt-Svc" QUIC experiment code. (Closed)
Patch Set: network_session_configurator_unittest.cc Created 3 years, 8 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
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller.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 <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 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after
3008 false, true, 0, "hello!")); 3008 false, true, 0, "hello!"));
3009 mock_quic_data.AddWrite(ConstructClientAckPacket(3, 2, 1)); 3009 mock_quic_data.AddWrite(ConstructClientAckPacket(3, 2, 1));
3010 mock_quic_data.AddRead(ASYNC, ERR_IO_PENDING); // No more data to read 3010 mock_quic_data.AddRead(ASYNC, ERR_IO_PENDING); // No more data to read
3011 mock_quic_data.AddRead(ASYNC, 0); // EOF 3011 mock_quic_data.AddRead(ASYNC, 0); // EOF
3012 3012
3013 mock_quic_data.AddSocketDataToFactory(&socket_factory_); 3013 mock_quic_data.AddSocketDataToFactory(&socket_factory_);
3014 3014
3015 // There is no need to set up main job, because no attempt will be made to 3015 // There is no need to set up main job, because no attempt will be made to
3016 // speak to the proxy over TCP. 3016 // speak to the proxy over TCP.
3017 request_.url = GURL("http://mail.example.org/"); 3017 request_.url = GURL("http://mail.example.org/");
3018 params_.enable_quic_alternative_service_with_different_host = false;
3019 TestProxyDelegate test_proxy_delegate; 3018 TestProxyDelegate test_proxy_delegate;
3020 const HostPortPair host_port_pair("mail.example.org", 443); 3019 const HostPortPair host_port_pair("mail.example.org", 443);
3021 3020
3022 test_proxy_delegate.set_alternative_proxy_server( 3021 test_proxy_delegate.set_alternative_proxy_server(
3023 ProxyServer::FromPacString("QUIC mail.example.org:443")); 3022 ProxyServer::FromPacString("QUIC mail.example.org:443"));
3024 params_.proxy_delegate = &test_proxy_delegate; 3023 params_.proxy_delegate = &test_proxy_delegate;
3025 CreateSession(); 3024 CreateSession();
3026 EXPECT_TRUE(test_proxy_delegate.alternative_proxy_server().is_quic()); 3025 EXPECT_TRUE(test_proxy_delegate.alternative_proxy_server().is_quic());
3027 3026
3028 // The main job needs to hang in order to guarantee that the alternative 3027 // The main job needs to hang in order to guarantee that the alternative
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
4695 4694
4696 request_.url = GURL("https://mail.example.org/pushed.jpg"); 4695 request_.url = GURL("https://mail.example.org/pushed.jpg");
4697 ChunkedUploadDataStream upload_data(0); 4696 ChunkedUploadDataStream upload_data(0);
4698 upload_data.AppendData("1", 1, true); 4697 upload_data.AppendData("1", 1, true);
4699 request_.upload_data_stream = &upload_data; 4698 request_.upload_data_stream = &upload_data;
4700 SendRequestAndExpectQuicResponse("and hello!"); 4699 SendRequestAndExpectQuicResponse("and hello!");
4701 } 4700 }
4702 4701
4703 } // namespace test 4702 } // namespace test
4704 } // namespace net 4703 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl_job_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698