1# Copyright (c) 2023-2025 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//build/test.gni") 15import("//foundation/ability/ability_runtime/ability_runtime.gni") 16 17module_output_path = "ability_runtime/ability_runtime/auto_fill_extension" 18 19ohos_unittest("js_auto_fill_extension_test") { 20 module_out_path = module_output_path 21 include_dirs = [] 22 include_dirs = [ 23 "${ability_runtime_innerkits_path}/app_manager/include/appmgr", 24 "${ability_runtime_native_path}/runtime", 25 "${ability_runtime_native_path}/runtime/utils/include", 26 "${ability_runtime_path}/interfaces/kits/native/ability/ability_runtime", 27 "${ability_runtime_path}/interfaces/kits/native/ability/native/auto_fill_extension_ability", 28 "${ability_runtime_path}/interfaces/kits/native/appkit/app", 29 "${ability_runtime_test_path}/mock/frameworks_kits_ability_native_test/include", 30 ] 31 32 sources = [ "js_auto_fill_extension_test.cpp" ] 33 34 configs = [ "${ability_runtime_services_path}/abilitymgr:abilityms_config" ] 35 deps = [ 36 "${ability_runtime_native_path}/ability/native:abilitykit_native", 37 "${ability_runtime_native_path}/ability/native:abilitykit_utils", 38 "${ability_runtime_native_path}/ability/native:ui_extension", 39 ] 40 41 external_deps = [ 42 "ability_base:base", 43 "ability_base:configuration", 44 "ability_base:session_info", 45 "ability_base:view_data", 46 "ability_base:want", 47 "ability_runtime:ability_manager", 48 "ability_runtime:app_context", 49 "ability_runtime:appkit_native", 50 "ability_runtime:extensionkit_native", 51 "ability_runtime:runtime", 52 "bundle_framework:appexecfwk_base", 53 "bundle_framework:appexecfwk_core", 54 "c_utils:utils", 55 "ets_runtime:libark_jsruntime", 56 "eventhandler:libeventhandler", 57 "googletest:gmock_main", 58 "googletest:gtest_main", 59 "hilog:libhilog", 60 "i18n:intl_util", 61 "icu:shared_icuuc", 62 "init:libbegetutil", 63 "ipc:ipc_core", 64 "ipc:ipc_napi", 65 "json:nlohmann_json_static", 66 "napi:ace_napi", 67 "resource_management:global_resmgr", 68 ] 69 if (ability_runtime_auto_fill) { 70 deps += 71 [ "${ability_runtime_native_path}/ability/native:auto_fill_extension" ] 72 } 73 74 if (ability_runtime_graphics) { 75 external_deps += [ 76 "image_framework:image", 77 "window_manager:libdm", 78 "window_manager:libwm", 79 ] 80 } 81} 82 83group("unittest") { 84 testonly = true 85 86 deps = [ ":js_auto_fill_extension_test" ] 87} 88