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

Unified Diff: components/policy/core/common/generate_policy_source_unittest.cc

Issue 132233031: Build with configuration_policy enabled on iOS by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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: components/policy/core/common/generate_policy_source_unittest.cc
diff --git a/components/policy/core/common/generate_policy_source_unittest.cc b/components/policy/core/common/generate_policy_source_unittest.cc
index 1eca86eee0adda45f6d29990ef07270cd3885b03..1ea1d3d179aadf62e42c00356399f3c6b7c158a0 100644
--- a/components/policy/core/common/generate_policy_source_unittest.cc
+++ b/components/policy/core/common/generate_policy_source_unittest.cc
@@ -40,7 +40,7 @@ TEST(GeneratePolicySource, ChromeSchemaData) {
ASSERT_TRUE(subschema.valid());
EXPECT_EQ(base::Value::TYPE_STRING, subschema.type());
- subschema = schema.GetProperty(key::kCookiesAllowedForUrls);
+ subschema = schema.GetProperty(key::kURLBlacklist);
ASSERT_TRUE(subschema.valid());
EXPECT_EQ(base::Value::TYPE_LIST, subschema.type());
ASSERT_TRUE(subschema.GetItems().valid());
@@ -100,12 +100,14 @@ TEST(GeneratePolicySource, PolicyDetails) {
EXPECT_EQ(5, details->id);
EXPECT_EQ(0u, details->max_external_data_size);
+#if !defined(OS_IOS)
details = GetChromePolicyDetails(key::kJavascriptEnabled);
ASSERT_TRUE(details);
EXPECT_TRUE(details->is_deprecated);
EXPECT_FALSE(details->is_device_policy);
EXPECT_EQ(9, details->id);
EXPECT_EQ(0u, details->max_external_data_size);
+#endif
#if defined(OS_CHROMEOS)
details = GetChromePolicyDetails(key::kDevicePolicyRefreshRate);

Powered by Google App Engine
This is Rietveld 408576698