1548bf93fSopenharmony_ci# Copyright (C) 2023 Huawei Device Co., Ltd. 2548bf93fSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 3548bf93fSopenharmony_ci# you may not use this file except in compliance with the License. 4548bf93fSopenharmony_ci# You may obtain a copy of the License at 5548bf93fSopenharmony_ci# 6548bf93fSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 7548bf93fSopenharmony_ci# 8548bf93fSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 9548bf93fSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 10548bf93fSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11548bf93fSopenharmony_ci# See the License for the specific language governing permissions and 12548bf93fSopenharmony_ci# limitations under the License. 13548bf93fSopenharmony_ci 14548bf93fSopenharmony_ciimport("//build/test.gni") 15548bf93fSopenharmony_ciimport("//foundation/bundlemanager/app_domain_verify/app_domain_verify.gni") 16548bf93fSopenharmony_ci 17548bf93fSopenharmony_ciconfig("module_private_config") { 18548bf93fSopenharmony_ci visibility = [ ":*" ] 19548bf93fSopenharmony_ci configs = [ "//build/config/compiler:exceptions" ] 20548bf93fSopenharmony_ci include_dirs = [ 21548bf93fSopenharmony_ci "${app_domain_verify_client_path}/include", 22548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include", 23548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/core", 24548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/zidl", 25548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/bms", 26548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/constant", 27548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/httpsession", 28548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/agent/utils", 29548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/manager/rdb", 30548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/manager/core", 31548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/manager/constant", 32548bf93fSopenharmony_ci "${app_domain_verify_service_path}/include/manager/zidl", 33548bf93fSopenharmony_ci "${app_domain_verify_common_path}/include", 34548bf93fSopenharmony_ci "${app_domain_verify_frameworks_common_path}/include", 35548bf93fSopenharmony_ci "${app_domain_verify_frameworks_common_path}/include/utils", 36548bf93fSopenharmony_ci "${app_domain_verify_frameworks_common_path}/include/httpsession", 37548bf93fSopenharmony_ci "${app_domain_verify_frameworks_extension_path}/include", 38548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/include", 39548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/include/constant", 40548bf93fSopenharmony_ci "${app_domain_verify_test_path}/mock/include", 41548bf93fSopenharmony_ci "${app_domain_verify_frameworks_common_path}/include/dfx", 42548bf93fSopenharmony_ci ] 43548bf93fSopenharmony_ci} 44548bf93fSopenharmony_ci 45548bf93fSopenharmony_cimodule_output_path = "app_domain_verify/app_domain_verify" 46548bf93fSopenharmony_ci 47548bf93fSopenharmony_ciohos_unittest("app_domain_verify_agent_verifier_test") { 48548bf93fSopenharmony_ci module_out_path = module_output_path 49548bf93fSopenharmony_ci 50548bf93fSopenharmony_ci sources = [ 51548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/src/domain_json_util.cpp", 52548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/src/domain_verifier.cpp", 53548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/src/verify_http_task.cpp", 54548bf93fSopenharmony_ci "${app_domain_verify_frameworks_verifier_path}/src/verify_task.cpp", 55548bf93fSopenharmony_ci "domain_json_util_test.cpp", 56548bf93fSopenharmony_ci "domain_verifier_test.cpp", 57548bf93fSopenharmony_ci "verify_task_test.cpp", 58548bf93fSopenharmony_ci ] 59548bf93fSopenharmony_ci configs = [ ":module_private_config" ] 60548bf93fSopenharmony_ci external_deps = [ 61548bf93fSopenharmony_ci "ability_base:want", 62548bf93fSopenharmony_ci "ability_base:zuri", 63548bf93fSopenharmony_ci "bundle_framework:appexecfwk_base", 64548bf93fSopenharmony_ci "bundle_framework:appexecfwk_core", 65548bf93fSopenharmony_ci "c_utils:utils", 66548bf93fSopenharmony_ci "eventhandler:libeventhandler", 67548bf93fSopenharmony_ci "ffrt:libffrt", 68548bf93fSopenharmony_ci "hilog:libhilog", 69548bf93fSopenharmony_ci "hisysevent:libhisysevent", 70548bf93fSopenharmony_ci "image_framework:image_native", 71548bf93fSopenharmony_ci "ipc:ipc_core", 72548bf93fSopenharmony_ci "json:nlohmann_json_static", 73548bf93fSopenharmony_ci "netstack:http_client", 74548bf93fSopenharmony_ci "os_account:os_account_innerkits", 75548bf93fSopenharmony_ci "relational_store:native_rdb", 76548bf93fSopenharmony_ci "safwk:system_ability_fwk", 77548bf93fSopenharmony_ci "samgr:samgr_proxy", 78548bf93fSopenharmony_ci ] 79548bf93fSopenharmony_ci 80548bf93fSopenharmony_ci defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ] 81548bf93fSopenharmony_ci deps = [ 82548bf93fSopenharmony_ci "${app_domain_verify_client_path}:app_domain_verify_mgr_client", 83548bf93fSopenharmony_ci "${app_domain_verify_common_path}:app_domain_verify_common", 84548bf93fSopenharmony_ci "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common", 85548bf93fSopenharmony_ci "//third_party/googletest:gmock_main", 86548bf93fSopenharmony_ci "//third_party/googletest:gtest_main", 87548bf93fSopenharmony_ci ] 88548bf93fSopenharmony_ci} 89