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

Unified Diff: chrome/browser/policy/policy_browsertest.cc

Issue 2140733002: Remove HttpStreamFactory::spdy_enabled_ static member and accessors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index 968217e1f00c4a5b7f27ba3016620aecb1dcdfd6..a41e99a98248369a44deef928e1a38993e9a4956 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -1335,26 +1335,6 @@ IN_PROC_BROWSER_TEST_F(PolicyTest, Disable3DAPIs) {
EXPECT_TRUE(IsWebGLEnabled(contents));
}
-IN_PROC_BROWSER_TEST_F(PolicyTest, DisableSpdy) {
- // Verifies that SPDY can be disable by policy.
- EXPECT_TRUE(net::HttpStreamFactory::spdy_enabled());
- PolicyMap policies;
- policies.Set(key::kDisableSpdy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(true)), nullptr);
- UpdateProviderPolicy(policies);
- content::RunAllPendingInMessageLoop();
- EXPECT_FALSE(net::HttpStreamFactory::spdy_enabled());
- // Verify that it can be force-enabled too.
- browser()->profile()->GetPrefs()->SetBoolean(prefs::kDisableSpdy, true);
- policies.Set(key::kDisableSpdy, POLICY_LEVEL_MANDATORY, POLICY_SCOPE_USER,
- POLICY_SOURCE_CLOUD,
- base::WrapUnique(new base::FundamentalValue(false)), nullptr);
- UpdateProviderPolicy(policies);
- content::RunAllPendingInMessageLoop();
- EXPECT_TRUE(net::HttpStreamFactory::spdy_enabled());
-}
-
namespace {
// The following helpers retrieve whether https:// URL stripping is

Powered by Google App Engine
This is Rietveld 408576698