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

Unified Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc

Issue 105833010: Added Dev host for data reduction proxy controlled by Finch experiment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync to head. Created 6 years, 11 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: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
index 5d933974f79da97cd47fe9fd1e65d62d9ec6c0a9..62dd6c5b331a967606e9071fc54f6e302d75aa24 100644
--- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
+++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest.cc
@@ -38,6 +38,7 @@ using testing::AnyNumber;
using testing::Return;
const char kDataReductionProxyOrigin[] = "https://foo.com:443/";
+const char kDataReductionProxyDevHost[] = "http://foo-dev.com:80";
const char kDataReductionProxyFallback[] = "http://bar.com:80";
const char kDataReductionProxyAuth[] = "12345";
@@ -309,6 +310,15 @@ TEST_F(DataReductionProxySettingsTest, TestGetDataReductionProxyOrigin) {
EXPECT_EQ(kDataReductionProxyOrigin, result);
}
+TEST_F(DataReductionProxySettingsTest, TestGetDataReductionProxyDevOrigin) {
+ AddProxyToCommandLine();
+ CommandLine::ForCurrentProcess()->AppendSwitchASCII(
+ switches::kSpdyProxyDevAuthOrigin, kDataReductionProxyDevHost);
+ std::string result =
+ DataReductionProxySettings::GetDataReductionProxyOrigin();
+ EXPECT_EQ(kDataReductionProxyDevHost, result);
+}
+
TEST_F(DataReductionProxySettingsTest, TestGetDataReductionProxies) {
DataReductionProxySettings::DataReductionProxyList proxies =
DataReductionProxySettings::GetDataReductionProxies();

Powered by Google App Engine
This is Rietveld 408576698