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

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
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/policy_browsertest.cc
diff --git a/chrome/browser/policy/policy_browsertest.cc b/chrome/browser/policy/policy_browsertest.cc
index fc8bca08b5107a9a0eca2aa78676d40a7cd2ab7b..3f90b9d9eb1eae53ba310979e9509b64ab260ca4 100644
--- a/chrome/browser/policy/policy_browsertest.cc
+++ b/chrome/browser/policy/policy_browsertest.cc
@@ -1338,26 +1338,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
« no previous file with comments | « chrome/browser/net/net_pref_observer.cc ('k') | chrome/common/pref_names.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698