# 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("//third_party/closure_compiler/compile_js.gni")
js_type_check("closure_compile") {
is_polymer3 = true
closure_flags = default_closure_args + [
"browser_resolver_prefix_replacements=\"chrome://account-migration-welcome/=" + rebase_path(
"//chrome/browser/resources/chromeos/account_manager/",
root_build_dir) + "\"",
"browser_resolver_prefix_replacements=\"chrome://webui-test/chromeos/=" + rebase_path(
"//chrome/test/data/webui/chromeos/",
root_build_dir) + "\"",
"js_module_root=" + rebase_path("//chrome/test/data/webui/",
root_build_dir),
"js_module_root=./gen/chrome/test/data/webui/",
]
deps = [
":account_migration_welcome_test",
":test_account_manager_browser_proxy",
]
}
js_library("account_migration_welcome_test") {
deps = [
":test_account_manager_browser_proxy",
"..:chai_assert",
"//ash/webui/common/resources:assert",
"//chrome/browser/resources/chromeos/account_manager:account_migration_welcome_app",
]
externs_list = [ "$externs_path/mocha-2.5.js" ]
}
js_library("test_account_manager_browser_proxy") {
deps = [
"..:test_browser_proxy",
"//chrome/browser/resources/chromeos/account_manager:account_manager_browser_proxy",
]
}