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. 13import("//build/test.gni") 14SOURCE_DIR = ".." 15 16ohos_unittest("tel_cellular_data_test") { 17 subsystem_name = "telephony" 18 part_name = "cellular_data" 19 test_module = "tel_cellular_data_test" 20 module_out_path = part_name + "/" + test_module 21 22 sources = [ 23 "$SOURCE_DIR/frameworks/native/cellular_data_service_proxy.cpp", 24 "$SOURCE_DIR/test/cellular_data_test.cpp", 25 "$SOURCE_DIR/test/zero_branch_test.cpp", 26 ] 27 28 include_dirs = [ 29 "$SOURCE_DIR/services/include", 30 "$SOURCE_DIR/services/include/common", 31 "$SOURCE_DIR/services/include/state_machine", 32 "$SOURCE_DIR/services/include/utils", 33 "$SOURCE_DIR/services/include/apn_manager", 34 "$SOURCE_DIR/interfaces/innerkits", 35 "$SOURCE_DIR/frameworks/native", 36 ] 37 38 deps = [ 39 "$SOURCE_DIR:tel_cellular_data", 40 "$SOURCE_DIR/frameworks/native:tel_cellular_data_api", 41 ] 42 43 external_deps = [ 44 "ability_base:want", 45 "ability_runtime:abilitykit_native", 46 "ability_runtime:data_ability_helper", 47 "ability_runtime:dataobs_manager", 48 "access_token:libaccesstoken_sdk", 49 "access_token:libnativetoken", 50 "access_token:libtoken_setproc", 51 "c_utils:utils", 52 "common_event_service:cesfwk_innerkits", 53 "core_service:libtel_common", 54 "core_service:tel_core_service_api", 55 "data_share:datashare_common", 56 "data_share:datashare_consumer", 57 "eventhandler:libeventhandler", 58 "hilog:libhilog", 59 "init:libbegetutil", 60 "ipc:ipc_single", 61 "netmanager_base:net_conn_manager_if", 62 "netmanager_base:net_policy_manager_if", 63 "netmanager_base:net_stats_manager_if", 64 "relational_store:native_dataability", 65 "relational_store:native_rdb", 66 "safwk:system_ability_fwk", 67 "samgr:samgr_proxy", 68 "telephony_data:tel_telephony_data", 69 ] 70 defines = [ 71 "TELEPHONY_LOG_TAG = \"CelllularDataTest\"", 72 "LOG_DOMAIN = 0xD000F00", 73 ] 74 75 part_name = "cellular_data" 76 subsystem_name = "telephony" 77} 78 79group("unittest") { 80 testonly = true 81 deps = [ ":tel_cellular_data_test" ] 82} 83