• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (C) 2021-2022 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("//base/telephony/core_service/telephony.gni")
15import("//build/ohos.gni")
16SOURCE_DIR = "//base/telephony/cellular_call"
17import("//build/test.gni")
18
19ohos_unittest("tel_cellular_call_cs_test") {
20  subsystem_name = "telephony"
21  part_name = "cellular_call"
22  test_module = "tel_cellular_call_cs_test"
23  module_out_path = part_name + "/" + test_module
24  sources = [
25    "//base/telephony/call_manager/services/telephony_interaction/src/cellular_call_proxy.cpp",
26    "cs_test.cpp",
27  ]
28
29  include_dirs = [
30    "$SOURCE_DIR/interfaces/innerkits/ims",
31    "$SOURCE_DIR/services/common/include",
32    "$SOURCE_DIR/services/connection/include",
33    "$SOURCE_DIR/services/control/include",
34    "$SOURCE_DIR/services/manager/include",
35    "//base/telephony/call_manager/interfaces/innerkits",
36    "//base/telephony/call_manager/services/telephony_interaction/include",
37    "//third_party/libphonenumber/cpp/src",
38    "//third_party/libphonenumber/cpp/src/phonenumbers",
39  ]
40
41  configs = [ "//base/telephony/core_service/utils:telephony_log_config" ]
42
43  deps = [
44    "//base/telephony/cellular_call:tel_cellular_call",
45    "//base/telephony/core_service/interfaces/innerkits:tel_core_service_api",
46    "//base/telephony/core_service/utils:libtel_common",
47    "//third_party/googletest:gtest_main",
48    "//third_party/libphonenumber/cpp:phonenumber_standard",
49  ]
50
51  external_deps = [
52    "ability_base:want",
53    "access_token:libaccesstoken_sdk",
54    "access_token:libnativetoken",
55    "access_token:libtoken_setproc",
56    "c_utils:utils",
57    "common_event_service:cesfwk_innerkits",
58    "core_service:tel_core_service_api",
59    "drivers_interface_ril:hril_innerkits",
60    "eventhandler:libeventhandler",
61    "init:libbegetutil",
62    "ipc:ipc_core",
63    "safwk:system_ability_fwk",
64    "samgr:samgr_proxy",
65  ]
66  defines += [
67    "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"",
68    "LOG_DOMAIN = 0xD000F00",
69  ]
70  if (is_standard_system) {
71    external_deps += [ "hiviewdfx_hilog_native:libhilog" ]
72  } else {
73    external_deps += [ "hilog:libhilog" ]
74  }
75}
76
77group("unittest") {
78  testonly = true
79  deps = [ ":tel_cellular_call_cs_test" ]
80}
81