Index: chrome/browser/io_thread_unittest.cc |
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc |
index abf93c2ea2326e5b81e962633a9893714d766bd0..aee5250e52ff4b2fd1725eda0b32eddb3decf23f 100644 |
--- a/chrome/browser/io_thread_unittest.cc |
+++ b/chrome/browser/io_thread_unittest.cc |
@@ -603,6 +603,23 @@ TEST_F(IOThreadTest, QuicDelayTcpConnection) { |
EXPECT_TRUE(params.quic_delay_tcp_race); |
} |
+TEST_F(IOThreadTest, QuicOriginsToForceQuicOn) { |
+ command_line_.AppendSwitch("enable-quic"); |
+ command_line_.AppendSwitchASCII("origin-to-force-quic-on", |
+ "www.example.com:443, www.example.org:443"); |
+ |
+ ConfigureQuicGlobals(); |
+ net::HttpNetworkSession::Params params; |
+ InitializeNetworkSessionParams(¶ms); |
+ EXPECT_EQ(2u, params.origins_to_force_quic_on.size()); |
+ EXPECT_TRUE( |
+ ContainsKey(params.origins_to_force_quic_on, |
+ net::HostPortPair::FromString("www.example.com:443"))); |
+ EXPECT_TRUE( |
+ ContainsKey(params.origins_to_force_quic_on, |
+ net::HostPortPair::FromString("www.example.org:443"))); |
+} |
+ |
TEST_F(IOThreadTest, QuicWhitelistFromCommandLinet) { |
command_line_.AppendSwitch("enable-quic"); |
command_line_.AppendSwitchASCII("quic-host-whitelist", |