# Copyright 2020 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_win)

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

  files = [
    "inline_login_test.ts",
    "inline_login_test_util.ts",
  ]

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

  ts_path_mappings = [
    "chrome://chrome-signin/gaia_auth_host/*|" +
        rebase_path("//chrome/browser/resources/gaia_auth_host/*",
                    target_gen_dir),
    "chrome://chrome-signin/*|" +
        rebase_path("$root_gen_dir/chrome/browser/resources/inline_login/tsc/*",
                    target_gen_dir),
  ]

  ts_deps = [
    "//chrome/browser/resources/inline_login:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
}
