• 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")
15CELLULAR_CALL_PATH = "../../.."
16
17ohos_unittest("tel_cellular_call_ims_test") {
18  subsystem_name = "telephony"
19  part_name = "cellular_call"
20  test_module = "tel_cellular_call_ims_test"
21  module_out_path = part_name + "/" + test_module
22
23  sources = [
24    "${CELLULAR_CALL_PATH}/../core_service/services/ims_service_interaction/src/ims_core_service_callback_stub.cpp",
25    "${CELLULAR_CALL_PATH}/../core_service/services/ims_service_interaction/src/ims_core_service_client.cpp",
26    "${CELLULAR_CALL_PATH}/../core_service/services/ims_service_interaction/src/ims_core_service_proxy.cpp",
27    "ims_callback_test.cpp",
28    "ims_test.cpp",
29    "zero_branch_test.cpp",
30  ]
31
32  include_dirs = [
33    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims",
34    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
35    "${CELLULAR_CALL_PATH}/services/common/include",
36    "${CELLULAR_CALL_PATH}/services/connection/include",
37    "${CELLULAR_CALL_PATH}/services/control/include",
38    "${CELLULAR_CALL_PATH}/services/manager/include",
39  ]
40
41  deps = [
42    "${CELLULAR_CALL_PATH}:tel_cellular_call",
43    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
44    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
45    "//third_party/libphonenumber/cpp:phonenumber_standard",
46  ]
47
48  external_deps = [
49    "ability_base:want",
50    "access_token:libaccesstoken_sdk",
51    "access_token:libnativetoken",
52    "access_token:libtoken_setproc",
53    "c_utils:utils",
54    "call_manager:tel_call_manager_api",
55    "common_event_service:cesfwk_innerkits",
56    "core_service:libtel_common",
57    "core_service:tel_core_service_api",
58    "eventhandler:libeventhandler",
59    "graphic_surface:surface",
60    "hilog:libhilog",
61    "init:libbegetutil",
62    "ipc:ipc_single",
63    "safwk:system_ability_fwk",
64    "safwk:system_ability_fwk",
65    "samgr:samgr_proxy",
66    "samgr:samgr_proxy",
67    "telephony_data:tel_telephony_data",
68  ]
69  defines = [
70    "TELEPHONY_LOG_TAG = \"CellularCallImsTest\"",
71    "LOG_DOMAIN = 0xD000F00",
72  ]
73}
74
75group("unittest") {
76  testonly = true
77  deps = [ ":tel_cellular_call_ims_test" ]
78}
79