blob: 9c076c559c55eef82a9a6fd6399caa3e6d5ebdbf [file] [log] [blame]
Avi Drissman3e1a26c2022-09-15 20:26:031# Copyright 2020 The Chromium Authors
Luciano Pachecod4a896072020-01-14 11:07:502# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import("//third_party/closure_compiler/compile_js.gni")
6
7js_type_check("closure_compile") {
8 testonly = true
9 deps = [
Luciano Pacheco4d0d7a52021-10-25 03:59:2610 ":allowed_paths",
11 ":dialog_type",
12 ":element_object",
13 ":files_app_state",
14 ":key_modifiers",
15 ":metadata_stats_type",
Luciano Pachecod4a896072020-01-14 11:07:5016 ":remote_call",
17 ":test_util",
Luciano Pacheco4d0d7a52021-10-25 03:59:2618 ":volume_manager_common_volume_type",
Luciano Pachecod4a896072020-01-14 11:07:5019 ]
Luciano Pacheco4d0d7a52021-10-25 03:59:2620 closure_flags =
21 strict_error_checking_closure_args + [
Luciano Pacheco6342f9d2022-08-04 10:18:2522 "language_in=ECMASCRIPT_2020",
Luciano Pacheco4d0d7a52021-10-25 03:59:2623 "js_module_root=./gen/ui",
Tomasz Ĺšniatowski6ed0d512022-09-07 08:43:3824 "js_module_root=" + rebase_path("//ui", root_build_dir),
Luciano Pachecoa3da2dd2022-06-21 23:42:1325 "browser_resolver_prefix_replacements=\"chrome://webui-test/=./\"",
Luciano Pacheco4d0d7a52021-10-25 03:59:2626 "hide_warnings_for=third_party/",
27 ]
Luciano Pachecod4a896072020-01-14 11:07:5028}
29
30js_library("remote_call") {
31 testonly = true
Luciano Pacheco7ba05772020-02-11 04:49:5432 deps = [
Luciano Pacheco4d0d7a52021-10-25 03:59:2633 ":element_object",
34 ":key_modifiers",
Luciano Pacheco7ba05772020-02-11 04:49:5435 ":test_util",
Luciano Pacheco4d0d7a52021-10-25 03:59:2636 ":volume_manager_common_volume_type",
Luciano Pacheco7ba05772020-02-11 04:49:5437 ]
Luciano Pacheco4d0d7a52021-10-25 03:59:2638 externs_list = [
39 "$externs_path/command_line_private.js",
40 "$externs_path/file_manager_private.js",
41 ]
42}
43
44js_library("allowed_paths") {
45}
46
47js_library("dialog_type") {
48}
49
50js_library("element_object") {
51}
52
53js_library("files_app_state") {
54 deps = [
55 ":allowed_paths",
56 ":dialog_type",
57 ]
58}
59
60js_library("key_modifiers") {
61}
62
63js_library("metadata_stats_type") {
64}
65
66js_library("volume_manager_common_volume_type") {
Luciano Pachecod4a896072020-01-14 11:07:5067}
68
69js_library("test_util") {
70 testonly = true
71 externs_list = [
72 "$externs_path/chrome_extensions.js",
dpapade1a0bd22020-06-16 04:22:3273 "$externs_path/test.js",
Luciano Pachecod4a896072020-01-14 11:07:5074 ]
75}
Luciano Pacheco5a3b9c092021-06-16 05:42:0176
77js_library("testcase") {
78 testonly = true
79}