| Index: components/json_schema/BUILD.gn
|
| diff --git a/components/json_schema/BUILD.gn b/components/json_schema/BUILD.gn
|
| index 0ef0b96d4a9fa244fbcd8db579763fd868c0091d..68502ea3f8a60a3ea20425f5cc939690267a502f 100644
|
| --- a/components/json_schema/BUILD.gn
|
| +++ b/components/json_schema/BUILD.gn
|
| @@ -16,6 +16,24 @@ source_set("json_schema") {
|
| ]
|
| }
|
|
|
| +bundle_data("unit_tests_bundle_data") {
|
| + visibility = [ ":unit_tests" ]
|
| + testonly = true
|
| + sources = [
|
| + "//components/test/data/json_schema/array_tuple_schema.json",
|
| + "//components/test/data/json_schema/choices_schema.json",
|
| + "//components/test/data/json_schema/complex_instance.json",
|
| + "//components/test/data/json_schema/complex_schema.json",
|
| + "//components/test/data/json_schema/enum_schema.json",
|
| + "//components/test/data/json_schema/pattern_properties_dot.json",
|
| + "//components/test/data/json_schema/reference_types.json",
|
| + ]
|
| + outputs = [
|
| + "{{bundle_resources_dir}}/" +
|
| + "{{source_root_relative_dir}}/{{source_file_part}}",
|
| + ]
|
| +}
|
| +
|
| source_set("unit_tests") {
|
| testonly = true
|
| sources = [
|
| @@ -25,6 +43,7 @@ source_set("unit_tests") {
|
| ]
|
| deps = [
|
| ":json_schema",
|
| + ":unit_tests_bundle_data",
|
| "//base",
|
| "//testing/gtest",
|
| ]
|
|
|