# Copyright (C) 2021 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/test.gni") import("//build/ohos.gni") SMS_MMS_SOURCE_DIR = "../../" ohos_executable("tel_sms_mms_test") { sanitize = { cfi = true cfi_cross_dso = true debug = false } branch_protector_ret = "pac_ret" sources = [ "cdma_sms_test.cpp", "gsm_sms_sender_test.cpp", "mms_msg_test.cpp", "short_message_test.cpp", "sms_broadcast_subscriber.cpp", "sms_cb_message_test.cpp", "sms_delivery_callback_test.cpp", "sms_gsm_message_test.cpp", "sms_mms_test.cpp", "sms_send_callback_test.cpp", ] include_dirs = [ "//third_party/libphonenumber/cpp/src", "//third_party/libphonenumber/cpp/src/phonenumbers", "//third_party/protobuf/src", ] deps = [ "$SMS_MMS_SOURCE_DIR:tel_sms_mms", "$SMS_MMS_SOURCE_DIR/frameworks/native:tel_sms_mms_api", "//third_party/libphonenumber/cpp:phonenumber_standard", ] external_deps = [ "ability_base:want", "ability_base:zuri", "ability_runtime:ability_manager", "ability_runtime:data_ability_helper", "access_token:libaccesstoken_sdk", "access_token:libnativetoken", "access_token:libtoken_setproc", "curl:curl_shared", "c_utils:utils", "common_event_service:cesfwk_innerkits", "core_service:libtel_common", "core_service:tel_core_service_api", "data_share:datashare_consumer", "eventhandler:libeventhandler", "hilog:libhilog", "ipc:ipc_single", "safwk:system_ability_fwk", "samgr:samgr_proxy", "telephony_data:tel_telephony_data", ] defines = [ "TELEPHONY_LOG_TAG = \"SmsMmmsUTest\"", "LOG_DOMAIN = 0xD000F00", ] part_name = "sms_mms" subsystem_name = "telephony" }