chromium/chrome/test/data/webui/chromeos/print_preview_cros/BUILD.gn

# Copyright 2024 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")

build_webui_tests("build_webui_tests") {
  ts_path_mappings = [
    "chrome://os-print/*|" + rebase_path(
            "$root_gen_dir/ash/webui/print_preview_cros/resources/tsc/*",
            target_gen_dir),
    "chrome://webui-test/chromeos/*|" +
        rebase_path("$root_gen_dir/chrome/test/data/webui/chromeos/tsc/*",
                    target_gen_dir),
  ]

  files = [
    "capabilities_manager_test.ts",
    "destination_dropdown_controller_test.ts",
    "destination_dropdown_test.ts",
    "destination_manager_test.ts",
    "destination_row_controller_test.ts",
    "destination_row_test.ts",
    "destination_select_controller_test.ts",
    "destination_select_test.ts",
    "event_utils_test.ts",
    "fake_destination_provider_test.ts",
    "fake_print_preview_page_handler_test.ts",
    "preview_ticket_manager_test.ts",
    "print_preview_cros_app_controller_test.ts",
    "print_preview_cros_app_test.ts",
    "print_ticket_manager_test.ts",
    "summary_panel_controller_test.ts",
    "summary_panel_test.ts",
    "test_utils.ts",
    "validation_utils_test.ts",
  ]

  ts_definitions = [ "//tools/typescript/definitions/chrome_send.d.ts" ]

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/print_preview_cros/resources:build_ts",
    "//chrome/test/data/webui/chromeos:build_ts",
    "//third_party/cros-components:cros_components_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]
}