| # Copyright 2019 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//src/sys/build/components.gni") |
| |
| group("lib") { |
| public_deps = [ |
| "annotation", |
| "configuration", |
| "focus_chain", |
| "gesture_manager", |
| "magnifier", |
| "screen_reader", |
| "screen_reader/focus", |
| "screen_reader/util", |
| "semantics", |
| "semantics/util", |
| "tts", |
| "view", |
| ] |
| } |
| |
| group("tests") { |
| testonly = true |
| |
| deps = [ |
| ":a11y-lib-tests", |
| "semantics/tests:integration", |
| ] |
| } |
| |
| resource("l10n_en_resource") { |
| sources = [ "$target_gen_dir/screen_reader/i18n/en/l10n.json" ] |
| outputs = [ "data/assets/locales/en/l10n.json" ] |
| deps = [ "//src/ui/a11y/lib/screen_reader/i18n:resources" ] |
| } |
| |
| # Fuchsia's ICU does not have libicudata.so, and the locale data MUST |
| # be loaded from a file instead. |
| resource("icudata_resource") { |
| sources = [ "//third_party/icu/common/icudtl.dat" ] |
| outputs = [ "data/icudtl.dat" ] |
| } |
| |
| # needed for semantics_test |
| resource("semantic_tree_data_resource") { |
| sources = [ |
| "semantics/tests/testdata/cyclic_semantic_tree.json", |
| "semantics/tests/testdata/deleted_subtree_even_nodes.json", |
| "semantics/tests/testdata/semantic_tree_even_nodes.json", |
| "semantics/tests/testdata/semantic_tree_not_parseable.json", |
| "semantics/tests/testdata/semantic_tree_odd_nodes.json", |
| "semantics/tests/testdata/semantic_tree_single_node.json", |
| ] |
| outputs = [ "data/{{source_file_part}}" ] |
| } |
| |
| fuchsia_unittest_component("annotation-tests-component") { |
| manifest = "meta/annotation_tests.cmx" |
| deps = [ "annotation/tests" ] |
| } |
| |
| fuchsia_unittest_component("configuration-tests-component") { |
| manifest = "meta/configuration_tests.cmx" |
| deps = [ "configuration/tests" ] |
| } |
| |
| fuchsia_unittest_component("focus-chain-manager-tests-component") { |
| manifest = "meta/focus_chain_manager_tests.cmx" |
| deps = [ "focus_chain/tests" ] |
| } |
| |
| fuchsia_unittest_component("gesture-arena-tests-component") { |
| manifest = "meta/gesture_arena_tests.cmx" |
| deps = [ "gesture_manager/arena/tests" ] |
| } |
| |
| fuchsia_unittest_component("gesture-recognizers-tests-component") { |
| manifest = "meta/gesture_recognizers_tests.cmx" |
| deps = [ "gesture_manager/recognizers/tests" ] |
| } |
| |
| fuchsia_unittest_component("gesture-manager-tests-component") { |
| manifest = "meta/gesture_manager_tests.cmx" |
| deps = [ "gesture_manager/tests" ] |
| } |
| |
| fuchsia_unittest_component("magnifier-tests-component") { |
| manifest = "meta/magnifier_tests.cmx" |
| deps = [ "magnifier/tests" ] |
| } |
| |
| fuchsia_unittest_component("focus-manager-tests-component") { |
| manifest = "meta/focus_manager_tests.cmx" |
| deps = [ "screen_reader/focus/tests" ] |
| } |
| |
| fuchsia_unittest_component("i18n-tests-component") { |
| manifest = "meta/i18n_tests.cmx" |
| deps = [ "screen_reader/i18n/tests" ] |
| } |
| |
| fuchsia_unittest_component("screen-reader-tests-component") { |
| manifest = "meta/screen_reader_tests.cmx" |
| deps = [ "screen_reader/tests" ] |
| } |
| |
| fuchsia_unittest_component("screen-reader-util-tests-component") { |
| manifest = "meta/screen_reader_util_tests.cmx" |
| deps = [ "screen_reader/util/tests" ] |
| } |
| |
| fuchsia_unittest_component("semantics-tests-component") { |
| manifest = "meta/semantics_tests.cmx" |
| deps = [ "semantics/tests:unit" ] |
| } |
| |
| fuchsia_unittest_component("semantics-util-tests-component") { |
| manifest = "meta/semantics_util_tests.cmx" |
| deps = [ "semantics/util/tests" ] |
| } |
| |
| fuchsia_unittest_component("tts-manager-tests-component") { |
| manifest = "meta/tts_manager_tests.cmx" |
| deps = [ "tts/tests" ] |
| } |
| |
| fuchsia_unittest_component("util-tests-component") { |
| manifest = "meta/util_tests.cmx" |
| deps = [ "util/tests" ] |
| } |
| |
| fuchsia_unittest_component("view-tests-component") { |
| manifest = "meta/view_tests.cmx" |
| deps = [ "view/tests" ] |
| } |
| |
| fuchsia_test_package("a11y-lib-tests") { |
| deps = [ |
| ":icudata_resource", |
| ":l10n_en_resource", |
| ":semantic_tree_data_resource", |
| "//src/ui/a11y/lib/screen_reader/i18n:resources", |
| ] |
| |
| test_components = [ |
| ":annotation-tests-component", |
| ":configuration-tests-component", |
| ":focus-chain-manager-tests-component", |
| ":gesture-arena-tests-component", |
| ":gesture-recognizers-tests-component", |
| ":gesture-manager-tests-component", |
| ":magnifier-tests-component", |
| ":focus-manager-tests-component", |
| ":i18n-tests-component", |
| ":screen-reader-tests-component", |
| ":screen-reader-util-tests-component", |
| ":semantics-tests-component", |
| ":semantics-util-tests-component", |
| ":tts-manager-tests-component", |
| ":util-tests-component", |
| ":view-tests-component", |
| ] |
| |
| test_specs = { |
| log_settings = { |
| max_severity = "ERROR" |
| } |
| } |
| } |