1# Copyright (C) 2021 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 14#import("//build/test.gni") 15import("//build/ohos.gni") 16SMS_MMS_SOURCE_DIR = "../../" 17ohos_executable("tel_sms_mms_test") { 18 sanitize = { 19 cfi = true 20 cfi_cross_dso = true 21 debug = false 22 } 23 branch_protector_ret = "pac_ret" 24 sources = [ 25 "cdma_sms_test.cpp", 26 "gsm_sms_sender_test.cpp", 27 "mms_msg_test.cpp", 28 "short_message_test.cpp", 29 "sms_broadcast_subscriber.cpp", 30 "sms_cb_message_test.cpp", 31 "sms_delivery_callback_test.cpp", 32 "sms_gsm_message_test.cpp", 33 "sms_mms_test.cpp", 34 "sms_send_callback_test.cpp", 35 ] 36 37 include_dirs = [ 38 "//third_party/libphonenumber/cpp/src", 39 "//third_party/libphonenumber/cpp/src/phonenumbers", 40 "//third_party/protobuf/src", 41 ] 42 43 deps = [ 44 "$SMS_MMS_SOURCE_DIR:tel_sms_mms", 45 "$SMS_MMS_SOURCE_DIR/frameworks/native:tel_sms_mms_api", 46 "//third_party/libphonenumber/cpp:phonenumber_standard", 47 ] 48 49 external_deps = [ 50 "ability_base:want", 51 "ability_base:zuri", 52 "ability_runtime:ability_manager", 53 "ability_runtime:data_ability_helper", 54 "access_token:libaccesstoken_sdk", 55 "access_token:libnativetoken", 56 "access_token:libtoken_setproc", 57 "curl:curl_shared", 58 "c_utils:utils", 59 "common_event_service:cesfwk_innerkits", 60 "core_service:libtel_common", 61 "core_service:tel_core_service_api", 62 "data_share:datashare_consumer", 63 "eventhandler:libeventhandler", 64 "hilog:libhilog", 65 "ipc:ipc_single", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 "telephony_data:tel_telephony_data", 69 ] 70 71 defines = [ 72 "TELEPHONY_LOG_TAG = \"SmsMmmsUTest\"", 73 "LOG_DOMAIN = 0xD000F00", 74 ] 75 76 part_name = "sms_mms" 77 subsystem_name = "telephony" 78} 79