Lines Matching refs:schema
12 #include "components/policy/core/common/schema.h"
25 bool IsSameSchema(Schema a, Schema b) {
36 Schema::Iterator a_it = a.GetPropertiesIterator();
37 Schema::Iterator b_it = b.GetPropertiesIterator();
43 if (!IsSameSchema(a_it.schema(), b_it.schema()))
56 Schema schema = Schema::Wrap(GetChromeSchemaData());
57 ASSERT_TRUE(schema.valid());
58 EXPECT_EQ(base::Value::TYPE_DICTIONARY, schema.type());
60 Schema subschema = schema.GetAdditionalProperties();
63 subschema = schema.GetProperty("no such policy exists");
66 subschema = schema.GetProperty(key::kSearchSuggestEnabled);
70 subschema = schema.GetProperty(key::kDefaultCookiesSetting);
74 subschema = schema.GetProperty(key::kProxyMode);
78 subschema = schema.GetProperty(key::kURLBlacklist);
84 subschema = schema.GetProperty(key::kProxySettings);
96 for (Schema::Iterator it = schema.GetPropertiesIterator();
113 for (Schema::Iterator it(subschema.GetPropertiesIterator());
117 ASSERT_TRUE(it.schema().valid());
118 EXPECT_EQ(base::Value::TYPE_STRING, it.schema().type());
123 subschema = schema.GetKnownProperty(key::kPowerManagementIdleSettings);
129 subschema = schema.GetKnownProperty(key::kDeviceLoginScreenPowerManagement);