1# Copyright (C) 2023 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/bundlemanager/app_domain_verify/app_domain_verify.gni") 16 17config("module_private_config") { 18 visibility = [ ":*" ] 19 20 include_dirs = [ 21 "${app_domain_verify_client_path}/include", 22 "${app_domain_verify_service_path}/include", 23 "${app_domain_verify_common_path}/include", 24 "${app_domain_verify_frameworks_common_path}/include", 25 "${app_domain_verify_frameworks_common_path}/include/utils", 26 "${app_domain_verify_frameworks_common_path}/include/httpsession", 27 "${app_domain_verify_frameworks_verifier_path}/include", 28 "${app_domain_verify_frameworks_extension_path}/include", 29 "${app_domain_verify_service_path}/include/agent/core", 30 "${app_domain_verify_service_path}/include/agent/zidl", 31 "${app_domain_verify_service_path}/include/agent/bms", 32 "${app_domain_verify_service_path}/include/manager/rdb", 33 "${app_domain_verify_service_path}/include/manager/core", 34 "${app_domain_verify_service_path}/include/manager/constant", 35 "${app_domain_verify_service_path}/include/manager/zidl", 36 "${app_domain_verify_test_path}/mock/include", 37 "${app_domain_verify_frameworks_common_path}/include/dfx", 38 ] 39} 40 41module_output_path = "app_domain_verify/app_domain_verify" 42 43ohos_unittest("app_domain_verify_bean_test") { 44 module_out_path = module_output_path 45 46 sources = [ 47 "${app_domain_verify_common_path}/src/app_verify_base_info.cpp", 48 "${app_domain_verify_common_path}/src/bundle_verify_status_info.cpp", 49 "${app_domain_verify_common_path}/src/common_utils.cpp", 50 "${app_domain_verify_common_path}/src/skill_uri.cpp", 51 "${app_domain_verify_frameworks_common_path}/src/bms/bundle_info_query.cpp", 52 "${app_domain_verify_frameworks_common_path}/src/utils/domain_url_util.cpp", 53 "${app_domain_verify_test_path}/mock/src/mock_bundle_manager.cpp", 54 "${app_domain_verify_test_path}/mock/src/mock_os_account_manager.cpp", 55 "${app_domain_verify_test_path}/mock/src/mock_service_registry.cpp", 56 "bean_test.cpp", 57 ] 58 configs = [ ":module_private_config" ] 59 external_deps = [ 60 "ability_base:want", 61 "ability_base:zuri", 62 "bundle_framework:appexecfwk_base", 63 "bundle_framework:appexecfwk_core", 64 "c_utils:utils", 65 "eventhandler:libeventhandler", 66 "ffrt:libffrt", 67 "googletest:gmock_main", 68 "googletest:gtest_main", 69 "hilog:libhilog", 70 "hisysevent:libhisysevent", 71 "image_framework:image_native", 72 "init:libbegetutil", 73 "ipc:ipc_core", 74 "netstack:http_client", 75 "os_account:os_account_innerkits", 76 "relational_store:native_rdb", 77 "safwk:system_ability_fwk", 78 "samgr:dynamic_cache", 79 "samgr:samgr_common", 80 "samgr:samgr_proxy", 81 ] 82 83 defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ] 84 deps = [] 85} 86