# Copyright 2025 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_chromeos)

build_webui_tests("build") {
  cc_test_files = [ "gaia_action_buttons_browsertest.cc" ]

  resource_path_prefix = "gaia_action_buttons"
  files = [ "gaia_action_buttons_test.ts" ]

  ts_path_mappings = [
    "chrome://chrome-signin/gaia_action_buttons/*|" + rebase_path(
            "${root_gen_dir}/chrome/browser/resources/chromeos/gaia_action_buttons/tsc/*",
            target_gen_dir),
    "chrome://chrome-signin/gaia_auth_host/authenticator.js|" +
        rebase_path(
            "//chrome/browser/resources/gaia_auth_host/authenticator.d.ts",
            target_gen_dir),
  ]

  ts_definitions = [
    "//chrome/browser/resources/gaia_auth_host/authenticator.d.ts",
    "//chrome/browser/resources/gaia_auth_host/saml_password_attributes.d.ts",
  ]

  ts_deps = [
    "//ash/webui/common/resources:build_ts",
    "//ash/webui/common/resources/cr_elements:build_ts",
    "//chrome/browser/resources/chromeos/gaia_action_buttons:build_ts",
    "//third_party/polymer/v3_0:library",
    "//ui/webui/resources/js:build_ts",
  ]
}
