1# Copyright (C) 2024-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("../../../app_domain_verify.gni") 16 17config("module_private_config") { 18 visibility = [ ":*" ] 19 configs = [ "//build/config/compiler:exceptions" ] 20 include_dirs = [ 21 "${app_domain_verify_frameworks_app_details_rdb_path}/include/", 22 "${app_domain_verify_service_path}/include/manager/core/", 23 "${app_domain_verify_service_path}/include/manager/filter", 24 "${app_domain_verify_common_path}/include", 25 "${app_domain_verify_test_path}/mock/include", 26 ] 27} 28 29module_output_path = "app_domain_verify/appdomainverify" 30ohos_unittest("app_details_rdb_data_manager_test") { 31 module_out_path = module_output_path 32 33 sources = [ 34 "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_meta_item.cpp", 35 "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_data_manager.cpp", 36 "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_item.cpp", 37 "${app_domain_verify_frameworks_app_details_rdb_path}/src/app_details_rdb_open_callback.cpp", 38 "${app_domain_verify_service_path}/src/manager/core/app_details_data_mgr.cpp", 39 "${app_domain_verify_service_path}/src/manager/filter/app_details_filter.cpp", 40 "app_details_rdb_data_manager_test.cpp", 41 ] 42 43 configs = [ ":module_private_config" ] 44 external_deps = [ 45 "ability_base:want", 46 "ability_base:zuri", 47 "bundle_framework:appexecfwk_base", 48 "c_utils:utils", 49 "eventhandler:libeventhandler", 50 "ffrt:libffrt", 51 "googletest:gmock_main", 52 "googletest:gtest_main", 53 "hilog:libhilog", 54 "hisysevent:libhisysevent", 55 "image_framework:image_native", 56 "init:libbegetutil", 57 "ipc:ipc_core", 58 "netstack:http_client", 59 "os_account:os_account_innerkits", 60 "relational_store:native_rdb", 61 "samgr:samgr_proxy", 62 ] 63 64 defines = [ "API_EXPORT=__attribute__((visibility (\"default\")))" ] 65 deps = [ 66 "${app_domain_verify_client_path}:app_domain_verify_agent_client", 67 "${app_domain_verify_client_path}:app_domain_verify_mgr_client", 68 "${app_domain_verify_common_path}:app_domain_verify_common", 69 "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common", 70 "${app_domain_verify_frameworks_common_path}:app_domain_verify_frameworks_common", 71 "${app_domain_verify_frameworks_extension_path}:app_domain_verify_extension_framework", 72 "${app_domain_verify_frameworks_verifier_path}:app_domain_verify_agent_verifier", 73 ] 74} 75