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

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

Issue 163433006: Updated the finalized list of policies supported on iOS for M34. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed unittests Created 6 years, 10 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 | « no previous file | components/policy/resources/policy_templates.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1ea1d3d179aadf62e42c00356399f3c6b7c158a0..a2b14624690e970f207c620e0d92928dd708268f 100644
--- a/components/policy/core/common/generate_policy_source_unittest.cc
+++ b/components/policy/core/common/generate_policy_source_unittest.cc
@@ -28,11 +28,11 @@ TEST(GeneratePolicySource, ChromeSchemaData) {
subschema = schema.GetProperty("no such policy exists");
EXPECT_FALSE(subschema.valid());
- subschema = schema.GetProperty(key::kAlternateErrorPagesEnabled);
+ subschema = schema.GetProperty(key::kSearchSuggestEnabled);
ASSERT_TRUE(subschema.valid());
EXPECT_EQ(base::Value::TYPE_BOOLEAN, subschema.type());
- subschema = schema.GetProperty(key::kIncognitoModeAvailability);
+ subschema = schema.GetProperty(key::kDefaultCookiesSetting);
ASSERT_TRUE(subschema.valid());
EXPECT_EQ(base::Value::TYPE_INTEGER, subschema.type());
@@ -88,16 +88,16 @@ TEST(GeneratePolicySource, ChromeSchemaData) {
TEST(GeneratePolicySource, PolicyDetails) {
EXPECT_FALSE(GetChromePolicyDetails(""));
EXPECT_FALSE(GetChromePolicyDetails("no such policy"));
- EXPECT_FALSE(GetChromePolicyDetails("AlternateErrorPagesEnable"));
- EXPECT_FALSE(GetChromePolicyDetails("alternateErrorPagesEnabled"));
- EXPECT_FALSE(GetChromePolicyDetails("AAlternateErrorPagesEnabled"));
+ EXPECT_FALSE(GetChromePolicyDetails("SearchSuggestEnable"));
+ EXPECT_FALSE(GetChromePolicyDetails("searchSuggestEnabled"));
+ EXPECT_FALSE(GetChromePolicyDetails("SSearchSuggestEnabled"));
const PolicyDetails* details =
- GetChromePolicyDetails(key::kAlternateErrorPagesEnabled);
+ GetChromePolicyDetails(key::kSearchSuggestEnabled);
ASSERT_TRUE(details);
EXPECT_FALSE(details->is_deprecated);
EXPECT_FALSE(details->is_device_policy);
- EXPECT_EQ(5, details->id);
+ EXPECT_EQ(6, details->id);
EXPECT_EQ(0u, details->max_external_data_size);
#if !defined(OS_IOS)
« no previous file with comments | « no previous file | components/policy/resources/policy_templates.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698