# Copyright (c) 2021-2022 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/ohos.gni") SOURCE_DIR = "../../../" ohos_executable("tel_telephony_data_test") { sanitize = { cfi = true cfi_cross_dso = true debug = false } branch_protector_ret = "pac_ret" sources = [ "$SOURCE_DIR/test/unittest/data_test/data_storage_test.cpp" ] include_dirs = [ "$SOURCE_DIR/common/include", "$SOURCE_DIR/interfaces/innerkits/include", "$SOURCE_DIR/global_params/include", "$SOURCE_DIR/opkey/include", "$SOURCE_DIR/pdp_profile/include", "$SOURCE_DIR/sim/include", "$SOURCE_DIR/sms_mms/include", ] external_deps = [ "ability_base:want", "ability_base:zuri", "ability_runtime:ability_manager", "ability_runtime:abilitykit_native", "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "c_utils:utils", "common_event_service:cesfwk_innerkits", "data_share:datashare_common", "data_share:datashare_consumer", "data_share:datashare_provider", "eventhandler:libeventhandler", "hilog:libhilog", "ipc:ipc_single", "relational_store:native_appdatafwk", "relational_store:native_rdb", "relational_store:rdb_data_share_adapter", "resource_management:global_resmgr", "safwk:system_ability_fwk", "samgr:samgr_proxy", ] defines = [ "TELEPHONY_LOG_TAG = \"DataStorageUTest\"", "LOG_DOMAIN = 0xD000F00", ] part_name = "telephony_data" subsystem_name = "telephony" }