chromium/chrome/test/data/webui/intro/BUILD.gn

# 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(!is_chromeos_ash)

build_webui_tests("build") {
  files = [ "test_intro_browser_proxy.ts" ]
  if (enable_dice_support) {
    files += [
      "dice_app_test.ts",
      "sign_in_promo_test.ts",
    ]
  }

  if (is_chromeos_lacros) {
    files += [ "lacros_app_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/js:build_ts",
  ]
}