• 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/ohos.gni")
15import("//build/test.gni")
16CELLULAR_CALL_PATH = "../../.."
17
18ohos_unittest("cellular_call_cs_calloperation_test") {
19  subsystem_name = "telephony"
20  part_name = "cellular_call"
21  test_module = "cstest"
22  module_out_path = part_name + "/" + part_name + "/" + test_module
23  sources = [ "cs_calloperation_test.cpp" ]
24
25  include_dirs = [
26    "${CELLULAR_CALL_PATH}/services/common/include",
27    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
28    "${CELLULAR_CALL_PATH}/services/connection/include",
29    "${CELLULAR_CALL_PATH}/services/control/include",
30    "${CELLULAR_CALL_PATH}/services/manager/include",
31    "${CELLULAR_CALL_PATH}/services/utils/include",
32  ]
33
34  deps = [
35    "${CELLULAR_CALL_PATH}:tel_cellular_call",
36    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
37    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
38  ]
39
40  external_deps = [
41    "ability_base:want",
42    "access_token:libaccesstoken_sdk",
43    "access_token:libnativetoken_shared",
44    "access_token:libtoken_setproc",
45    "c_utils:utils",
46    "call_manager:tel_call_manager_api",
47    "common_event_service:cesfwk_innerkits",
48    "core_service:libtel_common",
49    "core_service:tel_core_service_api",
50    "eventhandler:libeventhandler",
51    "ffrt:libffrt",
52    "graphic_surface:surface",
53    "hilog:libhilog",
54    "init:libbegetutil",
55    "ipc:ipc_single",
56    "safwk:system_ability_fwk",
57    "samgr:samgr_proxy",
58    "telephony_data:tel_telephony_data",
59  ]
60  defines = [
61    "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"",
62    "LOG_DOMAIN = 0xD000F00",
63  ]
64}
65
66ohos_unittest("cellular_call_cs1_test") {
67  subsystem_name = "telephony"
68  part_name = "cellular_call"
69  test_module = "cstest"
70  module_out_path = part_name + "/" + part_name + "/" + test_module
71  sources = [ "cs1_test.cpp" ]
72
73  include_dirs = [
74    "${CELLULAR_CALL_PATH}/services/common/include",
75    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
76    "${CELLULAR_CALL_PATH}/services/connection/include",
77    "${CELLULAR_CALL_PATH}/services/control/include",
78    "${CELLULAR_CALL_PATH}/services/manager/include",
79    "${CELLULAR_CALL_PATH}/services/utils/include",
80  ]
81
82  deps = [
83    "${CELLULAR_CALL_PATH}:tel_cellular_call",
84    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
85    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
86  ]
87
88  external_deps = [
89    "ability_base:want",
90    "access_token:libaccesstoken_sdk",
91    "access_token:libnativetoken_shared",
92    "access_token:libtoken_setproc",
93    "c_utils:utils",
94    "call_manager:tel_call_manager_api",
95    "common_event_service:cesfwk_innerkits",
96    "core_service:libtel_common",
97    "core_service:tel_core_service_api",
98    "eventhandler:libeventhandler",
99    "ffrt:libffrt",
100    "graphic_surface:surface",
101    "hilog:libhilog",
102    "init:libbegetutil",
103    "ipc:ipc_single",
104    "safwk:system_ability_fwk",
105    "samgr:samgr_proxy",
106    "telephony_data:tel_telephony_data",
107  ]
108  defines = [
109    "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"",
110    "LOG_DOMAIN = 0xD000F00",
111  ]
112}
113
114ohos_unittest("cellular_call_cs2_test") {
115  subsystem_name = "telephony"
116  part_name = "cellular_call"
117  test_module = "cstest"
118  module_out_path = part_name + "/" + part_name + "/" + test_module
119  sources = [ "cs2_test.cpp" ]
120
121  include_dirs = [
122    "${CELLULAR_CALL_PATH}/services/common/include",
123    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite",
124    "${CELLULAR_CALL_PATH}/services/connection/include",
125    "${CELLULAR_CALL_PATH}/services/control/include",
126    "${CELLULAR_CALL_PATH}/services/manager/include",
127    "${CELLULAR_CALL_PATH}/services/utils/include",
128  ]
129
130  deps = [
131    "${CELLULAR_CALL_PATH}:tel_cellular_call",
132    "${CELLULAR_CALL_PATH}/interfaces/innerkits/ims:tel_ims_call_api",
133    "${CELLULAR_CALL_PATH}/interfaces/innerkits/satellite:tel_satellite_call_api",
134  ]
135
136  external_deps = [
137    "ability_base:want",
138    "access_token:libaccesstoken_sdk",
139    "access_token:libnativetoken_shared",
140    "access_token:libtoken_setproc",
141    "c_utils:utils",
142    "call_manager:tel_call_manager_api",
143    "common_event_service:cesfwk_innerkits",
144    "core_service:libtel_common",
145    "core_service:tel_core_service_api",
146    "eventhandler:libeventhandler",
147    "ffrt:libffrt",
148    "graphic_surface:surface",
149    "hilog:libhilog",
150    "init:libbegetutil",
151    "ipc:ipc_single",
152    "safwk:system_ability_fwk",
153    "samgr:samgr_proxy",
154    "telephony_data:tel_telephony_data",
155  ]
156  defines = [
157    "TELEPHONY_LOG_TAG = \"CellularCallCsTest\"",
158    "LOG_DOMAIN = 0xD000F00",
159  ]
160}
161
162group("unittest") {
163  testonly = true
164  deps = [
165    ":cellular_call_cs1_test",
166    ":cellular_call_cs2_test",
167    ":cellular_call_cs_calloperation_test",
168  ]
169}
170