1# Copyright (c) 2021-2022 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/ohos.gni") 15SOURCE_DIR = "../../../" 16 17ohos_executable("tel_telephony_data_test") { 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 debug = false 22 } 23 branch_protector_ret = "pac_ret" 24 sources = [ "$SOURCE_DIR/test/unittest/data_test/data_storage_test.cpp" ] 25 26 include_dirs = [ 27 "$SOURCE_DIR/common/include", 28 "$SOURCE_DIR/interfaces/innerkits/include", 29 "$SOURCE_DIR/global_params/include", 30 "$SOURCE_DIR/opkey/include", 31 "$SOURCE_DIR/pdp_profile/include", 32 "$SOURCE_DIR/sim/include", 33 "$SOURCE_DIR/sms_mms/include", 34 ] 35 36 external_deps = [ 37 "ability_base:want", 38 "ability_base:zuri", 39 "ability_runtime:ability_manager", 40 "ability_runtime:abilitykit_native", 41 "access_token:libaccesstoken_sdk", 42 "access_token:libnativetoken", 43 "access_token:libtoken_setproc", 44 "c_utils:utils", 45 "common_event_service:cesfwk_innerkits", 46 "data_share:datashare_common", 47 "data_share:datashare_consumer", 48 "data_share:datashare_provider", 49 "eventhandler:libeventhandler", 50 "hilog:libhilog", 51 "ipc:ipc_single", 52 "relational_store:native_appdatafwk", 53 "relational_store:native_rdb", 54 "relational_store:rdb_data_share_adapter", 55 "resource_management:global_resmgr", 56 "safwk:system_ability_fwk", 57 "samgr:samgr_proxy", 58 ] 59 defines = [ 60 "TELEPHONY_LOG_TAG = \"DataStorageUTest\"", 61 "LOG_DOMAIN = 0xD000F00", 62 ] 63 part_name = "telephony_data" 64 subsystem_name = "telephony" 65} 66