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 sources = [ 19 "cdma_sms_test.cpp", 20 "gsm_sms_sender_test.cpp", 21 "mms_msg_test.cpp", 22 "short_message_test.cpp", 23 "sms_broadcast_subscriber.cpp", 24 "sms_cb_message_test.cpp", 25 "sms_delivery_callback_test.cpp", 26 "sms_gsm_message_test.cpp", 27 "sms_mms_test.cpp", 28 "sms_send_callback_test.cpp", 29 ] 30 31 include_dirs = [] 32 33 deps = [ 34 "$SMS_MMS_SOURCE_DIR:tel_sms_mms", 35 "$SMS_MMS_SOURCE_DIR/frameworks/native:tel_sms_mms_api", 36 ] 37 38 external_deps = [ 39 "ability_base:want", 40 "ability_base:zuri", 41 "ability_runtime:ability_manager", 42 "ability_runtime:data_ability_helper", 43 "access_token:libaccesstoken_sdk", 44 "access_token:libnativetoken", 45 "access_token:libtoken_setproc", 46 "c_utils:utils", 47 "common_event_service:cesfwk_innerkits", 48 "core_service:tel_core_service_api", 49 "data_share:datashare_consumer", 50 "eventhandler:libeventhandler", 51 "hilog:libhilog", 52 "ipc:ipc_single", 53 "safwk:system_ability_fwk", 54 "samgr:samgr_proxy", 55 "telephony_data:tel_telephony_data", 56 ] 57 58 defines = [ 59 "TELEPHONY_LOG_TAG = \"SmsMmmsUTest\"", 60 "LOG_DOMAIN = 0xD000F00", 61 ] 62 63 part_name = "sms_mms" 64 subsystem_name = "telephony" 65} 66