• 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/core_service/telephony.gni")
14import("//build/test.gni")
15SOURCE_DIR = "//base/telephony/cellular_data"
16
17ohos_unittest("tel_cellular_data_test") {
18  subsystem_name = "telephony"
19  part_name = "cellular_data"
20  test_module = "tel_cellular_data_test"
21  module_out_path = part_name + "/" + test_module
22
23  sources = [
24    "$SOURCE_DIR/frameworks/native/cellular_data_service_proxy.cpp",
25    "$SOURCE_DIR/test/cellular_data_test.cpp",
26  ]
27
28  include_dirs = [
29    "$SOURCE_DIR/services/include",
30    "$SOURCE_DIR/interfaces/innerkits",
31    "$SOURCE_DIR/frameworks/native",
32  ]
33
34  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
35
36  deps = [ "//utils/native/base:utils" ]
37
38  if ("${product_name}" == "rk3568" || "${product_name}" == "DAYU") {
39    defines += [ "TEL_TEST_UNSUPPORT" ]
40  }
41
42  external_deps = [
43    "cellular_data:tel_cellular_data_api",
44    "core_service:tel_core_service_api",
45    "eventhandler:libeventhandler",
46    "ipc:ipc_core",
47    "safwk:system_ability_fwk",
48    "samgr_standard:samgr_proxy",
49    "startup_l2:syspara",
50  ]
51
52  if (is_standard_system) {
53    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
54  } else {
55    external_deps += [ "hilog:libhilog" ]
56  }
57
58  part_name = "cellular_data"
59  subsystem_name = "telephony"
60}
61
62group("unittest") {
63  testonly = true
64  deps = [ ":tel_cellular_data_test" ]
65}
66