Index: chrome/browser/io_thread_unittest.cc |
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc |
index 2633f43bbff2306aaa3c0b736b3035668f460e7f..e07d79720e4df36cd7669c3265ec1e4dff08d91d 100644 |
--- a/chrome/browser/io_thread_unittest.cc |
+++ b/chrome/browser/io_thread_unittest.cc |
@@ -200,6 +200,27 @@ TEST_F(IOThreadTest, EnableQuicFromCommandLine) { |
EXPECT_FALSE(IOThread::ShouldEnableQuicForDataReductionProxy()); |
} |
+TEST_F(IOThreadTest, EnableAlternativeServicesFromCommandLineWithQuicDisabled) { |
+ command_line_.AppendSwitch("enable-alternative-services"); |
+ |
+ ConfigureQuicGlobals(); |
+ net::HttpNetworkSession::Params params; |
+ InitializeNetworkSessionParams(¶ms); |
+ EXPECT_FALSE(params.enable_quic); |
+ EXPECT_TRUE(params.use_alternative_services); |
Ryan Hamilton
2015/09/08 17:50:06
Oh, interesting. Is this behavior we're expecting
Bence
2015/09/14 21:56:16
I really do not know. There is nothing QUIC-speci
|
+} |
+ |
+TEST_F(IOThreadTest, EnableAlternativeServicesFromCommandLineWithQuicEnabled) { |
+ command_line_.AppendSwitch("enable-quic"); |
+ command_line_.AppendSwitch("enable-alternative-services"); |
+ |
+ ConfigureQuicGlobals(); |
+ net::HttpNetworkSession::Params params; |
+ InitializeNetworkSessionParams(¶ms); |
+ EXPECT_TRUE(params.enable_quic); |
+ EXPECT_TRUE(params.use_alternative_services); |
+} |
+ |
TEST_F(IOThreadTest, EnableInsecureQuicFromFieldTrialParams) { |
field_trial_group_ = "Enabled"; |
field_trial_params_["enable_insecure_quic"] = "true"; |