| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/json_schema/json_schema_validator_unittest_base.h" | 5 #include "components/json_schema/json_schema_validator_unittest_base.h" |
| 6 | 6 |
| 7 #include <cfloat> | 7 #include <cfloat> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| 11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
| 12 #include "base/file_util.h" | 12 #include "base/files/file_util.h" |
| 13 #include "base/json/json_file_value_serializer.h" | 13 #include "base/json/json_file_value_serializer.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
| 16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
| 17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 18 #include "base/values.h" | 18 #include "base/values.h" |
| 19 #include "components/json_schema/json_schema_constants.h" | 19 #include "components/json_schema/json_schema_constants.h" |
| 20 #include "components/json_schema/json_schema_validator.h" | 20 #include "components/json_schema/json_schema_validator.h" |
| 21 | 21 |
| 22 namespace schema = json_schema_constants; | 22 namespace schema = json_schema_constants; |
| (...skipping 739 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 schema->SetString(schema::kType, schema::kNull); | 762 schema->SetString(schema::kType, schema::kNull); |
| 763 ExpectNotValid( | 763 ExpectNotValid( |
| 764 TEST_SOURCE, | 764 TEST_SOURCE, |
| 765 scoped_ptr<base::Value>(new base::FundamentalValue(false)).get(), | 765 scoped_ptr<base::Value>(new base::FundamentalValue(false)).get(), |
| 766 schema.get(), | 766 schema.get(), |
| 767 NULL, | 767 NULL, |
| 768 std::string(), | 768 std::string(), |
| 769 JSONSchemaValidator::FormatErrorMessage( | 769 JSONSchemaValidator::FormatErrorMessage( |
| 770 JSONSchemaValidator::kInvalidType, schema::kNull, schema::kBoolean)); | 770 JSONSchemaValidator::kInvalidType, schema::kNull, schema::kBoolean)); |
| 771 } | 771 } |
| OLD | NEW |