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

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc

Issue 903213003: Enable QUIC for proxies based on Finch config and command line switch. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments and removed code duplication. Created 5 years, 10 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
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
index 590671f99199a0a0f333e3489389fcd9c5bfdfe1..23ec251ec69e3facb783d948a3b0c5edb5177907 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_params_unittest.cc
@@ -81,6 +81,25 @@ TEST_F(DataReductionProxyParamsTest, NoDevOrigin) {
TestDataReductionProxyParams::DefaultProbeURL());
}
+TEST_F(DataReductionProxyParamsTest, QuicEnabled) {
+ TestDataReductionProxyParams params(
+ DataReductionProxyParams::kAllowed |
+ DataReductionProxyParams::kFallbackAllowed |
+ DataReductionProxyParams::kPromoAllowed,
+ TestDataReductionProxyParams::HAS_EVERYTHING &
+ ~TestDataReductionProxyParams::HAS_DEV_ORIGIN &
+ ~TestDataReductionProxyParams::HAS_DEV_FALLBACK_ORIGIN);
+
+ CheckParams(params, true, true, true, false, true);
+ CheckValues(params,
+ TestDataReductionProxyParams::DefaultOrigin(),
+ TestDataReductionProxyParams::DefaultFallbackOrigin(),
+ TestDataReductionProxyParams::DefaultSSLOrigin(),
+ TestDataReductionProxyParams::DefaultAltOrigin(),
+ TestDataReductionProxyParams::DefaultAltFallbackOrigin(),
+ TestDataReductionProxyParams::DefaultProbeURL());
+}
+
TEST_F(DataReductionProxyParamsTest, Flags) {
base::CommandLine::ForCurrentProcess()->AppendSwitchASCII(
switches::kDataReductionProxy,

Powered by Google App Engine
This is Rietveld 408576698