# 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("//components/signin/features.gni")
import("../build_webui_tests.gni")

assert(enable_dice_support)

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

  files = [
    "default_browser_refresh_test.ts",
    "finish_or_continue_test.ts",
    "intro_app_test.ts",
    "sign_in_celebration_test.ts",
    "sign_in_promo_refresh_test.ts",
    "sign_in_promo_test.ts",
    "test_intro_browser_proxy.ts",
    "test_intro_mojo_browser_proxy.ts",
    "test_match_media_proxy.ts",
    "test_sign_in_promo_browser_proxy.ts",
    "welcome_test.ts",
  ]

  ts_path_mappings = [ "chrome://intro/*|" + rebase_path(
                           "$root_gen_dir/chrome/browser/resources/intro/tsc/*",
                           target_gen_dir) ]
  ts_deps = [
    "//chrome/browser/resources/intro:build_ts",
    "//ui/webui/resources/cr_elements:build_ts",
    "//ui/webui/resources/js:build_ts",
  ]
}
