Index: chrome/browser/policy/policy_browsertest.cc |
=================================================================== |
--- chrome/browser/policy/policy_browsertest.cc (revision 156023) |
+++ chrome/browser/policy/policy_browsertest.cc (working copy) |
@@ -641,13 +641,14 @@ |
provider_.UpdateChromePolicy(policies); |
content::RunAllPendingInMessageLoop(); |
EXPECT_FALSE(net::HttpStreamFactory::spdy_enabled()); |
- // Verify that it can be force-enabled too. |
+ // If SPDY is disabled (because of command line option), then verify policy |
+ // doesn't enable it. |
browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableSpdy, true); |
policies.Set(key::kDisableSpdy, POLICY_LEVEL_MANDATORY, |
POLICY_SCOPE_USER, base::Value::CreateBooleanValue(false)); |
provider_.UpdateChromePolicy(policies); |
content::RunAllPendingInMessageLoop(); |
- EXPECT_TRUE(net::HttpStreamFactory::spdy_enabled()); |
+ EXPECT_FALSE(net::HttpStreamFactory::spdy_enabled()); |
} |
IN_PROC_BROWSER_TEST_F(PolicyTest, DisabledPlugins) { |