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(); |