chromium/chrome/test/data/webui/new_tab_page/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")
import("./modules/modules.gni")

build_webui_tests("build") {
  files = [
            "app_test.ts",
            "background_manager_test.ts",
            "doodle_share_dialog_focus_test.ts",
            "doodle_share_dialog_test.ts",
            "image_processor_test.ts",
            "image_processor_test_support.ts",
            "lens_form_test.ts",
            "lens_upload_dialog_test.ts",
            "logo_test.ts",
            "metrics_utils_test.ts",
            "middle_slot_promo_test.ts",
            "test_support.ts",
            "transparency_test.ts",
            "transparency_test_support.ts",
            "voice_search_overlay_test.ts",
          ] + modules_test_files

  ts_tsconfig_base = "tsconfig_base.json"

  ts_path_mappings =
      [ "chrome://new-tab-page/*|" +
        rebase_path("$root_gen_dir/chrome/browser/resources/new_tab_page/tsc/*",
                    target_gen_dir) ]

  ts_definitions = [
    "//tools/typescript/definitions/metrics_private.d.ts",
    "//tools/typescript/definitions/pending.d.ts",
  ]

  ts_deps = [
    "//chrome/browser/resources/new_tab_page:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/cr_components/help_bubble:build_ts",
    "//ui/webui/resources/cr_components/history_clusters:build_ts",
    "//ui/webui/resources/cr_components/most_visited:build_ts",
    "//ui/webui/resources/cr_components/page_image_service:build_ts",
    "//ui/webui/resources/cr_components/searchbox:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
    "//ui/webui/resources/mojo:build_ts",
  ]
}