# 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") { cc_test_files = [ "password_manager_browsertest.cc", "password_manager_focus_test.cc", ] files = [ "add_password_dialog_test.ts", "backup_password_details_card_test.ts", "checkup_details_section_test.ts", "checkup_list_item_test.ts", "checkup_section_test.ts", "credential_field_test.ts", "credential_note_test.ts", "delete_passkey_dialog_test.ts", "edit_passkey_dialog_test.ts", "edit_password_dialog_test.ts", "full_data_reset_test.ts", "move_passwords_dialog_test.ts", "passkey_details_card_test.ts", "password_change_details_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", "notification_cards_test.ts", "remove_actor_login_permission_dialog_test.ts", "trusted_vault_error_dialog_test.ts", "settings_section_test.ts", "share_password_confirmation_dialog_test.ts", "share_password_family_picker_dialog_test.ts", "share_password_flow_test.ts", "share_password_group_avatar_test.ts", "share_password_header_test.ts", "share_password_loading_dialog_test.ts", "share_password_recipient_test.ts", "site_favicon_test.ts", "test_password_manager_proxy.ts", "test_notification_cards_browser_proxy.ts", "test_sync_browser_proxy.ts", "test_util.ts", "user_utils_mixin_test.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/cr_components/color_change_listener:build_ts", "//ui/webui/resources/js:build_ts", ] mojo_files_deps = [ "//chrome/browser/ui/webui/password_manager:mojo_bindings_ts__generator", ] mojo_files = [ "$root_gen_dir/chrome/browser/ui/webui/password_manager/password_manager.mojom-webui.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), "//resources/mojo/*|" + rebase_path("$root_gen_dir/ui/webui/resources/tsc/mojo/*", target_gen_dir), ] }