chromium/chrome/test/data/webui/history/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")

build_webui_tests("build") {
  files = [
    "history_app_test.ts",
    "history_clusters/utils.ts",
    "history_drawer_test.ts",
    "history_embeddings_promo_test.ts",
    "history_item_focus_test.ts",
    "history_item_test.ts",
    "history_list_focus_test.ts",
    "history_list_test.ts",
    "history_metrics_test.ts",
    "history_overflow_menu_test.ts",
    "history_product_specifications_item_test.ts",
    "history_product_specifications_list_test.ts",
    "history_routing_test.ts",
    "history_routing_with_query_param_test.ts",
    "history_supervised_user_test.ts",
    "history_synced_device_manager_focus_test.ts",
    "history_synced_tabs_test.ts",
    "history_toolbar_focus_test.ts",
    "history_toolbar_test.ts",
    "link_click_test.ts",
    "searched_label_test.ts",
    "test_browser_service.ts",
    "test_util.ts",
  ]

  ts_path_mappings = [
    "chrome://history/history.js|" +
        rebase_path(
            "$root_gen_dir/chrome/browser/resources/history/tsc/history.d.ts",
            target_gen_dir),
    "chrome://history/lazy_load.ts|" +
        rebase_path(
            "$root_gen_dir/chrome/browser/resources/history/tsc/lazy_load.d.ts",
            target_gen_dir),
  ]
  ts_deps = [
    "//chrome/browser/resources/history:build_ts",
    "//third_party/lit/v3_0:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/cr_components/commerce:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
}