• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("//base/telephony/cellular_data/cellular_data_ability_runtime.gni")
14import("//base/telephony/core_service/telephony.gni")
15import("//build/ohos.gni")
16
17SOURCE_DIR = "//base/telephony/cellular_data"
18ohos_executable("tel_cellular_data_ui_test") {
19  sources = [ "cellular_data_code_test.cpp" ]
20
21  include_dirs = [
22    "$SOURCE_DIR/interfaces/innerkits",
23    "$SOURCE_DIR/interfaces/kits/native",
24    "$SOURCE_DIR/services/include/common",
25  ]
26
27  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
28
29  deps = [ "${ability_runtime_path}/frameworks/native/ability/native:abilitykit_native" ]
30
31  external_deps = [
32    "access_token:libaccesstoken_sdk",
33    "access_token:libnativetoken",
34    "access_token:libtoken_setproc",
35    "c_utils:utils",
36    "cellular_data:tel_cellular_data_api",
37    "core_service:tel_core_service_api",
38    "eventhandler:libeventhandler",
39    "init:libbegetutil",
40  ]
41
42  defines += [
43    "TELEPHONY_LOG_TAG = \"CelllularDataUiTest\"",
44    "LOG_DOMAIN = 0xD000F00",
45  ]
46
47  if (is_standard_system) {
48    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
49  } else {
50    external_deps += [ "hilog:libhilog" ]
51  }
52
53  part_name = "cellular_data"
54  subsystem_name = "telephony"
55}
56