1# Copyright (C) 2021-2023 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/test.gni") 15SMS_MMS_SOURCE_DIR = "../../" 16ohos_unittest("tel_sms_mms_gtest") { 17 subsystem_name = "telephony" 18 part_name = "sms_mms" 19 test_module = "tel_sms_mms_gtest" 20 module_out_path = part_name + "/" + test_module 21 22 sources = [ 23 "cb_gtest.cpp", 24 "cdma_sms_gtest.cpp", 25 "mms_gtest.cpp", 26 "sms_broadcast_subscriber_gtest.cpp", 27 "sms_delivery_callback_gtest.cpp", 28 "sms_gtest.cpp", 29 "sms_mms_test_helper.cpp", 30 "sms_satellite_gtest.cpp", 31 "sms_send_callback_gtest.cpp", 32 "zero_branch_cb_test.cpp", 33 "zero_branch_cdma_sms_test.cpp", 34 "zero_branch_mms_test.cpp", 35 "zero_branch_sms_part_test.cpp", 36 "zero_branch_sms_test.cpp", 37 "zero_branch_utils_test.cpp", 38 ] 39 40 include_dirs = [ 41 "$SMS_MMS_SOURCE_DIR/services/include", 42 "$SMS_MMS_SOURCE_DIR/interfaces/innerkits", 43 "$SMS_MMS_SOURCE_DIR/interfaces/innerkits/satellite", 44 "$SMS_MMS_SOURCE_DIR/interfaces/kits/native", 45 "$SMS_MMS_SOURCE_DIR/frameworks/native/sms/include", 46 "$SMS_MMS_SOURCE_DIR/utils", 47 "//third_party/libphonenumber/cpp/src", 48 "//third_party/libphonenumber/cpp/src/phonenumbers", 49 "//third_party/protobuf/src", 50 ] 51 52 deps = [ 53 "$SMS_MMS_SOURCE_DIR:tel_sms_mms", 54 "$SMS_MMS_SOURCE_DIR/frameworks/native:tel_sms_mms_api", 55 "//third_party/libphonenumber/cpp:phonenumber_standard", 56 ] 57 58 external_deps = [ 59 "ability_base:want", 60 "ability_base:zuri", 61 "ability_runtime:ability_manager", 62 "ability_runtime:data_ability_helper", 63 "access_token:libaccesstoken_sdk", 64 "access_token:libnativetoken", 65 "access_token:libtoken_setproc", 66 "curl:curl_shared", 67 "c_utils:utils", 68 "common_event_service:cesfwk_innerkits", 69 "core_service:libtel_common", 70 "core_service:tel_core_service_api", 71 "data_share:datashare_consumer", 72 "eventhandler:libeventhandler", 73 "hilog:libhilog", 74 "icu:shared_icui18n", 75 "icu:shared_icuuc", 76 "init:libbegetutil", 77 "ipc:ipc_single", 78 "netmanager_base:net_conn_manager_if", 79 "netstack:http_client", 80 "safwk:system_ability_fwk", 81 "samgr:samgr_proxy", 82 "telephony_data:tel_telephony_data", 83 ] 84 defines = [ 85 "TELEPHONY_LOG_TAG = \"SmsMmmsGtest\"", 86 "LOG_DOMAIN = 0xD000F00", 87 ] 88} 89 90group("unittest") { 91 testonly = true 92 deps = [ ":tel_sms_mms_gtest" ] 93} 94