chromium/services/accessibility/android/BUILD.gn

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

source_set("android_lib") {
  public_deps = [
    "//ash/public/cpp:cpp",
    "//chrome/app:generated_resources_grit",
    "//extensions/browser/api/automation_internal:automation_internal",
    "//services/accessibility/android/public/mojom",
  ]

  sources = [
    "accessibility_info_data_wrapper.cc",
    "accessibility_info_data_wrapper.h",
    "accessibility_node_info_data_wrapper.cc",
    "accessibility_node_info_data_wrapper.h",
    "accessibility_window_info_data_wrapper.cc",
    "accessibility_window_info_data_wrapper.h",
    "android_accessibility_util.cc",
    "android_accessibility_util.h",
    "auto_complete_handler.cc",
    "auto_complete_handler.h",
    "ax_tree_source_android.cc",
    "ax_tree_source_android.h",
    "drawer_layout_handler.cc",
    "drawer_layout_handler.h",
    "pane_title_handler.cc",
    "pane_title_handler.h",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "test/android_accessibility_test_util.cc",
    "test/android_accessibility_test_util.h",
    "test/fake_accessibility_helper_instance.cc",
    "test/fake_accessibility_helper_instance.h",
  ]
  deps = [
    ":android_lib",
    "//base/test:test_support",
  ]
}

source_set("tests") {
  testonly = true

  deps = [
    ":android_lib",
    ":test_support",
    "//ash:test_support",
    "//base/test:test_support",
    "//testing/gtest",
  ]

  sources = [
    "accessibility_node_info_data_wrapper_unittest.cc",
    "android_accessibility_util_unittest.cc",
    "auto_complete_handler_unittest.cc",
    "ax_tree_source_android_unittest.cc",
    "drawer_layout_handler_unittest.cc",
    "pane_title_handler_unittest.cc",
  ]
}