# 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_android)
build_webui_tests("build") {
files = [
"add_password_dialog_test.ts",
"checkup_details_section_test.ts",
"checkup_section_test.ts",
"delete_passkey_dialog_test.ts",
"full_data_reset_test.ts",
"edit_password_dialog_test.ts",
"edit_passkey_dialog_test.ts",
"move_passwords_dialog_test.ts",
"credential_field_test.ts",
"credential_note_test.ts",
"passkey_details_card_test.ts",
"password_details_card_test.ts",
"password_details_section_test.ts",
"password_manager_app_test.ts",
"password_manager_focus_test.ts",
"password_manager_routing_test.ts",
"password_manager_side_bar_test.ts",
"passwords_exporter_test.ts",
"passwords_importer_test.ts",
"passwords_section_test.ts",
"promo_cards_test.ts",
"settings_section_test.ts",
"share_password_flow_test.ts",
"share_password_family_picker_dialog_test.ts",
"share_password_loading_dialog_test.ts",
"share_password_confirmation_dialog_test.ts",
"share_password_header_test.ts",
"share_password_group_avatar_test.ts",
"share_password_recipient_test.ts",
"site_favicon_test.ts",
"test_password_manager_proxy.ts",
"test_promo_cards_browser_proxy.ts",
"test_sync_browser_proxy.ts",
"test_util.ts",
]
if (is_win || is_mac) {
files += [ "test_passkeys_browser_proxy.ts" ]
}
ts_definitions = [
"//tools/typescript/definitions/chrome_event.d.ts",
"//tools/typescript/definitions/passwords_private.d.ts",
"//tools/typescript/definitions/settings_private.d.ts",
]
ts_deps = [
"//chrome/browser/resources/password_manager:build_ts",
"//third_party/polymer/v3_0:library",
"//ui/webui/resources/js:build_ts",
]
ts_path_mappings = [ "chrome://password-manager/password_manager.js|" + rebase_path(
"$root_gen_dir/chrome/browser/resources/password_manager/tsc/password_manager.d.ts",
target_gen_dir) ]
}