HomeSort by relevance Sort by last modified time
    Searched defs:schema (Results 1 - 25 of 49) sorted by null

1 2

  /external/chromium_org/extensions/test/data/
json_schema_test.js 9 function assertValid(type, instance, schema, types) {
13 validator["validate" + type](instance, schema, "");
25 function assertNotValid(type, instance, schema, errors, types) {
29 validator["validate" + type](instance, schema, "");
75 var schema = {
117 assertValid("", instance, schema);
119 assertValid("", instance, schema);
122 assertNotValid("", instance, schema,
127 assertNotValid("", instance, schema,
129 [schema.items[0].properties.url.pattern])])
    [all...]
  /external/chromium_org/chrome/renderer/resources/extensions/
automation_custom_bindings.js 15 var schema = requireNative('automationInternal').GetSchemaAdditions(); variable
148 forEach(schema, function(k, v) {
  /external/chromium_org/components/policy/core/common/
registry_dict_win_unittest.cc 10 #include "components/policy/core/common/schema.h"
214 Schema schema = Schema::Parse( local
230 ASSERT_TRUE(schema.valid()) << error;
232 scoped_ptr<base::Value> actual(test_dict.ConvertToJSON(schema));
generate_policy_source_unittest.cc 12 #include "components/policy/core/common/schema.h"
26 bool IsSameSchema(Schema a, Schema b) {
37 Schema::Iterator a_it = a.GetPropertiesIterator();
38 Schema::Iterator b_it = b.GetPropertiesIterator();
44 if (!IsSameSchema(a_it.schema(), b_it.schema()))
58 Schema schema = Schema::Wrap(GetChromeSchemaData()) local
    [all...]
schema_registry_unittest.cc 9 #include "components/policy/core/common/schema.h"
64 Schema schema = Schema::Parse(kTestSchema, &error); local
65 ASSERT_TRUE(schema.valid()) << error;
77 schema); local
80 // Re-register also triggers notifications, because the Schema might have
84 schema); local
100 components["abc"] = schema;
101 components["def"] = schema;
139 Schema schema = Schema::Parse(kTestSchema, &error); local
150 schema); local
168 schema); local
174 schema); local
181 schema); local
230 schema); local
232 schema); local
    [all...]
forwarding_policy_provider_unittest.cc 15 #include "components/policy/core/common/schema.h"
52 Schema CreateTestSchema() {
54 Schema schema = Schema::Parse(kTestSchema, &error); local
55 if (!schema.valid())
57 return schema;
policy_loader_mac.cc 23 #include "components/policy/core/common/schema.h"
58 const Schema* schema = local
60 for (Schema::Iterator it = schema->GetPropertiesIterator();
124 const Schema& schema,
127 // without a schema, to allow a graceful update of the Legacy Browser Support
129 if (!schema.valid())
136 for (Schema::Iterator it = schema.GetPropertiesIterator()
    [all...]
schema_map.cc 31 const Schema* SchemaMap::GetSchema(const PolicyNamespace& ns) const {
46 const Schema* schema = GetSchema(it->first); local
48 if (!schema) {
53 // TODO(joaodasilva): if a component is registered but doesn't have a schema
64 if (!schema->valid()) {
75 Schema policy_schema = schema->GetProperty(policy_name);
schema_map_unittest.cc 13 #include "components/policy/core/common/schema.h"
47 Schema CreateTestSchema() {
49 Schema schema = Schema::Parse(kTestSchema, &error); local
50 if (!schema.valid())
52 return schema;
56 Schema schema = CreateTestSchema(); local
58 component_map["extension-1"] = schema;
83 Schema schema = CreateTestSchema(); local
113 const Schema* schema = local
126 Schema schema = Schema::Parse(kTestSchema, &error); local
247 Schema schema = Schema::Parse( local
    [all...]
schema_internal.h 47 int schema; member in struct:policy::internal::PropertyNode
configuration_policy_provider_test.cc 140 Schema schema = Schema::Parse(schema_string, &error); local
141 if (schema.valid()) {
142 schema_registry_.RegisterComponent(ns, schema);
179 Schema chrome_schema = *schema_registry_.schema_map()->GetSchema(chrome_ns);
180 Schema extension_schema =
schema_unittest.cc 5 #include "components/policy/core/common/schema.h"
133 Schema schema = Schema::Parse(content, &error); local
134 if (schema.valid())
141 Schema schema,
148 // Test that Schema::Validate() works as expected.
150 bool returned = schema.Validate(value, strategy, NULL, &error);
153 // Test that Schema::Normalize() will return the same value a
257 Schema schema = Schema::Parse( local
294 Schema schema = Schema::Parse(kTestSchema, &error); local
426 Schema schema = Schema::Parse("{ \\"type\\": \\"object\\" }", &error); local
542 Schema schema = Schema::Wrap(&kData); local
601 Schema schema = Schema::Parse(kTestSchema, &error); local
978 Schema schema = Schema::Parse( local
1028 Schema schema = Schema::Parse( local
1059 Schema schema = Schema::Parse( local
1098 Schema schema = Schema::Parse( local
    [all...]
  /external/chromium_org/third_party/libxml/src/
testRelax.c 60 xmlRelaxNGPtr schema = NULL; local
84 if (schema == NULL) {
107 schema = xmlRelaxNGParse(ctxt);
118 schema = xmlRelaxNGParse(ctxt);
121 if (schema == NULL) {
122 printf("Relax-NG schema %s failed to compile\n", argv[i]);
129 xmlRelaxNGDump(stdout, schema);
132 xmlRelaxNGDumpTree(stdout, schema);
145 ctxt = xmlRelaxNGNewValidCtxt(schema);
166 if (schema != NULL
    [all...]
testSchemas.c 2 * testSchemas.c : a small tester program for Schema validation
60 xmlSchemaPtr schema = NULL; local
80 if (schema == NULL) {
103 schema = xmlSchemaParse(ctxt);
114 schema = xmlSchemaParse(ctxt);
120 xmlSchemaDump(stdout, schema);
123 if (schema == NULL)
136 ctxt = xmlSchemaNewValidCtxt(schema);
157 if (schema != NULL)
158 xmlSchemaFree(schema);
    [all...]
  /external/chromium_org/extensions/renderer/
v8_schema_registry.cc 86 // Slow path: Need to build schema first.
93 const base::DictionaryValue* schema = local
95 CHECK(schema) << api;
97 v8::Handle<v8::Value> value = v8_value_converter->ToV8Value(schema, context);
  /external/chromium_org/components/policy/core/browser/
configuration_policy_handler_unittest.cc 14 #include "components/policy/core/common/schema.h"
34 TestSchemaValidatingPolicyHandler(const Schema& schema,
36 : SchemaValidatingPolicyHandler("PolicyForTesting", schema, strategy) {}
647 Schema schema = Schema::Parse(kSchemaJson, &error); local
648 ASSERT_TRUE(schema.valid()) << error;
668 TestSchemaValidatingPolicyHandler handler(schema, SCHEMA_ALLOW_INVALID);
706 Schema schema = Schema::Parse(kSchemaJson, &error) local
    [all...]
  /external/chromium_org/tools/json_to_struct/
json_to_struct.py 6 # Format for the JSON schema file:
12 # "schema": [ // Fields of the generated structure.
70 // GENERATED FROM THE SCHEMA DEFINITION AND DESCRIPTION IN
83 def _GenerateH(basepath, fileroot, head, namespace, schema, description):
85 by the schema.
93 schema: A dict containing the schema. See comment at the top of this file.
110 for header in schema.get('headers', []):
119 schema['type_name'], schema['schema'])
206 schema = _Load(opts.schema) variable
    [all...]
  /external/chromium_org/chrome/browser/chromeos/login/supervised/
supervised_user_login_flow.cc 117 int schema = 0; local
123 password_data->GetIntegerWithoutPathExpansion(kSchemaVersion, &schema);
143 SupervisedUserAuthentication::Schema current_schema =
153 VLOG(1) << "Adding new schema key";
179 NOTREACHED() << "Unsupported password schema";
supervised_user_authentication.cc 99 SupervisedUserAuthentication::Schema
123 NOTREACHED() << "Unknown password schema for " << context.GetUserID();
132 Schema schema = stable_schema_; local
133 if (schema == SCHEMA_PLAIN)
136 if (schema == SCHEMA_SALT_HASHED) {
137 password_data->SetIntegerWithoutPathExpansion(kSchemaVersion, schema);
186 SupervisedUserAuthentication::Schema
194 Schema schema_version = SCHEMA_PLAIN;
197 schema_version = static_cast<Schema>(schema_version_index)
    [all...]
  /external/chromium_org/chrome/browser/chromeos/policy/
device_policy_decoder_chromeos.cc 24 #include "components/policy/core/common/schema.h"
52 // according to a policy schema. |policy_name| is the name of a policy schema
67 const Schema& schema = g_browser_process local
72 if (schema.valid()) {
76 if (!schema.Normalize(
88 LOG(WARNING) << "Unknown or invalid policy schema for " << policy_name
  /external/chromium_org/chrome/browser/extensions/api/storage/
managed_value_store_cache.cc 22 #include "components/policy/core/common/schema.h"
89 // Starts a schema load for all extensions that use managed storage.
171 // Load the schema files in a background thread.
201 (*components)[(*it)->id()] = policy::Schema();
204 // The extension should have been validated, so assume the schema exists
207 policy::Schema schema = local
209 // If the schema is invalid then proceed with an empty schema. The extension
211 if (!schema.valid()
    [all...]
settings_apitest.cc 38 #include "components/policy/core/common/schema.h"
452 // Verify that its schema has been published, and verify its contents.
453 const policy::Schema* schema = local
456 ASSERT_TRUE(schema);
458 ASSERT_TRUE(schema->valid());
459 ASSERT_EQ(base::Value::TYPE_DICTIONARY, schema->type());
460 ASSERT_TRUE(schema->GetKnownProperty("string-policy").valid());
462 schema->GetKnownProperty("string-policy").type());
463 ASSERT_TRUE(schema->GetKnownProperty("int-policy").valid())
    [all...]
  /external/chromium_org/chrome/common/extensions/api/
extension_api_unittest.cc 784 static void GetDictionaryFromList(const base::DictionaryValue* schema,
789 EXPECT_TRUE(schema->GetList(list_name, &list));
808 const base::DictionaryValue* schema = api.GetSchema("test.foo"); local
    [all...]
  /external/chromium_org/components/policy/core/common/cloud/
component_cloud_policy_service_unittest.cc 25 #include "components/policy/core/common/schema.h"
225 Schema CreateTestSchema() {
227 Schema schema = Schema::Parse(kTestSchema, &error); local
228 EXPECT_TRUE(schema.valid()) << error;
229 return schema;
361 // because the new schema may filter different policies from the store.
541 // loaded, the other should be filtered out by the schema.
  /external/chromium_org/extensions/common/
extension_api.cc 44 const base::StringPiece& schema) {
48 schema,
60 CHECK(result.get()) << error_message << " for schema " << schema; local
61 CHECK(result->IsType(base::Value::TYPE_LIST)) << " for schema " << schema;
110 // with key |key| in |schema| will be updated to |schema_namespace| + "." +
111 // |schema[key]|.
113 base::DictionaryValue* schema,
115 if (!schema->HasKey(key)
218 base::DictionaryValue* schema = NULL; local
    [all...]

Completed in 457 milliseconds

1 2