1# Copyright (c) 2023-2024 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 14base_root = "../../../../../" 15import("//test/xts/tools/build/suite.gni") 16module_out_path = "dcts/distributedhardware" 17 18ohos_moduletest_suite("DctsSubDistributedDpTest") { 19 sanitize = { 20 cfi = true 21 cfi_cross_dso = true 22 debug = false 23 } 24 module_out_path = module_out_path 25 include_dirs = [ 26 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include", 27 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/contentsensormanager", 28 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager", 29 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/deviceprofilemanager/listener", 30 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/dfx", 31 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/dm_adapter", 32 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/permissionmanager", 33 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter", 34 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter/kvadapter", 35 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/persistenceadapter/rdbadapter", 36 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/subscribeprofilemanager", 37 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/trustprofilemanager", 38 "$base_root/foundation/deviceprofile/device_info_manager/services/core/include/utils", 39 "$base_root/foundation/deviceprofile/device_info_manager/common/include/constants", 40 "$base_root/foundation/deviceprofile/device_info_manager/common/include/interfaces", 41 "$base_root/foundation/deviceprofile/device_info_manager/common/include/utils", 42 "$base_root/foundation/deviceprofile/device_info_manager/radar/include", 43 ] 44 45 sources = [ "device_profile_test.cpp" ] 46 47 cflags = [ 48 "-Dprivate=public", 49 "-Dprotected=public", 50 ] 51 52 defines = [ 53 "HI_LOG_ENABLE", 54 "DH_LOG_TAG=\"DctsSubDistributedDpTest\"", 55 "LOG_DOMAIN=0xD004100", 56 ] 57 58 deps = [ 59 "$base_root/foundation/deviceprofile/device_info_manager/common:distributed_device_profile_common", 60 "$base_root/foundation/deviceprofile/device_info_manager/interfaces/innerkits/core:distributed_device_profile_sdk", 61 "$base_root/foundation/deviceprofile/device_info_manager/services/core:distributed_device_profile_svr", 62 "$base_root/third_party/googletest:gtest_main", 63 ] 64 65 external_deps = [ 66 "access_token:libaccesstoken_sdk", 67 "access_token:libnativetoken", 68 "access_token:libtoken_setproc", 69 "cJSON:cjson", 70 "c_utils:utils", 71 "device_auth:deviceauth_sdk", 72 "device_manager:devicemanagersdk", 73 "dmsfwk:common_sdk", 74 "eventhandler:libeventhandler", 75 "hilog:libhilog", 76 "hisysevent:libhisysevent", 77 "hitrace:hitrace_meter", 78 "init:libbegetutil", 79 "ipc:ipc_core", 80 "kv_store:distributeddata_inner", 81 "relational_store:native_rdb", 82 "safwk:system_ability_fwk", 83 "samgr:samgr_proxy", 84 "syscap_codec:syscap_interface_shared", 85 ] 86 87 part_name = "device_info_manager" 88 subsystem_name = "deviceprofile" 89} 90