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