1# Copyright (c) 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/form_fwk/form_fwk.gni") 16 17module_output_path = "form_fwk/form_fwk/form_mgr" 18 19ohos_unittest("FmsParamManagerTest") { 20 module_out_path = module_output_path 21 22 sources = [ 23 "${form_fwk_path}/services/src/feature/param_update/param_common_event.cpp", 24 "${form_fwk_path}/services/src/feature/param_update/param_manager.cpp", 25 "${form_fwk_path}/services/src/feature/param_update/param_reader.cpp", 26 "${form_fwk_path}/services/src/feature/param_update/sign_tools.cpp", 27 "fms_param_manager_test.cpp", 28 ] 29 30 include_dirs = [ 31 "${form_fwk_path}/services/include", 32 ] 33 cflags = [] 34 configs = [ "${form_fwk_path}/test:formmgr_test_config" ] 35 if (target_cpu == "arm") { 36 cflags += [ "-DBINDER_IPC_32BIT" ] 37 } 38 deps = [ 39 "${form_fwk_path}:libfms", 40 ] 41 42 external_deps = [ 43 "ability_base:base", 44 "ability_base:want", 45 "ability_base:zuri", 46 "ability_runtime:app_manager", 47 "ability_runtime:wantagent_innerkits", 48 "access_token:libnativetoken", 49 "access_token:libtoken_setproc", 50 "bundle_framework:appexecfwk_base", 51 "bundle_framework:appexecfwk_core", 52 "c_utils:utils", 53 "eventhandler:libeventhandler", 54 "ffrt:libffrt", 55 "form_fwk:form_manager", 56 "hilog:libhilog", 57 "ipc:ipc_core", 58 "openssl:libcrypto_shared", 59 "safwk:system_ability_fwk", 60 ] 61} 62 63group("unittest") { 64 testonly = true 65 66 deps = [ ":FmsParamManagerTest" ] 67}