chromium/chrome/test/data/webui/app_settings/BUILD.gn

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

import("../build_webui_tests.gni")

assert(is_win || is_mac || is_linux)

assert(!is_fuchsia, "Fuchsia shouldn't use anything in //chrome")

build_webui_tests("build") {
  files = [
    "app_management_test_support.ts",
    "app_test.ts",
    "test_app_management_browser_proxy.ts",
    "file_handling_item_test.ts",
    "permission_item_test.ts",
    "supported_links_item_test.ts",
    "uninstall_button_test.ts",
    "window_mode_item_test.ts",
  ]

  ts_path_mappings =
      [ "chrome://app-settings/*|" +
        rebase_path("$root_gen_dir/chrome/browser/resources/app_settings/tsc/*",
                    target_gen_dir) ]
  ts_deps = [
    "//chrome/browser/resources/app_settings:build_ts",
    "//chrome/test/data/webui:build_ts",
    "//ui/webui/resources/cr_components/app_management:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
  ts_definitions = [ "//tools/typescript/definitions/metrics_private.d.ts" ]
}