blob: 28ae6ac445ded2f4c286340fd723c89fb322634c [file] [log] [blame]
Luciano Pachecod4a896072020-01-14 11:07:501# Copyright 2020 The Chromium Authors. All rights reserved.
2# 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") {
Luciano Pachecod4a896072020-01-14 11:07:508 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 + [
22 "js_module_root=./gen/ui",
23 "js_module_root=../../ui",
Luciano Pachecoa3da2dd2022-06-21 23:42:1324 "browser_resolver_prefix_replacements=\"chrome://webui-test/=./\"",
Luciano Pacheco4d0d7a52021-10-25 03:59:2625 "hide_warnings_for=third_party/",
26 ]
Luciano Pachecod4a896072020-01-14 11:07:5027}
28
29js_library("remote_call") {
30 testonly = true
Luciano Pacheco7ba05772020-02-11 04:49:5431 deps = [
Luciano Pacheco4d0d7a52021-10-25 03:59:2632 ":element_object",
33 ":key_modifiers",
Luciano Pacheco7ba05772020-02-11 04:49:5434 ":test_util",
Luciano Pacheco4d0d7a52021-10-25 03:59:2635 ":volume_manager_common_volume_type",
Luciano Pacheco7ba05772020-02-11 04:49:5436 ]
Luciano Pacheco4d0d7a52021-10-25 03:59:2637 externs_list = [
38 "$externs_path/command_line_private.js",
39 "$externs_path/file_manager_private.js",
40 ]
41}
42
43js_library("allowed_paths") {
44}
45
46js_library("dialog_type") {
47}
48
49js_library("element_object") {
50}
51
52js_library("files_app_state") {
53 deps = [
54 ":allowed_paths",
55 ":dialog_type",
56 ]
57}
58
59js_library("key_modifiers") {
60}
61
62js_library("metadata_stats_type") {
63}
64
65js_library("volume_manager_common_volume_type") {
Luciano Pachecod4a896072020-01-14 11:07:5066}
67
68js_library("test_util") {
69 testonly = true
70 externs_list = [
71 "$externs_path/chrome_extensions.js",
dpapade1a0bd22020-06-16 04:22:3272 "$externs_path/test.js",
Luciano Pachecod4a896072020-01-14 11:07:5073 ]
74}
Luciano Pacheco5a3b9c092021-06-16 05:42:0175
76js_library("testcase") {
77 testonly = true
78}