summaryrefslogtreecommitdiff
path: root/chromium/ui/file_manager/file_manager/test/BUILD.gn
blob: 6f5cffa33e3e311c69a971105f72c27e2f52c3ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Copyright 2018 The Chromium Authors. All rights reserved.
# 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")

action("create_test_main") {
  script = "//ui/file_manager/file_manager/test/scripts/create_test_main.py"
  output = "$target_gen_dir/../test.html"
  sources = [
    "../background/js/background_common_scripts.js",
    "../background/js/background_scripts.js",
    "../foreground/elements/elements_bundle.html",
    "../foreground/elements/files_quick_view.html",
    "../foreground/elements/files_safe_media.html",
    "../foreground/elements/files_safe_media.js",
    "../foreground/js/elements_importer.js",
    "../foreground/js/main_scripts.js",
    "../main.html",
    "//chrome/app/file_manager_strings.grdp",
    "//chrome/browser/chromeos/extensions/file_manager/private_api_strings.cc",
    "//ui/webui/resources/css/text_defaults.css",
    "check_select.js",
    "crostini_mount.js",
    "crostini_share.js",
    "crostini_tasks.js",
    "js/strings.js",
    "progress_center.js",
    "uma.js",
  ]
  args = [ "--output=" + rebase_path(output, root_build_dir) ]
  outputs = [
    output,
  ]
}

js_type_check("closure_compile") {
  deps = [
    ":check_select",
    ":closure_compile_externs",
    ":crostini_mount",
    ":crostini_share",
    ":crostini_tasks",
    ":progress_center",
    ":uma",
  ]
}

# Remaining targets in this file are private.
visibility = [ ":*" ]

js_library("closure_compile_externs") {
  sources = []
  externs_list = [
    "js/externs.js",
    "$externs_path/command_line_private.js",
    "$externs_path/metrics_private.js",
    "//ui/file_manager/externs/app_window_common.js",
    "//ui/file_manager/externs/background/file_browser_background.js",
    "//ui/file_manager/externs/background/progress_center.js",
    "//ui/file_manager/externs/background/crostini.js",
    "//ui/file_manager/externs/entry_location.js",
    "//ui/file_manager/externs/volume_info.js",
    "//ui/file_manager/externs/volume_info_list.js",
    "//ui/file_manager/externs/volume_manager.js",
  ]
}

js_library("check_select") {
  deps = [
    "js:test_util",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}

js_library("crostini_mount") {
  deps = [
    "js:test_util",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}

js_library("crostini_share") {
  deps = [
    "js:test_util",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}

js_library("crostini_tasks") {
  deps = [
    "js:test_util",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}

js_library("progress_center") {
  deps = [
    "js:test_util",
    "//ui/file_manager/file_manager/common/js:progress_center_common",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}

js_library("uma") {
  deps = [
    "js:test_util",
    "//ui/webui/resources/js:webui_resource_test",
  ]
}