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

Unified Diff: net/quic/quic_network_transaction_unittest.cc

Issue 15896025: Change --origin-port-to-force-quic-on to --origin-to-force-quic-on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_network_transaction_unittest.cc
diff --git a/net/quic/quic_network_transaction_unittest.cc b/net/quic/quic_network_transaction_unittest.cc
index 257f1f3e3754af96688798ccb5f210a40a9a8d99..72fa6ce0c2903e6f478dae4b68bf9c80f0e78579 100644
--- a/net/quic/quic_network_transaction_unittest.cc
+++ b/net/quic/quic_network_transaction_unittest.cc
@@ -327,7 +327,8 @@ class QuicNetworkTransactionTest : public PlatformTest {
};
TEST_F(QuicNetworkTransactionTest, ForceQuic) {
- params_.origin_port_to_force_quic_on = 80;
+ params_.origin_to_force_quic_on =
+ HostPortPair::FromString("www.google.com:80");
QuicStreamId stream_id = 3;
scoped_ptr<QuicEncryptedPacket> req(
@@ -400,7 +401,8 @@ TEST_F(QuicNetworkTransactionTest, ForceQuic) {
}
TEST_F(QuicNetworkTransactionTest, ForceQuicWithErrorConnecting) {
- params_.origin_port_to_force_quic_on = 80;
+ params_.origin_to_force_quic_on =
+ HostPortPair::FromString("www.google.com:80");
MockRead quic_reads[] = {
MockRead(ASYNC, ERR_SOCKET_NOT_CONNECTED),
@@ -421,7 +423,8 @@ TEST_F(QuicNetworkTransactionTest, ForceQuicWithErrorConnecting) {
TEST_F(QuicNetworkTransactionTest, DoNotForceQuicForHttps) {
// Attempt to "force" quic on 443, which will not be honored.
- params_.origin_port_to_force_quic_on = 443;
+ params_.origin_to_force_quic_on =
+ HostPortPair::FromString("www.google.com:443");
MockRead http_reads[] = {
MockRead("HTTP/1.1 200 OK\r\n\r\n"),
« no previous file with comments | « net/http/http_stream_factory_impl_job.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698