Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 1 | # 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 | |
| 5 | import("//third_party/closure_compiler/compile_js.gni") |
| 6 | |
| 7 | js_type_check("closure_compile") { |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 8 | testonly = true |
| 9 | deps = [ |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 10 | ":allowed_paths", |
| 11 | ":dialog_type", |
| 12 | ":element_object", |
| 13 | ":files_app_state", |
| 14 | ":key_modifiers", |
| 15 | ":metadata_stats_type", |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 16 | ":remote_call", |
| 17 | ":test_util", |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 18 | ":volume_manager_common_volume_type", |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 19 | ] |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 20 | closure_flags = |
| 21 | strict_error_checking_closure_args + [ |
| 22 | "js_module_root=./gen/ui", |
| 23 | "js_module_root=../../ui", |
Luciano Pacheco | a3da2dd | 2022-06-21 23:42:13 | [diff] [blame^] | 24 | "browser_resolver_prefix_replacements=\"chrome://webui-test/=./\"", |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 25 | "hide_warnings_for=third_party/", |
| 26 | ] |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 27 | } |
| 28 | |
| 29 | js_library("remote_call") { |
| 30 | testonly = true |
Luciano Pacheco | 7ba0577 | 2020-02-11 04:49:54 | [diff] [blame] | 31 | deps = [ |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 32 | ":element_object", |
| 33 | ":key_modifiers", |
Luciano Pacheco | 7ba0577 | 2020-02-11 04:49:54 | [diff] [blame] | 34 | ":test_util", |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 35 | ":volume_manager_common_volume_type", |
Luciano Pacheco | 7ba0577 | 2020-02-11 04:49:54 | [diff] [blame] | 36 | ] |
Luciano Pacheco | 4d0d7a5 | 2021-10-25 03:59:26 | [diff] [blame] | 37 | externs_list = [ |
| 38 | "$externs_path/command_line_private.js", |
| 39 | "$externs_path/file_manager_private.js", |
| 40 | ] |
| 41 | } |
| 42 | |
| 43 | js_library("allowed_paths") { |
| 44 | } |
| 45 | |
| 46 | js_library("dialog_type") { |
| 47 | } |
| 48 | |
| 49 | js_library("element_object") { |
| 50 | } |
| 51 | |
| 52 | js_library("files_app_state") { |
| 53 | deps = [ |
| 54 | ":allowed_paths", |
| 55 | ":dialog_type", |
| 56 | ] |
| 57 | } |
| 58 | |
| 59 | js_library("key_modifiers") { |
| 60 | } |
| 61 | |
| 62 | js_library("metadata_stats_type") { |
| 63 | } |
| 64 | |
| 65 | js_library("volume_manager_common_volume_type") { |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 66 | } |
| 67 | |
| 68 | js_library("test_util") { |
| 69 | testonly = true |
| 70 | externs_list = [ |
| 71 | "$externs_path/chrome_extensions.js", |
dpapad | e1a0bd2 | 2020-06-16 04:22:32 | [diff] [blame] | 72 | "$externs_path/test.js", |
Luciano Pacheco | d4a89607 | 2020-01-14 11:07:50 | [diff] [blame] | 73 | ] |
| 74 | } |
Luciano Pacheco | 5a3b9c09 | 2021-06-16 05:42:01 | [diff] [blame] | 75 | |
| 76 | js_library("testcase") { |
| 77 | testonly = true |
| 78 | } |