[email protected] | f43e433 | 2014-06-20 05:13:20 | [diff] [blame] | 1 | # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 5 | source_set("json_schema") { |
[email protected] | f43e433 | 2014-06-20 05:13:20 | [diff] [blame] | 6 | sources = [ |
| 7 | "json_schema_constants.cc", |
| 8 | "json_schema_constants.h", |
| 9 | "json_schema_validator.cc", |
| 10 | "json_schema_validator.h", |
| 11 | ] |
| 12 | |
| 13 | deps = [ |
| 14 | "//base", |
| 15 | "//third_party/re2", |
| 16 | ] |
| 17 | } |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 18 | |
sdefresne | a986d5d | 2016-04-19 18:19:23 | [diff] [blame] | 19 | bundle_data("unit_tests_bundle_data") { |
| 20 | visibility = [ ":unit_tests" ] |
| 21 | testonly = true |
| 22 | sources = [ |
| 23 | "//components/test/data/json_schema/array_tuple_schema.json", |
| 24 | "//components/test/data/json_schema/choices_schema.json", |
| 25 | "//components/test/data/json_schema/complex_instance.json", |
| 26 | "//components/test/data/json_schema/complex_schema.json", |
| 27 | "//components/test/data/json_schema/enum_schema.json", |
| 28 | "//components/test/data/json_schema/pattern_properties_dot.json", |
| 29 | "//components/test/data/json_schema/reference_types.json", |
| 30 | ] |
| 31 | outputs = [ |
| 32 | "{{bundle_resources_dir}}/" + |
| 33 | "{{source_root_relative_dir}}/{{source_file_part}}", |
| 34 | ] |
| 35 | } |
| 36 | |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 37 | source_set("unit_tests") { |
| 38 | testonly = true |
| 39 | sources = [ |
| 40 | "json_schema_validator_unittest.cc", |
| 41 | "json_schema_validator_unittest_base.cc", |
| 42 | "json_schema_validator_unittest_base.h", |
| 43 | ] |
| 44 | deps = [ |
| 45 | ":json_schema", |
sdefresne | a986d5d | 2016-04-19 18:19:23 | [diff] [blame] | 46 | ":unit_tests_bundle_data", |
brettw | 2629c44 | 2015-11-26 02:42:19 | [diff] [blame] | 47 | "//base", |
Brett Wilson | 817fec0 | 2015-08-22 20:36:49 | [diff] [blame] | 48 | "//testing/gtest", |
| 49 | ] |
| 50 | } |