Home
last modified time | relevance | path

Searched refs:schema (Results 1 – 25 of 306) sorted by relevance

12345678910>>...13

/external/chromium_org/components/json_schema/
Djson_schema_validator_unittest_base.cc22 namespace schema = json_schema_constants;
92 scoped_ptr<base::DictionaryValue> schema( in TestComplex() local
96 ASSERT_TRUE(schema.get()); in TestComplex()
99 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); in TestComplex()
101 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); in TestComplex()
103 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1", in TestComplex()
106 schema::kNumber, in TestComplex()
107 schema::kObject)); in TestComplex()
114 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, in TestComplex()
125 scoped_ptr<base::DictionaryValue> schema(new base::DictionaryValue()); in TestStringPattern() local
[all …]
Djson_schema_validator.cc18 namespace schema = json_schema_constants;
31 schema::kAny, in IsValidType()
32 schema::kArray, in IsValidType()
33 schema::kBoolean, in IsValidType()
34 schema::kInteger, in IsValidType()
35 schema::kNull, in IsValidType()
36 schema::kNumber, in IsValidType()
37 schema::kObject, in IsValidType()
38 schema::kString, in IsValidType()
74 { schema::kRef, base::Value::TYPE_STRING }, in IsValidSchema()
[all …]
Djson_schema_validator.h114 const std::string& schema,
120 const std::string& schema,
129 explicit JSONSchemaValidator(base::DictionaryValue* schema);
139 JSONSchemaValidator(base::DictionaryValue* schema, base::ListValue* types);
180 const base::DictionaryValue* schema,
196 const base::DictionaryValue* schema,
201 const base::DictionaryValue* schema,
208 const base::DictionaryValue* schema,
213 const base::DictionaryValue* schema,
218 const base::DictionaryValue* schema,
[all …]
/external/chromium_org/chrome/renderer/resources/extensions/
Djson_schema.js172 JSONSchemaValidator.prototype.getAllTypesForSchema = function(schema) { argument
174 if (schema.type)
175 $Array.push(schemaTypes, schema.type);
176 if (schema.choices) {
177 for (var i = 0; i < schema.choices.length; i++) {
178 var choiceTypes = this.getAllTypesForSchema(schema.choices[i]);
182 var ref = schema['$ref'];
200 JSONSchemaValidator.prototype.isValidSchemaType = function(type, schema) { argument
205 if (schema.optional && (type == "null" || type == "undefined"))
208 var schemaTypes = this.getAllTypesForSchema(schema);
[all …]
Dbinding.js85 CustomBindingsObject.prototype.setSchema = function(schema) { argument
90 $Array.forEach(schema.functions, function(f) {
147 function Binding(schema) { argument
148 this.schema_ = schema;
149 this.apiFunctions_ = new APIFunctions(schema.namespace);
192 schema: this.schema_, property
201 var schema = this.schema_;
204 var shouldCheck = 'unprivileged' in schema;
209 if ($Object.hasOwnProperty(schema, type)) {
210 $Array.forEach(schema[type], function(node) {
[all …]
/external/chromium_org/tools/json_schema_compiler/
Didl_schema_test.py9 def getFunction(schema, name): argument
10 for item in schema['functions']:
16 def getParams(schema, name): argument
17 function = getFunction(schema, name)
21 def getReturns(schema, name): argument
22 function = getFunction(schema, name)
26 def getType(schema, id): argument
27 for item in schema['types']:
40 schema = self.idl_basics
42 self.assertEquals(expected, getParams(schema, 'function4'))
[all …]
/external/chromium/chrome/common/
Djson_schema_validator_unittest_base.cc85 scoped_ptr<DictionaryValue> schema(LoadDictionary("complex_schema.json")); in TestComplex() local
88 ASSERT_TRUE(schema.get()); in TestComplex()
91 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); in TestComplex()
93 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), NULL); in TestComplex()
95 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, "1", in TestComplex()
104 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), NULL, in TestComplex()
115 scoped_ptr<DictionaryValue> schema(new DictionaryValue()); in TestStringPattern() local
116 schema->SetString("type", "string"); in TestStringPattern()
117 schema->SetString("pattern", "foo+"); in TestStringPattern()
121 schema.get(), NULL); in TestStringPattern()
[all …]
Djson_schema_validator.cc140 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema) in JSONSchemaValidator() argument
141 : schema_root_(schema), default_allow_additional_properties_(false) { in JSONSchemaValidator()
144 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema, in JSONSchemaValidator() argument
146 : schema_root_(schema), default_allow_additional_properties_(false) { in JSONSchemaValidator()
171 DictionaryValue* schema, in Validate() argument
175 if (schema->GetString("id", &id)) { in Validate()
178 types_[id] = schema; in Validate()
180 CHECK(iter->second == schema); in Validate()
186 if (schema->GetString("$ref", &ref)) { in Validate()
200 if (schema->GetList("choices", &choices)) { in Validate()
[all …]
Djson_schema_validator.h104 explicit JSONSchemaValidator(DictionaryValue* schema);
114 JSONSchemaValidator(DictionaryValue* schema, ListValue* types);
154 void Validate(Value* instance, DictionaryValue* schema,
167 void ValidateObject(DictionaryValue* instance, DictionaryValue* schema,
171 void ValidateArray(ListValue* instance, DictionaryValue* schema,
177 void ValidateTuple(ListValue* instance, DictionaryValue* schema,
181 void ValidateString(StringValue* instance, DictionaryValue* schema,
185 void ValidateNumber(Value* instance, DictionaryValue* schema,
194 DictionaryValue* schema, DictionaryValue** addition_items_schema);
/external/chromium_org/components/policy/core/common/
Dschema_unittest.cc57 Schema schema = Schema::Parse(content, &error); in ParseFails() local
58 if (schema.valid()) in ParseFails()
124 Schema schema = Schema::Parse( in TEST() local
136 ASSERT_TRUE(schema.valid()) << error; in TEST()
137 ASSERT_EQ(base::Value::TYPE_DICTIONARY, schema.type()); in TEST()
139 schema = schema.GetKnownProperty("sub"); in TEST()
140 ASSERT_TRUE(schema.valid()); in TEST()
141 ASSERT_EQ(base::Value::TYPE_DICTIONARY, schema.type()); in TEST()
144 Schema::Iterator it = schema.GetPropertiesIterator(); in TEST()
148 schema = it.schema(); in TEST()
[all …]
Dschema.cc19 namespace schema = json_schema_constants;
62 { schema::kArray, base::Value::TYPE_LIST }, in SchemaTypeToValueType()
63 { schema::kBoolean, base::Value::TYPE_BOOLEAN }, in SchemaTypeToValueType()
64 { schema::kInteger, base::Value::TYPE_INTEGER }, in SchemaTypeToValueType()
65 { schema::kNull, base::Value::TYPE_NULL }, in SchemaTypeToValueType()
66 { schema::kNumber, base::Value::TYPE_DOUBLE }, in SchemaTypeToValueType()
67 { schema::kObject, base::Value::TYPE_DICTIONARY }, in SchemaTypeToValueType()
68 { schema::kString, base::Value::TYPE_STRING }, in SchemaTypeToValueType()
90 const base::DictionaryValue& schema,
96 return schema(0); in root_node()
[all …]
Dgenerate_policy_source_unittest.cc21 Schema schema = Schema::Wrap(GetChromeSchemaData()); in TEST() local
22 ASSERT_TRUE(schema.valid()); in TEST()
23 EXPECT_EQ(base::Value::TYPE_DICTIONARY, schema.type()); in TEST()
25 Schema subschema = schema.GetAdditionalProperties(); in TEST()
28 subschema = schema.GetProperty("no such policy exists"); in TEST()
31 subschema = schema.GetProperty(key::kAlternateErrorPagesEnabled); in TEST()
35 subschema = schema.GetProperty(key::kIncognitoModeAvailability); in TEST()
39 subschema = schema.GetProperty(key::kProxyMode); in TEST()
43 subschema = schema.GetProperty(key::kCookiesAllowedForUrls); in TEST()
49 subschema = schema.GetProperty(key::kProxySettings); in TEST()
[all …]
Dschema_map_unittest.cc49 Schema schema = Schema::Parse(kTestSchema, &error); in CreateTestSchema() local
50 if (!schema.valid()) in CreateTestSchema()
52 return schema; in CreateTestSchema()
56 Schema schema = CreateTestSchema(); in CreateTestMap() local
58 component_map["extension-1"] = schema; in CreateTestMap()
59 component_map["extension-2"] = schema; in CreateTestMap()
83 Schema schema = CreateTestSchema(); in TEST_F() local
85 component_map[""] = schema; in TEST_F()
113 const Schema* schema = in TEST_F() local
115 ASSERT_TRUE(schema); in TEST_F()
[all …]
Dschema_registry_unittest.cc55 Schema schema = Schema::Parse(kTestSchema, &error); in TEST() local
56 ASSERT_TRUE(schema.valid()) << error; in TEST()
70 schema); in TEST()
77 schema); in TEST()
93 components["abc"] = schema; in TEST()
94 components["def"] = schema; in TEST()
95 components["xyz"] = schema; in TEST()
133 Schema schema = Schema::Parse(kTestSchema, &error); in TEST() local
134 ASSERT_TRUE(schema.valid()) << error; in TEST()
144 schema); in TEST()
[all …]
/external/chromium_org/third_party/sqlite/src/test/
Dschema.test16 # $Id: schema.test,v 1.9 2009/02/04 17:40:58 drh Exp $
23 # CREATE/DROP TABLE...................................schema-1.*
24 # CREATE/DROP VIEW....................................schema-2.*
25 # CREATE/DROP TRIGGER.................................schema-3.*
26 # CREATE/DROP INDEX...................................schema-4.*
27 # DETACH..............................................schema-5.*
28 # Deleting a user-function............................schema-6.*
29 # Deleting a collation sequence.......................schema-7.*
30 # Setting or changing the authorization function......schema-8.*
31 # Rollback of a DDL statement.........................schema-12.*
[all …]
Dvtab2.test26 CREATE VIRTUAL TABLE schema USING schema;
27 SELECT * FROM schema;
30 main schema 0 database {} 0 {} 0 \
31 main schema 1 tablename {} 0 {} 0 \
32 main schema 2 cid {} 0 {} 0 \
33 main schema 3 name {} 0 {} 0 \
34 main schema 4 type {} 0 {} 0 \
35 main schema 5 not_null {} 0 {} 0 \
36 main schema 6 dflt_value {} 0 {} 0 \
37 main schema 7 pk {} 0 {} 0 \
[all …]
/external/chromium_org/chrome/common/extensions/docs/server2/
Dschema_util.py29 def DetectInlineableTypes(schema): argument
33 if not schema.get('types'):
39 stack = [schema]
50 for type_ in schema['types']:
56 def InlineDocs(schema): argument
59 types = schema.get('types')
74 schema['types'] = types_without_inline_doc
88 apply_inline(schema)
96 def trim_and_inline(schema, is_idl=False): argument
100 if RemoveNoDocs(schema):
[all …]
Dschema_util_test.py113 schema = {
172 inlined_schema = deepcopy(schema)
177 schema = {
203 DetectInlineableTypes(schema)
204 InlineDocs(schema)
205 self.assertEqual(expected_schema, schema)
/external/chromium_org/tools/json_to_struct/
Djson_to_struct.py83 def _GenerateH(basepath, fileroot, head, namespace, schema, description): argument
110 for header in schema.get('headers', []):
119 schema['type_name'], schema['schema']))
127 f.write('extern const %s %s;\n' % (schema['type_name'], element_name))
136 def _GenerateCC(basepath, fileroot, head, namespace, schema, description): argument
161 f.write(element_generator.GenerateElements(schema['type_name'],
162 schema['schema'], description))
190 if not opts.schema:
206 schema = _Load(opts.schema) variable
209 head = HEAD % (datetime.now().year, opts.schema, description_filename)
[all …]
/external/chromium_org/third_party/libxml/src/
Dcheck-xsddata-test-suite.py56 def handle_valid(node, schema): argument
87 ctxt = schema.relaxNGNewValidCtxt()
109 def handle_invalid(node, schema): argument
140 ctxt = schema.relaxNGNewValidCtxt()
168 schema = ""
172 schema = schema + child.serialize()
176 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema))
182 log.write(schema)
194 schema = ""
198 schema = schema + child.serialize()
[all …]
Dcheck-relaxng-test-suite2.py57 def handle_valid(node, schema): argument
88 ctxt = schema.relaxNGNewValidCtxt()
110 def handle_invalid(node, schema): argument
141 ctxt = schema.relaxNGNewValidCtxt()
170 schema = ""
174 schema = schema + child.serialize()
178 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema))
184 log.write(schema)
196 schema = ""
200 schema = schema + child.serialize()
[all …]
Dcheck-relaxng-test-suite.py70 def handle_valid(node, schema): argument
95 ctxt = schema.relaxNGNewValidCtxt()
111 def handle_invalid(node, schema): argument
135 ctxt = schema.relaxNGNewValidCtxt()
156 schema = ""
160 schema = schema + child.serialize()
164 rngp = libxml2.relaxNGNewMemParserCtxt(schema, len(schema))
170 log.write(schema)
182 schema = ""
186 schema = schema + child.serialize()
[all …]
DtestRelax.c60 xmlRelaxNGPtr schema = NULL; in main() local
84 if (schema == NULL) { in main()
107 schema = xmlRelaxNGParse(ctxt); in main()
118 schema = xmlRelaxNGParse(ctxt); in main()
121 if (schema == NULL) { in main()
129 xmlRelaxNGDump(stdout, schema); in main()
132 xmlRelaxNGDumpTree(stdout, schema); in main()
145 ctxt = xmlRelaxNGNewValidCtxt(schema); in main()
166 if (schema != NULL) in main()
167 xmlRelaxNGFree(schema); in main()
DtestSchemas.c60 xmlSchemaPtr schema = NULL; in main() local
80 if (schema == NULL) { in main()
103 schema = xmlSchemaParse(ctxt); in main()
114 schema = xmlSchemaParse(ctxt); in main()
120 xmlSchemaDump(stdout, schema); in main()
123 if (schema == NULL) in main()
136 ctxt = xmlSchemaNewValidCtxt(schema); in main()
157 if (schema != NULL) in main()
158 xmlSchemaFree(schema); in main()
/external/xmp_toolkit/XMPCore/src/com/adobe/xmp/impl/
DUtils.java161 static boolean isInternalProperty(String schema, String prop) in isInternalProperty() argument
165 if (NS_DC.equals(schema)) in isInternalProperty()
172 else if (NS_XMP.equals(schema)) in isInternalProperty()
181 else if (NS_PDF.equals(schema)) in isInternalProperty()
190 else if (NS_TIFF.equals(schema)) in isInternalProperty()
199 else if (NS_EXIF.equals(schema)) in isInternalProperty()
207 else if (NS_EXIF_AUX.equals(schema)) in isInternalProperty()
211 else if (NS_PHOTOSHOP.equals(schema)) in isInternalProperty()
218 else if (NS_CAMERARAW.equals(schema)) in isInternalProperty()
226 else if (NS_ADOBESTOCKPHOTO.equals(schema)) in isInternalProperty()
[all …]

12345678910>>...13