blob: 607ba927cabf453351a079920250d0d485eb6dbd [file] [log] [blame]
# 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")
import("//third_party/closure_compiler/js_unit_tests.gni")
visibility = [ "//ui/file_manager/*" ]
group("closure_compile") {
testonly = true
deps = [
":closure_compile_module",
":test_support_type_check",
]
}
js_type_check("closure_compile_module") {
deps = [
":error_counter",
":filtered_volume_manager",
]
}
js_type_check("test_support_type_check") {
testonly = true
deps = [
":mock_chrome",
":test_error_reporting",
]
}
js_library("error_counter") {
}
js_library("filtered_volume_manager") {
deps = [
"//ui/file_manager/base/js:volume_manager_types",
"//ui/file_manager/externs:file_manager_private",
"//ui/file_manager/externs:volume_manager",
"//ui/file_manager/file_manager/common/js:async_util",
"//ui/file_manager/file_manager/common/js:files_app_entry_types",
"//ui/webui/resources/js:cr",
"//ui/webui/resources/js/cr/ui:array_data_model",
]
externs_list =
[ "//ui/file_manager/externs/background/volume_manager_factory.js" ]
}
js_library("mock_chrome") {
testonly = true
}
js_library("test_error_reporting") {
testonly = true
deps = [
# Note we allow targets depending on test_error_reporting to access
# webui_resource_test transitively.
"//ui/webui/resources/js:webui_resource_test",
]
}
js_library("volume_manager_types") {
deps = [
"//ui/webui/resources/js:assert",
]
}
js_unittest("volume_manager_types_unittest") {
deps = [
":volume_manager_types",
"//ui/webui/resources/js:webui_resource_test",
]
}
js_unit_tests("unit_tests") {
deps = [
":volume_manager_types_unittest",
]
}
js_library("mediasession_types") {
}