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/ohos.gni")
14
15SOURCE_DIR = "../.."
16ohos_executable("tel_cellular_data_ui_test") {
17  sanitize = {
18    cfi = true
19    cfi_cross_dso = true
20    debug = false
21  }
22  branch_protector_ret = "pac_ret"
23  sources = [ "cellular_data_code_test.cpp" ]
24
25  include_dirs = [
26    "$SOURCE_DIR/interfaces/innerkits",
27    "$SOURCE_DIR/interfaces/kits/native",
28    "$SOURCE_DIR/services/include/common",
29  ]
30
31  deps = [ "$SOURCE_DIR/frameworks/native:tel_cellular_data_api" ]
32
33  external_deps = [
34    "ability_runtime:abilitykit_native",
35    "access_token:libaccesstoken_sdk",
36    "access_token:libnativetoken",
37    "access_token:libtoken_setproc",
38    "c_utils:utils",
39    "core_service:libtel_common",
40    "core_service:tel_core_service_api",
41    "eventhandler:libeventhandler",
42    "hilog:libhilog",
43    "init:libbegetutil",
44    "ipc:ipc_single",
45    "netmanager_base:net_conn_manager_if",
46  ]
47
48  defines = [
49    "TELEPHONY_LOG_TAG = \"CelllularDataUiTest\"",
50    "LOG_DOMAIN = 0xD000F00",
51  ]
52
53  part_name = "cellular_data"
54  subsystem_name = "telephony"
55}
56