# 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/config/chromeos/ui_mode.gni")
import("//extensions/buildflags/buildflags.gni")
import("../build_webui_tests.gni")
assert(enable_extensions, "enable extensions check failed")
build_webui_tests("build") {
files = [
"toolbar_test.ts",
"activity_log_history_item_test.ts",
"activity_log_history_test.ts",
"activity_log_stream_item_test.ts",
"activity_log_stream_test.ts",
"activity_log_test.ts",
"code_section_test.ts",
"detail_view_test.ts",
"error_console_test.ts",
"error_page_test.ts",
"extension_options_dialog_test.ts",
"host_permissions_toggle_list_test.ts",
"item_list_test.ts",
"item_test.ts",
"keyboard_shortcuts_test.ts",
"load_error_test.ts",
"manager_test.ts",
"manager_test_with_activity_log_flag.ts",
"manager_test_with_id_query_param.ts",
"manager_unit_test.ts",
"manager_unit_test_with_activity_log_flag.ts",
"mv2_deprecation_panel_warning_test.ts",
"mv2_deprecation_panel_disabled_test.ts",
"navigation_helper_test.ts",
"options_dialog_test.ts",
"pack_dialog_test.ts",
"review_panel_test.ts",
"runtime_host_permissions_test.ts",
"runtime_hosts_dialog_test.ts",
"shortcut_input_test.ts",
"sidebar_test.ts",
"site_permissions_by_site_test.ts",
"site_permissions_edit_permissions_dialog_test.ts",
"site_permissions_edit_url_dialog_test.ts",
"site_permissions_list_test.ts",
"site_permissions_site_group_test.ts",
"site_permissions_test.ts",
"test_service.ts",
"test_util.ts",
"toggle_row_test.ts",
"url_util_test.ts",
]
ts_path_mappings = [ "chrome://extensions/extensions.js|" + rebase_path(
"$root_gen_dir/chrome/browser/resources/extensions/tsc/extensions.d.ts",
target_gen_dir) ]
ts_deps = [
"//chrome/browser/resources/extensions:build_ts",
"//third_party/lit/v3_0:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/cr_elements:build_ts",
"//ui/webui/resources/js:build_ts",
]
ts_definitions = [
"//tools/typescript/definitions/activity_log_private.d.ts",
"//tools/typescript/definitions/developer_private.d.ts",
"//tools/typescript/definitions/chrome_event.d.ts",
"//tools/typescript/definitions/metrics_private.d.ts",
]
}