blob: 68502ea3f8a60a3ea20425f5cc939690267a502f [file] [log] [blame]
[email protected]f43e4332014-06-20 05:13:201# 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 Wilson817fec02015-08-22 20:36:495source_set("json_schema") {
[email protected]f43e4332014-06-20 05:13:206 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 Wilson817fec02015-08-22 20:36:4918
sdefresnea986d5d2016-04-19 18:19:2319bundle_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 Wilson817fec02015-08-22 20:36:4937source_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",
sdefresnea986d5d2016-04-19 18:19:2346 ":unit_tests_bundle_data",
brettw2629c442015-11-26 02:42:1947 "//base",
Brett Wilson817fec02015-08-22 20:36:4948 "//testing/gtest",
49 ]
50}