chromium/chrome/test/data/webui/chromeos/arc_account_picker/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("//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://chrome-signin/arc_account_picker/=" + rebase_path(
                            "//chrome/browser/resources/chromeos/arc_account_picker/",
                            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 = [
    ":arc_account_picker_test",
    ":test_util",
  ]
}

js_library("arc_account_picker_test") {
  deps = [
    "..:chai_assert",
    "//ash/webui/common/resources:assert",
    "//ash/webui/common/resources:event_target",
    "//chrome/browser/resources/chromeos/arc_account_picker:arc_account_picker_app",
    "//chrome/browser/resources/chromeos/arc_account_picker:arc_account_picker_browser_proxy",
  ]
  externs_list = [ "$externs_path/mocha-2.5.js" ]
}

js_library("test_util") {
  deps = [
    "..:test_browser_proxy",
    "//chrome/browser/resources/chromeos/arc_account_picker:arc_account_picker_browser_proxy",
  ]
}