JSONSchemaValidator 165 components/json_schema/json_schema_validator.cc if (options & JSONSchemaValidator::OPTIONS_IGNORE_UNKNOWN_ATTRIBUTES) JSONSchemaValidator 293 components/json_schema/json_schema_validator.cc JSONSchemaValidator::Error::Error() { JSONSchemaValidator 296 components/json_schema/json_schema_validator.cc JSONSchemaValidator::Error::Error(const std::string& message) JSONSchemaValidator 300 components/json_schema/json_schema_validator.cc JSONSchemaValidator::Error::Error(const std::string& path, JSONSchemaValidator 306 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kUnknownTypeReference[] = JSONSchemaValidator 308 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kInvalidChoice[] = JSONSchemaValidator 310 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kInvalidEnum[] = JSONSchemaValidator 312 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kObjectPropertyIsRequired[] = JSONSchemaValidator 314 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kUnexpectedProperty[] = JSONSchemaValidator 316 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kArrayMinItems[] = JSONSchemaValidator 318 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kArrayMaxItems[] = JSONSchemaValidator 320 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kArrayItemRequired[] = JSONSchemaValidator 322 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kStringMinLength[] = JSONSchemaValidator 324 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kStringMaxLength[] = JSONSchemaValidator 326 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kStringPattern[] = JSONSchemaValidator 328 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kNumberMinimum[] = JSONSchemaValidator 330 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kNumberMaximum[] = JSONSchemaValidator 332 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kInvalidType[] = JSONSchemaValidator 334 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kInvalidTypeIntegerNumber[] = JSONSchemaValidator 336 components/json_schema/json_schema_validator.cc const char JSONSchemaValidator::kInvalidRegex[] = JSONSchemaValidator 341 components/json_schema/json_schema_validator.cc std::string JSONSchemaValidator::GetJSONSchemaType(const base::Value* value) { JSONSchemaValidator 372 components/json_schema/json_schema_validator.cc std::string JSONSchemaValidator::FormatErrorMessage(const std::string& format, JSONSchemaValidator 380 components/json_schema/json_schema_validator.cc std::string JSONSchemaValidator::FormatErrorMessage(const std::string& format, JSONSchemaValidator 390 components/json_schema/json_schema_validator.cc scoped_ptr<base::DictionaryValue> JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 393 components/json_schema/json_schema_validator.cc return JSONSchemaValidator::IsValidSchema(schema, 0, error); JSONSchemaValidator 397 components/json_schema/json_schema_validator.cc scoped_ptr<base::DictionaryValue> JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 417 components/json_schema/json_schema_validator.cc JSONSchemaValidator::JSONSchemaValidator(base::DictionaryValue* schema) JSONSchemaValidator 421 components/json_schema/json_schema_validator.cc JSONSchemaValidator::JSONSchemaValidator(base::DictionaryValue* schema, JSONSchemaValidator 439 components/json_schema/json_schema_validator.cc JSONSchemaValidator::~JSONSchemaValidator() {} JSONSchemaValidator 441 components/json_schema/json_schema_validator.cc bool JSONSchemaValidator::Validate(const base::Value* instance) { JSONSchemaValidator 447 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::Validate(const base::Value* instance, JSONSchemaValidator 517 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateChoices(const base::Value* instance, JSONSchemaValidator 540 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateEnum(const base::Value* instance, JSONSchemaValidator 577 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateObject(const base::DictionaryValue* instance, JSONSchemaValidator 658 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateArray(const base::ListValue* instance, JSONSchemaValidator 700 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateTuple(const base::ListValue* instance, JSONSchemaValidator 748 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateString(const base::Value* instance, JSONSchemaValidator 788 components/json_schema/json_schema_validator.cc void JSONSchemaValidator::ValidateNumber(const base::Value* instance, JSONSchemaValidator 811 components/json_schema/json_schema_validator.cc bool JSONSchemaValidator::ValidateType(const base::Value* instance, JSONSchemaValidator 829 components/json_schema/json_schema_validator.cc bool JSONSchemaValidator::SchemaAllowsAnyAdditionalItems( JSONSchemaValidator 57 components/json_schema/json_schema_validator.h class JSONSchemaValidator { JSONSchemaValidator 135 components/json_schema/json_schema_validator.h explicit JSONSchemaValidator(base::DictionaryValue* schema); JSONSchemaValidator 145 components/json_schema/json_schema_validator.h JSONSchemaValidator(base::DictionaryValue* schema, base::ListValue* types); JSONSchemaValidator 147 components/json_schema/json_schema_validator.h ~JSONSchemaValidator(); JSONSchemaValidator 251 components/json_schema/json_schema_validator.h DISALLOW_COPY_AND_ASSIGN(JSONSchemaValidator); JSONSchemaValidator 19 components/json_schema/json_schema_validator_unittest.cc JSONSchemaValidator validator(schema, types); JSONSchemaValidator 36 components/json_schema/json_schema_validator_unittest.cc JSONSchemaValidator validator(schema, types); JSONSchemaValidator 53 components/json_schema/json_schema_validator_unittest.cc TEST(JSONSchemaValidator, IsValidSchema) { JSONSchemaValidator 55 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("", &error)); JSONSchemaValidator 56 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("\0", &error)); JSONSchemaValidator 57 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("string", &error)); JSONSchemaValidator 58 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("\"string\"", &error)); JSONSchemaValidator 59 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("[]", &error)); JSONSchemaValidator 60 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema("{}", &error)); JSONSchemaValidator 61 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 63 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 65 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 70 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 75 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 80 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 85 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 90 components/json_schema/json_schema_validator_unittest.cc EXPECT_TRUE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 92 components/json_schema/json_schema_validator_unittest.cc EXPECT_TRUE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 94 components/json_schema/json_schema_validator_unittest.cc EXPECT_TRUE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 132 components/json_schema/json_schema_validator_unittest.cc EXPECT_TRUE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 145 components/json_schema/json_schema_validator_unittest.cc EXPECT_TRUE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 150 components/json_schema/json_schema_validator_unittest.cc JSONSchemaValidator::OPTIONS_IGNORE_UNKNOWN_ATTRIBUTES, JSONSchemaValidator 152 components/json_schema/json_schema_validator_unittest.cc EXPECT_FALSE(JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 102 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 103 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 114 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 115 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kStringMaxLength, "10")); JSONSchemaValidator 134 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 135 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kStringPattern, "foo+")); JSONSchemaValidator 156 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidEnum); JSONSchemaValidator 162 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidEnum); JSONSchemaValidator 185 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidChoice); JSONSchemaValidator 191 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidChoice); JSONSchemaValidator 199 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidChoice); JSONSchemaValidator 220 components/json_schema/json_schema_validator_unittest_base.cc "extra", JSONSchemaValidator::kUnexpectedProperty); JSONSchemaValidator 225 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kObjectPropertyIsRequired); JSONSchemaValidator 229 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 230 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 238 components/json_schema/json_schema_validator_unittest_base.cc "extra", JSONSchemaValidator::kUnexpectedProperty); JSONSchemaValidator 248 components/json_schema/json_schema_validator_unittest_base.cc "extr", JSONSchemaValidator::kUnexpectedProperty); JSONSchemaValidator 256 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 257 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 262 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 263 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 286 components/json_schema/json_schema_validator_unittest_base.cc "extra", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 287 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 303 components/json_schema/json_schema_validator_unittest_base.cc "bar", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 304 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 309 components/json_schema/json_schema_validator_unittest_base.cc "bar", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 310 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 324 components/json_schema/json_schema_validator_unittest_base.cc "foo", JSONSchemaValidator::kUnexpectedProperty); JSONSchemaValidator 362 components/json_schema/json_schema_validator_unittest_base.cc "baz", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 363 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kStringMinLength, "2")); JSONSchemaValidator 367 components/json_schema/json_schema_validator_unittest_base.cc "bar", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 368 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kNumberMaximum, "0")); JSONSchemaValidator 374 components/json_schema/json_schema_validator_unittest_base.cc "bar", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 375 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kUnknownTypeReference, JSONSchemaValidator 382 components/json_schema/json_schema_validator_unittest_base.cc "baz", JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 383 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kUnknownTypeReference, JSONSchemaValidator 404 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 405 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kArrayMaxItems, "2")); JSONSchemaValidator 410 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kArrayItemRequired); JSONSchemaValidator 415 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 416 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 431 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 432 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 451 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 452 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 478 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 479 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kArrayMaxItems, "3")); JSONSchemaValidator 488 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 489 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kArrayMinItems, "2")); JSONSchemaValidator 494 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 495 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, JSONSchemaValidator 520 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 521 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kStringMinLength, "1")); JSONSchemaValidator 528 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 529 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kStringMaxLength, "10")); JSONSchemaValidator 557 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 558 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kNumberMinimum, "1")); JSONSchemaValidator 565 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 566 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kNumberMaximum, "100")); JSONSchemaValidator 571 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 575 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 583 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 586 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 589 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 592 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType(scoped_ptr<base::Value>( JSONSchemaValidator 595 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType(scoped_ptr<base::Value>( JSONSchemaValidator 601 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 605 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType(scoped_ptr<base::Value>( JSONSchemaValidator 608 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType(scoped_ptr<base::Value>( JSONSchemaValidator 613 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 616 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 619 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 622 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::GetJSONSchemaType( JSONSchemaValidator 698 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 699 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, schema::kObject, schema::kArray)); JSONSchemaValidator 708 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 709 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, schema::kObject, schema::kNull)); JSONSchemaValidator 718 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 719 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, schema::kArray, schema::kInteger)); JSONSchemaValidator 728 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage(JSONSchemaValidator::kInvalidType, JSONSchemaValidator 739 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 740 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, schema::kNumber, schema::kString)); JSONSchemaValidator 749 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidTypeIntegerNumber); JSONSchemaValidator 758 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage(JSONSchemaValidator::kInvalidType, JSONSchemaValidator 769 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::FormatErrorMessage( JSONSchemaValidator 770 components/json_schema/json_schema_validator_unittest_base.cc JSONSchemaValidator::kInvalidType, schema::kNull, schema::kBoolean)); JSONSchemaValidator 833 components/policy/core/common/schema.cc scoped_ptr<base::DictionaryValue> dict = JSONSchemaValidator::IsValidSchema( JSONSchemaValidator 834 components/policy/core/common/schema.cc content, JSONSchemaValidator::OPTIONS_IGNORE_UNKNOWN_ATTRIBUTES, error);