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

Unified Diff: chrome/browser/io_thread_unittest.cc

Issue 1309363003: Add flag to enable alternative services. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re: #3. Created 5 years, 3 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 | « chrome/browser/io_thread.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/io_thread_unittest.cc
diff --git a/chrome/browser/io_thread_unittest.cc b/chrome/browser/io_thread_unittest.cc
index 2d6a6c607fbe08a9ef70ffbe845c512a097b75bc..bc730062a40578a411999d6b5e370f6c40fde5bc 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(&params);
+ EXPECT_FALSE(params.enable_quic);
+ EXPECT_TRUE(params.use_alternative_services);
+}
+
+TEST_F(IOThreadTest, EnableAlternativeServicesFromCommandLineWithQuicEnabled) {
+ command_line_.AppendSwitch("enable-quic");
+ command_line_.AppendSwitch("enable-alternative-services");
+
+ ConfigureQuicGlobals();
+ net::HttpNetworkSession::Params params;
+ InitializeNetworkSessionParams(&params);
+ 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";
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698