Searched defs:schema (Results 1 - 25 of 69) sorted by relevance

123

/external/chromium_org/extensions/test/data/
H A Djson_schema_test.js9 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
[all...]
/external/chromium_org/chrome/renderer/resources/extensions/
H A Dautomation_custom_bindings.js15 var schema = requireNative('automationInternal').GetSchemaAdditions(); variable
148 forEach(schema, function(k, v) {
/external/chromium_org/components/policy/core/common/
H A Dregistry_dict_win_unittest.cc10 #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));
H A Dgenerate_policy_source_unittest.cc12 #include "components/policy/core/common/schema.h"
44 if (!IsSameSchema(a_it.schema(), b_it.schema()))
58 Schema schema = Schema::Wrap(GetChromeSchemaData()); local
59 ASSERT_TRUE(schema.valid());
60 EXPECT_EQ(base::Value::TYPE_DICTIONARY, schema.type());
62 Schema subschema = schema.GetAdditionalProperties();
65 subschema = schema.GetProperty("no such policy exists");
68 subschema = schema.GetProperty(key::kSearchSuggestEnabled);
72 subschema = schema
[all...]
H A Dforwarding_policy_provider_unittest.cc15 #include "components/policy/core/common/schema.h"
54 Schema schema = Schema::Parse(kTestSchema, &error); local
55 if (!schema.valid())
57 return schema;
H A Dschema_registry_unittest.cc9 #include "components/policy/core/common/schema.h"
64 Schema schema = Schema::Parse(kTestSchema, &error); local
65 ASSERT_TRUE(schema.valid()) << error;
77 schema); local
84 schema); local
100 components["abc"] = schema;
101 components["def"] = schema;
102 components["xyz"] = schema;
139 Schema schema = Schema::Parse(kTestSchema, &error); local
140 ASSERT_TRUE(schema
150 schema); local
168 schema); local
174 schema); local
181 schema); local
230 schema); local
232 schema); local
[all...]
H A Dpolicy_loader_mac.cc23 #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();
122 LoadPolicyForComponent( const std::string& bundle_id_string, const Schema& schema, PolicyMap* policy) argument
H A Dschema_map.cc46 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);
H A Dschema_map_unittest.cc13 #include "components/policy/core/common/schema.h"
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;
59 component_map["extension-2"] = schema;
82 // The Chrome schema does not count as a component.
83 Schema schema = CreateTestSchema(); local
85 component_map[""] = schema;
113 const Schema* schema = local
126 Schema schema = Schema::Parse(kTestSchema, &error); local
247 Schema schema = Schema::Parse( local
[all...]
H A Dregistry_dict_win.cc15 #include "components/policy/core/common/schema.h"
24 // Converts a value (as read from the registry) to meet |schema|, converting
28 const Schema& schema) {
29 if (!schema.valid())
33 if (value.IsType(schema.type())) {
42 ConvertValue(entry.value(), schema.GetProperty(entry.key()));
52 ConvertValue(**entry, schema.GetItems());
64 switch (schema.type()) {
107 ConvertValue(*entry, schema.GetItems());
119 if (result && result->IsType(schema
27 ConvertValue(const base::Value& value, const Schema& schema) argument
[all...]
H A Dschema_internal.h47 int schema; member in struct:policy::internal::PropertyNode
/external/chromium_org/chrome/common/extensions/api/storage/
H A Dstorage_schema_manifest_handler_unittest.cc38 scoped_refptr<Extension> CreateExtension(const std::string& schema) { argument
45 base::FilePath schema_path = temp_dir_.path().AppendASCII("schema.json");
46 if (schema.empty()) {
49 if (base::WriteFile(schema_path, schema.data(), schema.size()) !=
50 static_cast<int>(schema.size())) {
57 testing::AssertionResult Validates(const std::string& schema) { argument
58 scoped_refptr<Extension> extension = CreateExtension(schema);
83 manifest_.SetString("storage.managed_schema", "schema.json");
107 manifest_.SetString("storage.managed_schema", "schema
[all...]
/external/chromium_org/third_party/libxml/src/
H A DtestRelax.c60 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 !
[all...]
H A DtestSchemas.c60 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);
/external/chromium_org/chrome/browser/extensions/api/proxy/
H A Dproxy_api_helpers_unittest.cc38 base::DictionaryValue* CreateTestProxyServerDict(const std::string& schema, argument
42 dict->SetString(keys::kProxyConfigRuleScheme, schema);
305 // Test simplest case, no schema nor port specified --> defaults are used.
/external/chromium_org/extensions/renderer/
H A Dv8_schema_registry.cc86 // 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/tools/json_to_struct/
H A Djson_to_struct.py6 # Format for the JSON schema file:
12 # "schema": [ // Fields of the generated structure.
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/xmp_toolkit/XMPCore/src/com/adobe/xmp/
H A DXMPMetaFactory.java31 private static XMPSchemaRegistry schema = new XMPSchemaRegistryImpl(); field in class:XMPMetaFactory
49 return schema;
241 * Resets the schema registry to its original state (creates a new one).
247 schema = new XMPSchemaRegistryImpl();
/external/chromium_org/chrome/browser/chromeos/login/supervised/
H A Dsupervised_user_login_flow.cc117 int schema = 0; local
123 password_data->GetIntegerWithoutPathExpansion(kSchemaVersion, &schema);
153 VLOG(1) << "Adding new schema key";
179 NOTREACHED() << "Unsupported password schema";
/external/chromium_org/chrome/browser/chromeos/policy/
H A Ddevice_policy_decoder_chromeos.cc24 #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/components/policy/core/browser/
H A Dconfiguration_policy_handler_unittest.cc14 #include "components/policy/core/common/schema.h"
34 TestSchemaValidatingPolicyHandler(const Schema& schema, argument
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
707 ASSERT_TRUE(schema.valid()) << error;
734 schema,
742 schema,
[all...]
/external/tagsoup/src/org/ccil/cowan/tagsoup/
H A DElementType.java17 This class represents an element type in the schema.
19 a flags vector, default attributes, and a schema to which it belongs.
33 private Schema theSchema; // schema to which this belongs
46 @param schema The schema with which this element type will be
50 public ElementType(String name, int model, int memberOf, int flags, Schema schema) { argument
56 theSchema = schema;
64 name if there is no prefix, or use the schema default instead.
160 Returns the schema which this element type is associated with.
161 @return The schema
164 public Schema schema() {return theSchema;} method in class:ElementType
[all...]
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
H A DUtils.java154 * @param schema
155 * a schema namespace
161 static boolean isInternalProperty(String schema, String prop) argument
165 if (NS_DC.equals(schema))
172 else if (NS_XMP.equals(schema))
181 else if (NS_PDF.equals(schema))
190 else if (NS_TIFF.equals(schema))
199 else if (NS_EXIF.equals(schema))
207 else if (NS_EXIF_AUX.equals(schema))
211 else if (NS_PHOTOSHOP.equals(schema))
[all...]
/external/chromium_org/chrome/browser/extensions/api/storage/
H A Dmanaged_value_store_cache.cc22 #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.
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())
212 schema = policy::Schema();
213 (*components)[(*it)->id()] = schema;
[all...]
H A Dsettings_apitest.cc38 #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());
465 schema
[all...]

Completed in 519 milliseconds

123