| Index: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc
|
| diff --git a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc
|
| index 1903e0f030da847ef0ea363a15218a14d3b8b8e7..be4425fbf31397b223a1a97deea40052621b52de 100644
|
| --- a/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc
|
| +++ b/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_unittest_android.cc
|
| @@ -26,7 +26,11 @@ const char kDataReductionProxyDev[] = "http://foo-dev.com:80";
|
|
|
| template <class C>
|
| void data_reduction_proxy::DataReductionProxySettingsTestBase::ResetSettings(
|
| - bool allowed, bool fallback_allowed, bool alt_allowed, bool promo_allowed) {
|
| + bool allowed,
|
| + bool fallback_allowed,
|
| + bool alt_allowed,
|
| + bool promo_allowed,
|
| + bool holdback) {
|
| int flags = 0;
|
| if (allowed)
|
| flags |= DataReductionProxyParams::kAllowed;
|
| @@ -36,6 +40,8 @@ void data_reduction_proxy::DataReductionProxySettingsTestBase::ResetSettings(
|
| flags |= DataReductionProxyParams::kAlternativeAllowed;
|
| if (promo_allowed)
|
| flags |= DataReductionProxyParams::kPromoAllowed;
|
| + if (holdback)
|
| + flags |= DataReductionProxyParams::kHoldback;
|
| MockDataReductionProxySettings<C>* settings =
|
| new MockDataReductionProxySettings<C>(flags);
|
| EXPECT_CALL(*settings, GetOriginalProfilePrefs())
|
| @@ -81,7 +87,8 @@ data_reduction_proxy::DataReductionProxySettingsTestBase::ResetSettings<
|
| DataReductionProxySettingsAndroid>(bool allowed,
|
| bool fallback_allowed,
|
| bool alt_allowed,
|
| - bool promo_allowed);
|
| + bool promo_allowed,
|
| + bool holdback);
|
|
|
| template void
|
| data_reduction_proxy::DataReductionProxySettingsTestBase::SetProbeResult<
|
| @@ -125,7 +132,7 @@ TEST_F(DataReductionProxySettingsAndroidTest,
|
| CommandLine::ForCurrentProcess()->AppendSwitchASCII(
|
| data_reduction_proxy::switches::kDataReductionProxyDev,
|
| kDataReductionProxyDev);
|
| - ResetSettings(true, true, false, true);
|
| + ResetSettings(true, true, false, true, false);
|
| ScopedJavaLocalRef<jstring> result =
|
| Settings()->GetDataReductionProxyOrigin(env_, NULL);
|
| ASSERT_TRUE(result.obj());
|
|
|