1060ff233Sopenharmony_ci# Copyright (c) 2021-2024 Huawei Device Co., Ltd.
2060ff233Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3060ff233Sopenharmony_ci# you may not use this file except in compliance with the License.
4060ff233Sopenharmony_ci# You may obtain a copy of the License at
5060ff233Sopenharmony_ci#
6060ff233Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7060ff233Sopenharmony_ci#
8060ff233Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9060ff233Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10060ff233Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11060ff233Sopenharmony_ci# See the License for the specific language governing permissions and
12060ff233Sopenharmony_ci# limitations under the License.
13060ff233Sopenharmony_ci
14060ff233Sopenharmony_ciimport("//build/test.gni")
15060ff233Sopenharmony_ciimport("../../../core/authentication/authentication.gni")
16060ff233Sopenharmony_ciimport("../../../dsoftbus.gni")
17060ff233Sopenharmony_ciimport("unittest/authmanager.gni")
18060ff233Sopenharmony_ci
19060ff233Sopenharmony_cimodule_output_path = "dsoftbus/auth"
20060ff233Sopenharmony_ci
21060ff233Sopenharmony_ciohos_unittest("AuthTest") {
22060ff233Sopenharmony_ci  module_out_path = module_output_path
23060ff233Sopenharmony_ci  sources = [ "unittest/auth_test.cpp" ]
24060ff233Sopenharmony_ci
25060ff233Sopenharmony_ci  include_dirs = [
26060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
27060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
28060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
29060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
30060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
31060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
32060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
33060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
34060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
35060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
36060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
37060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
38060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
39060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
40060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
41060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
42060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
43060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
44060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
45060ff233Sopenharmony_ci    "unittest/common/",
46060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
47060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
48060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
49060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
50060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
51060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
52060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/transmission/trans_channel/manager/include",
53060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
54060ff233Sopenharmony_ci  ]
55060ff233Sopenharmony_ci
56060ff233Sopenharmony_ci  deps = [
57060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
58060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
59060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
60060ff233Sopenharmony_ci  ]
61060ff233Sopenharmony_ci
62060ff233Sopenharmony_ci  if (is_standard_system) {
63060ff233Sopenharmony_ci    external_deps = [
64060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
65060ff233Sopenharmony_ci      "cJSON:cjson",
66060ff233Sopenharmony_ci      "c_utils:utils",
67060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
68060ff233Sopenharmony_ci      "googletest:gtest_main",
69060ff233Sopenharmony_ci      "hilog:libhilog",
70060ff233Sopenharmony_ci    ]
71060ff233Sopenharmony_ci  } else {
72060ff233Sopenharmony_ci    external_deps = [
73060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
74060ff233Sopenharmony_ci      "cJSON:cjson",
75060ff233Sopenharmony_ci      "c_utils:utils",
76060ff233Sopenharmony_ci      "googletest:gtest_main",
77060ff233Sopenharmony_ci      "hilog:libhilog",
78060ff233Sopenharmony_ci    ]
79060ff233Sopenharmony_ci  }
80060ff233Sopenharmony_ci}
81060ff233Sopenharmony_ci
82060ff233Sopenharmony_ciohos_unittest("AuthEnhanceMockTest") {
83060ff233Sopenharmony_ci  module_out_path = module_output_path
84060ff233Sopenharmony_ci  sanitize = {
85060ff233Sopenharmony_ci    cfi = true
86060ff233Sopenharmony_ci    cfi_cross_dso = true
87060ff233Sopenharmony_ci    debug = false
88060ff233Sopenharmony_ci  }
89060ff233Sopenharmony_ci  sources = [
90060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c",
91060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter_virtual.cpp",
92060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp",
93060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/bind/auth_device_profile_listener_virtual.cpp",
94060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_common.c",
95060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_connection.c",
96060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_device.c",
97060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp",
98060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_hichain.c",
99060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_hichain_adapter.c",
100060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_interface.c",
101060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_lane.c",
102060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_manager.c",
103060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_normalize_request.c",
104060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_request.c",
105060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_fsm.c",
106060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_json.c",
107060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_key.c",
108060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_message.c",
109060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_tcp_connection.c",
110060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_attest_virtual.c",
111060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_device_common_key_virtual.c",
112060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_hichain_system_ability_monitor_virtual.c",
113060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_meta_manager_virtual.c",
114060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/customized_security_protocol_virtual.c",
115060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_cipherkey_manager_virtual.c",
116060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_device_info_recovery_virtual.c",
117060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_ptk_info_virtual.c",
118060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c",
119060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/src/lnn_compress_virtual.c",
120060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/src/lnn_map.c",
121060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c",
122060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp",
123060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp",
124060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_socket_mock.cpp",
125060ff233Sopenharmony_ci    "unittest/auth_common_mock.cpp",
126060ff233Sopenharmony_ci    "unittest/auth_net_ledger_mock.cpp",
127060ff233Sopenharmony_ci    "unittest/auth_test_enhance.cpp",
128060ff233Sopenharmony_ci  ]
129060ff233Sopenharmony_ci
130060ff233Sopenharmony_ci  include_dirs = [
131060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include",
132060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
133060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/include",
134060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
135060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
136060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
137060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
138060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
139060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
140060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
141060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
142060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
143060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
144060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
145060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
146060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/dfx/interface/include",
147060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
148060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
149060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/p2p/interface",
150060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/p2p/common/include",
151060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
152060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
153060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
154060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
155060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/inner_kits/lnn",
156060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
157060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/discovery",
158060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
159060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
160060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
161060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
162060ff233Sopenharmony_ci    "unittest/common/",
163060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
164060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
165060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
166060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
167060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
168060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
169060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
170060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
171060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
172060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/ble/include",
173060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/wifi_direct_cpp",
174060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/transmission/trans_channel/manager/include",
175060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
176060ff233Sopenharmony_ci  ]
177060ff233Sopenharmony_ci
178060ff233Sopenharmony_ci  deps = [
179060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter:softbus_adapter",
180060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
181060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/dfx/log:softbus_dfx_log",
182060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
183060ff233Sopenharmony_ci  ]
184060ff233Sopenharmony_ci
185060ff233Sopenharmony_ci  if (is_standard_system) {
186060ff233Sopenharmony_ci    external_deps = [
187060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
188060ff233Sopenharmony_ci      "cJSON:cjson",
189060ff233Sopenharmony_ci      "c_utils:utils",
190060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
191060ff233Sopenharmony_ci      "googletest:gmock",
192060ff233Sopenharmony_ci      "googletest:gtest_main",
193060ff233Sopenharmony_ci      "hilog:libhilog",
194060ff233Sopenharmony_ci    ]
195060ff233Sopenharmony_ci  } else {
196060ff233Sopenharmony_ci    external_deps = [
197060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
198060ff233Sopenharmony_ci      "cJSON:cjson",
199060ff233Sopenharmony_ci      "c_utils:utils",
200060ff233Sopenharmony_ci      "googletest:gmock",
201060ff233Sopenharmony_ci      "googletest:gtest_main",
202060ff233Sopenharmony_ci      "hilog:libhilog",
203060ff233Sopenharmony_ci    ]
204060ff233Sopenharmony_ci  }
205060ff233Sopenharmony_ci}
206060ff233Sopenharmony_ci
207060ff233Sopenharmony_ciohos_unittest("AuthTestCallBackTest") {
208060ff233Sopenharmony_ci  module_out_path = module_output_path
209060ff233Sopenharmony_ci  sources = [
210060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c",
211060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_common.c",
212060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_connection.c",
213060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_device.c",
214060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp",
215060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_hichain.c",
216060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_hichain_adapter.c",
217060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_interface.c",
218060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_lane.c",
219060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_manager.c",
220060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_request.c",
221060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_fsm.c",
222060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_json.c",
223060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_key.c",
224060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_session_message.c",
225060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/auth_tcp_connection.c",
226060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_device_common_key_virtual.c",
227060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src/virtual/auth_meta_manager_virtual.c",
228060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_cipherkey_manager_virtual.c",
229060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_device_info_recovery_virtual.c",
230060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c",
231060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/src/lnn_compress_virtual.c",
232060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c",
233060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp",
234060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp",
235060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_socket_mock.cpp",
236060ff233Sopenharmony_ci    "unittest/auth_common_mock.cpp",
237060ff233Sopenharmony_ci    "unittest/auth_net_ledger_mock.cpp",
238060ff233Sopenharmony_ci    "unittest/auth_test_mock.cpp",
239060ff233Sopenharmony_ci  ]
240060ff233Sopenharmony_ci
241060ff233Sopenharmony_ci  include_dirs = [
242060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include",
243060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
244060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/include",
245060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
246060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
247060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
248060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
249060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
250060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
251060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
252060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
253060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
254060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
255060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
256060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
257060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
258060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
259060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/p2p/interface",
260060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/p2p/common/include",
261060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
262060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
263060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
264060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
265060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/inner_kits/transport",
266060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
267060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/discovery",
268060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
269060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
270060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
271060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
272060ff233Sopenharmony_ci    "unittest/common/",
273060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
274060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
275060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
276060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
277060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
278060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
279060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
280060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
281060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
282060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/ble/include",
283060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/wifi_direct_cpp",
284060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/transmission/trans_channel/manager/include",
285060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
286060ff233Sopenharmony_ci  ]
287060ff233Sopenharmony_ci
288060ff233Sopenharmony_ci  deps = [
289060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter:softbus_adapter",
290060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
291060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
292060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
293060ff233Sopenharmony_ci  ]
294060ff233Sopenharmony_ci  if (is_standard_system) {
295060ff233Sopenharmony_ci    external_deps = [
296060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
297060ff233Sopenharmony_ci      "cJSON:cjson",
298060ff233Sopenharmony_ci      "c_utils:utils",
299060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
300060ff233Sopenharmony_ci      "googletest:gmock",
301060ff233Sopenharmony_ci      "googletest:gtest_main",
302060ff233Sopenharmony_ci      "hilog:libhilog",
303060ff233Sopenharmony_ci    ]
304060ff233Sopenharmony_ci  } else {
305060ff233Sopenharmony_ci    external_deps = [
306060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
307060ff233Sopenharmony_ci      "cJSON:cjson",
308060ff233Sopenharmony_ci      "c_utils:utils",
309060ff233Sopenharmony_ci      "googletest:gmock",
310060ff233Sopenharmony_ci      "googletest:gtest_main",
311060ff233Sopenharmony_ci      "hilog:libhilog",
312060ff233Sopenharmony_ci    ]
313060ff233Sopenharmony_ci  }
314060ff233Sopenharmony_ci}
315060ff233Sopenharmony_ci
316060ff233Sopenharmony_ciohos_unittest("AuthOtherTest") {
317060ff233Sopenharmony_ci  module_out_path = module_output_path
318060ff233Sopenharmony_ci  sources = [
319060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp",
320060ff233Sopenharmony_ci    "unittest/auth_other_test.cpp",
321060ff233Sopenharmony_ci    "unittest/auth_tcp_connection_mock.cpp",
322060ff233Sopenharmony_ci  ]
323060ff233Sopenharmony_ci
324060ff233Sopenharmony_ci  include_dirs = [
325060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
326060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
327060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
328060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
329060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
330060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
331060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
332060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
333060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
334060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
335060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
336060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
337060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
338060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
339060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
340060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
341060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
342060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
343060ff233Sopenharmony_ci    "unittest/common/",
344060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
345060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
346060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
347060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
348060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
349060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
350060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
351060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
352060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
353060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
354060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
355060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
356060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/wifi_direct_cpp",
357060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
358060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/include",
359060ff233Sopenharmony_ci  ]
360060ff233Sopenharmony_ci
361060ff233Sopenharmony_ci  deps = [
362060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
363060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
364060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
365060ff233Sopenharmony_ci  ]
366060ff233Sopenharmony_ci
367060ff233Sopenharmony_ci  if (is_standard_system) {
368060ff233Sopenharmony_ci    external_deps = [
369060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
370060ff233Sopenharmony_ci      "cJSON:cjson",
371060ff233Sopenharmony_ci      "c_utils:utils",
372060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
373060ff233Sopenharmony_ci      "googletest:gmock",
374060ff233Sopenharmony_ci      "googletest:gtest_main",
375060ff233Sopenharmony_ci      "hilog:libhilog",
376060ff233Sopenharmony_ci    ]
377060ff233Sopenharmony_ci  } else {
378060ff233Sopenharmony_ci    external_deps = [
379060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
380060ff233Sopenharmony_ci      "cJSON:cjson",
381060ff233Sopenharmony_ci      "c_utils:utils",
382060ff233Sopenharmony_ci      "googletest:gmock",
383060ff233Sopenharmony_ci      "googletest:gtest_main",
384060ff233Sopenharmony_ci      "hilog:libhilog",
385060ff233Sopenharmony_ci    ]
386060ff233Sopenharmony_ci  }
387060ff233Sopenharmony_ci}
388060ff233Sopenharmony_ci
389060ff233Sopenharmony_ciohos_unittest("AuthTcpConnectionTest") {
390060ff233Sopenharmony_ci  module_out_path = module_output_path
391060ff233Sopenharmony_ci  sources = [ "unittest/auth_tcp_connection_test.cpp" ]
392060ff233Sopenharmony_ci
393060ff233Sopenharmony_ci  include_dirs = [
394060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
395060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
396060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
397060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
398060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
399060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
400060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
401060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
402060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
403060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
404060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
405060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
406060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
407060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
408060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
409060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
410060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
411060ff233Sopenharmony_ci    "unittest/common/",
412060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
413060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
414060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
415060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
416060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
417060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
418060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
419060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/transmission/trans_channel/manager/include",
420060ff233Sopenharmony_ci  ]
421060ff233Sopenharmony_ci
422060ff233Sopenharmony_ci  deps = [
423060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
424060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
425060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
426060ff233Sopenharmony_ci  ]
427060ff233Sopenharmony_ci
428060ff233Sopenharmony_ci  if (is_standard_system) {
429060ff233Sopenharmony_ci    external_deps = [
430060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
431060ff233Sopenharmony_ci      "cJSON:cjson",
432060ff233Sopenharmony_ci      "c_utils:utils",
433060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
434060ff233Sopenharmony_ci      "googletest:gtest_main",
435060ff233Sopenharmony_ci      "hilog:libhilog",
436060ff233Sopenharmony_ci    ]
437060ff233Sopenharmony_ci  } else {
438060ff233Sopenharmony_ci    external_deps = [
439060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
440060ff233Sopenharmony_ci      "cJSON:cjson",
441060ff233Sopenharmony_ci      "c_utils:utils",
442060ff233Sopenharmony_ci      "googletest:gtest_main",
443060ff233Sopenharmony_ci      "hilog:libhilog",
444060ff233Sopenharmony_ci    ]
445060ff233Sopenharmony_ci  }
446060ff233Sopenharmony_ci}
447060ff233Sopenharmony_ci
448060ff233Sopenharmony_ciohos_unittest("AuthHichainTest") {
449060ff233Sopenharmony_ci  module_out_path = module_output_path
450060ff233Sopenharmony_ci  sources = [
451060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/authentication/unittest/auth_common_mock.cpp",
452060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp",
453060ff233Sopenharmony_ci    "unittest/auth_hichain_test.cpp",
454060ff233Sopenharmony_ci    "unittest/auth_net_ledger_mock.cpp",
455060ff233Sopenharmony_ci  ]
456060ff233Sopenharmony_ci
457060ff233Sopenharmony_ci  include_dirs = [
458060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
459060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
460060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
461060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/authentication/unittest",
462060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
463060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
464060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
465060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
466060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
467060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
468060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
469060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
470060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
471060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
472060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/inner_kits/transport",
473060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
474060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
475060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/discovery",
476060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
477060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
478060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
479060ff233Sopenharmony_ci    "unittest/common/",
480060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
481060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
482060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
483060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
484060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
485060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
486060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
487060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/include",
488060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
489060ff233Sopenharmony_ci  ]
490060ff233Sopenharmony_ci
491060ff233Sopenharmony_ci  deps = [
492060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
493060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
494060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
495060ff233Sopenharmony_ci  ]
496060ff233Sopenharmony_ci
497060ff233Sopenharmony_ci  if (is_standard_system) {
498060ff233Sopenharmony_ci    external_deps = [
499060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
500060ff233Sopenharmony_ci      "cJSON:cjson",
501060ff233Sopenharmony_ci      "c_utils:utils",
502060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
503060ff233Sopenharmony_ci      "googletest:gmock",
504060ff233Sopenharmony_ci      "googletest:gtest_main",
505060ff233Sopenharmony_ci      "hilog:libhilog",
506060ff233Sopenharmony_ci    ]
507060ff233Sopenharmony_ci  } else {
508060ff233Sopenharmony_ci    external_deps = [
509060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
510060ff233Sopenharmony_ci      "cJSON:cjson",
511060ff233Sopenharmony_ci      "c_utils:utils",
512060ff233Sopenharmony_ci      "googletest:gmock",
513060ff233Sopenharmony_ci      "googletest:gtest_main",
514060ff233Sopenharmony_ci      "hilog:libhilog",
515060ff233Sopenharmony_ci    ]
516060ff233Sopenharmony_ci  }
517060ff233Sopenharmony_ci}
518060ff233Sopenharmony_ci
519060ff233Sopenharmony_ciohos_unittest("AuthDeviceProfileTest") {
520060ff233Sopenharmony_ci  module_out_path = module_output_path
521060ff233Sopenharmony_ci  sources = [ "unittest/auth_device_profile_test.cpp" ]
522060ff233Sopenharmony_ci
523060ff233Sopenharmony_ci  include_dirs = [
524060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits",
525060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
526060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
527060ff233Sopenharmony_ci    "unittest/common/",
528060ff233Sopenharmony_ci  ]
529060ff233Sopenharmony_ci
530060ff233Sopenharmony_ci  deps = [
531060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
532060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
533060ff233Sopenharmony_ci  ]
534060ff233Sopenharmony_ci
535060ff233Sopenharmony_ci  if (!defined(global_parts_info) ||
536060ff233Sopenharmony_ci      defined(global_parts_info.deviceprofile_device_info_manager)) {
537060ff233Sopenharmony_ci    external_deps = [
538060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
539060ff233Sopenharmony_ci      "cJSON:cjson",
540060ff233Sopenharmony_ci      "c_utils:utils",
541060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
542060ff233Sopenharmony_ci      "device_info_manager:distributed_device_profile_common",
543060ff233Sopenharmony_ci      "device_info_manager:distributed_device_profile_sdk",
544060ff233Sopenharmony_ci      "googletest:gmock",
545060ff233Sopenharmony_ci      "googletest:gtest_main",
546060ff233Sopenharmony_ci      "hilog:libhilog",
547060ff233Sopenharmony_ci      "ipc:ipc_core",
548060ff233Sopenharmony_ci    ]
549060ff233Sopenharmony_ci  } else {
550060ff233Sopenharmony_ci    external_deps = [
551060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
552060ff233Sopenharmony_ci      "cJSON:cjson",
553060ff233Sopenharmony_ci      "c_utils:utils",
554060ff233Sopenharmony_ci      "googletest:gmock",
555060ff233Sopenharmony_ci      "googletest:gtest_main",
556060ff233Sopenharmony_ci      "hilog:libhilog",
557060ff233Sopenharmony_ci      "ipc:ipc_core",
558060ff233Sopenharmony_ci    ]
559060ff233Sopenharmony_ci  }
560060ff233Sopenharmony_ci}
561060ff233Sopenharmony_ci
562060ff233Sopenharmony_ciohos_unittest("AuthSessionMessageTest") {
563060ff233Sopenharmony_ci  module_out_path = module_output_path
564060ff233Sopenharmony_ci  sources = [ "unittest/auth_session_message_test.cpp" ]
565060ff233Sopenharmony_ci
566060ff233Sopenharmony_ci  include_dirs = [
567060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
568060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
569060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
570060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
571060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
572060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
573060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
574060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
575060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
576060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
577060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
578060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
579060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
580060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
581060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
582060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
583060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
584060ff233Sopenharmony_ci    "unittest/common/",
585060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
586060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
587060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
588060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
589060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
590060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
591060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
592060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
593060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
594060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
595060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
596060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
597060ff233Sopenharmony_ci  ]
598060ff233Sopenharmony_ci
599060ff233Sopenharmony_ci  deps = [
600060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
601060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
602060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
603060ff233Sopenharmony_ci  ]
604060ff233Sopenharmony_ci
605060ff233Sopenharmony_ci  if (is_standard_system) {
606060ff233Sopenharmony_ci    external_deps = [
607060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
608060ff233Sopenharmony_ci      "cJSON:cjson",
609060ff233Sopenharmony_ci      "c_utils:utils",
610060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
611060ff233Sopenharmony_ci      "googletest:gtest_main",
612060ff233Sopenharmony_ci      "hilog:libhilog",
613060ff233Sopenharmony_ci    ]
614060ff233Sopenharmony_ci  } else {
615060ff233Sopenharmony_ci    external_deps = [
616060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
617060ff233Sopenharmony_ci      "cJSON:cjson",
618060ff233Sopenharmony_ci      "c_utils:utils",
619060ff233Sopenharmony_ci      "googletest:gtest_main",
620060ff233Sopenharmony_ci      "hilog:libhilog",
621060ff233Sopenharmony_ci    ]
622060ff233Sopenharmony_ci  }
623060ff233Sopenharmony_ci}
624060ff233Sopenharmony_ci
625060ff233Sopenharmony_ciohos_unittest("AuthManagerTest") {
626060ff233Sopenharmony_ci  module_out_path = module_output_path
627060ff233Sopenharmony_ci  sources = auth_manager_source
628060ff233Sopenharmony_ci
629060ff233Sopenharmony_ci  include_dirs = auth_manager_include
630060ff233Sopenharmony_ci
631060ff233Sopenharmony_ci  deps = [
632060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
633060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
634060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
635060ff233Sopenharmony_ci  ]
636060ff233Sopenharmony_ci
637060ff233Sopenharmony_ci  if (is_standard_system) {
638060ff233Sopenharmony_ci    external_deps = [
639060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
640060ff233Sopenharmony_ci      "cJSON:cjson",
641060ff233Sopenharmony_ci      "c_utils:utils",
642060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
643060ff233Sopenharmony_ci      "googletest:gmock",
644060ff233Sopenharmony_ci      "googletest:gtest_main",
645060ff233Sopenharmony_ci      "hilog:libhilog",
646060ff233Sopenharmony_ci    ]
647060ff233Sopenharmony_ci  } else {
648060ff233Sopenharmony_ci    external_deps = [
649060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
650060ff233Sopenharmony_ci      "cJSON:cjson",
651060ff233Sopenharmony_ci      "c_utils:utils",
652060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
653060ff233Sopenharmony_ci      "googletest:gmock",
654060ff233Sopenharmony_ci      "googletest:gtest_main",
655060ff233Sopenharmony_ci      "hilog:libhilog",
656060ff233Sopenharmony_ci    ]
657060ff233Sopenharmony_ci  }
658060ff233Sopenharmony_ci}
659060ff233Sopenharmony_ci
660060ff233Sopenharmony_ciohos_unittest("AuthSessionFsmTest") {
661060ff233Sopenharmony_ci  module_out_path = module_output_path
662060ff233Sopenharmony_ci  sources = [
663060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/discovery/ble/softbus_ble_mock/ble_mock.cpp",
664060ff233Sopenharmony_ci    "unittest/auth_session_fsm_test.cpp",
665060ff233Sopenharmony_ci  ]
666060ff233Sopenharmony_ci
667060ff233Sopenharmony_ci  include_dirs = [
668060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
669060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
670060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
671060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
672060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
673060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
674060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
675060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
676060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
677060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
678060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/$os_type/init/include",
679060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
680060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
681060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
682060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
683060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
684060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
685060ff233Sopenharmony_ci    "unittest/common/",
686060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
687060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
688060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
689060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
690060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
691060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
692060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
693060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
694060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
695060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
696060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
697060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
698060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/discovery/ble/softbus_ble_mock",
699060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include",
700060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface",
701060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/broadcast/common/include",
702060ff233Sopenharmony_ci  ]
703060ff233Sopenharmony_ci
704060ff233Sopenharmony_ci  deps = [
705060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
706060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
707060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
708060ff233Sopenharmony_ci  ]
709060ff233Sopenharmony_ci
710060ff233Sopenharmony_ci  if (is_standard_system) {
711060ff233Sopenharmony_ci    external_deps = [
712060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
713060ff233Sopenharmony_ci      "cJSON:cjson",
714060ff233Sopenharmony_ci      "c_utils:utils",
715060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
716060ff233Sopenharmony_ci      "googletest:gmock",
717060ff233Sopenharmony_ci      "googletest:gtest_main",
718060ff233Sopenharmony_ci      "hilog:libhilog",
719060ff233Sopenharmony_ci    ]
720060ff233Sopenharmony_ci  } else {
721060ff233Sopenharmony_ci    external_deps = [
722060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
723060ff233Sopenharmony_ci      "cJSON:cjson",
724060ff233Sopenharmony_ci      "c_utils:utils",
725060ff233Sopenharmony_ci      "googletest:gmock",
726060ff233Sopenharmony_ci      "googletest:gtest_main",
727060ff233Sopenharmony_ci      "hilog:libhilog",
728060ff233Sopenharmony_ci    ]
729060ff233Sopenharmony_ci  }
730060ff233Sopenharmony_ci}
731060ff233Sopenharmony_ci
732060ff233Sopenharmony_ciohos_unittest("AuthSessionKeyTest") {
733060ff233Sopenharmony_ci  module_out_path = module_output_path
734060ff233Sopenharmony_ci  sources = [ "unittest/auth_session_key_test.cpp" ]
735060ff233Sopenharmony_ci
736060ff233Sopenharmony_ci  include_dirs = [
737060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
738060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
739060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
740060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
741060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
742060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
743060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
744060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
745060ff233Sopenharmony_ci    "unittest/common/",
746060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
747060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
748060ff233Sopenharmony_ci  ]
749060ff233Sopenharmony_ci
750060ff233Sopenharmony_ci  deps = [
751060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
752060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
753060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
754060ff233Sopenharmony_ci  ]
755060ff233Sopenharmony_ci
756060ff233Sopenharmony_ci  if (is_standard_system) {
757060ff233Sopenharmony_ci    external_deps = [
758060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
759060ff233Sopenharmony_ci      "c_utils:utils",
760060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
761060ff233Sopenharmony_ci      "googletest:gtest_main",
762060ff233Sopenharmony_ci      "hilog:libhilog",
763060ff233Sopenharmony_ci    ]
764060ff233Sopenharmony_ci  } else {
765060ff233Sopenharmony_ci    external_deps = [
766060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
767060ff233Sopenharmony_ci      "c_utils:utils",
768060ff233Sopenharmony_ci      "googletest:gtest_main",
769060ff233Sopenharmony_ci      "hilog:libhilog",
770060ff233Sopenharmony_ci    ]
771060ff233Sopenharmony_ci  }
772060ff233Sopenharmony_ci}
773060ff233Sopenharmony_ci
774060ff233Sopenharmony_ciohos_unittest("AuthNormalizeRequestTest") {
775060ff233Sopenharmony_ci  module_out_path = module_output_path
776060ff233Sopenharmony_ci  sources = [ "unittest/auth_normalize_request_test.cpp" ]
777060ff233Sopenharmony_ci
778060ff233Sopenharmony_ci  include_dirs = [
779060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
780060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
781060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
782060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
783060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
784060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
785060ff233Sopenharmony_ci  ]
786060ff233Sopenharmony_ci
787060ff233Sopenharmony_ci  deps = [
788060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
789060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
790060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test",
791060ff233Sopenharmony_ci  ]
792060ff233Sopenharmony_ci
793060ff233Sopenharmony_ci  if (is_standard_system) {
794060ff233Sopenharmony_ci    external_deps = [
795060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
796060ff233Sopenharmony_ci      "cJSON:cjson",
797060ff233Sopenharmony_ci      "c_utils:utils",
798060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
799060ff233Sopenharmony_ci      "googletest:gtest_main",
800060ff233Sopenharmony_ci      "hilog:libhilog",
801060ff233Sopenharmony_ci    ]
802060ff233Sopenharmony_ci  } else {
803060ff233Sopenharmony_ci    external_deps = [
804060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
805060ff233Sopenharmony_ci      "cJSON:cjson",
806060ff233Sopenharmony_ci      "c_utils:utils",
807060ff233Sopenharmony_ci      "googletest:gtest_main",
808060ff233Sopenharmony_ci      "hilog:libhilog",
809060ff233Sopenharmony_ci    ]
810060ff233Sopenharmony_ci  }
811060ff233Sopenharmony_ci}
812060ff233Sopenharmony_ci
813060ff233Sopenharmony_ciohos_unittest("AuthLaneTest") {
814060ff233Sopenharmony_ci  module_out_path = module_output_path
815060ff233Sopenharmony_ci  sources = [
816060ff233Sopenharmony_ci    "unittest/auth_lane_mock.cpp",
817060ff233Sopenharmony_ci    "unittest/auth_lane_test.cpp",
818060ff233Sopenharmony_ci  ]
819060ff233Sopenharmony_ci
820060ff233Sopenharmony_ci  include_dirs = [
821060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
822060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
823060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/interface",
824060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/utils/include",
825060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include",
826060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include",
827060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include",
828060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/include",
829060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common/message_handler/include",
830060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/interface",
831060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame/common/include",
832060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/bus_center",
833060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits/common",
834060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/manager",
835060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/include/",
836060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/sdk/common/include",
837060ff233Sopenharmony_ci    "unittest/common/",
838060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/src",
839060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/manager/include",
840060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/discovery/interface",
841060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include",
842060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/src",
843060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include",
844060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include",
845060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include",
846060ff233Sopenharmony_ci    "$dsoftbus_root_path/adapter/common/net/bluetooth/include",
847060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/bus_center/include",
848060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include",
849060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/service/include",
850060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/adapter/authentication/include",
851060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/wifi_direct_cpp/utils",
852060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/connection/wifi_direct_cpp",
853060ff233Sopenharmony_ci    "$dsoftbus_root_path/tests/core/bus_center/mock_common/include",
854060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include",
855060ff233Sopenharmony_ci  ]
856060ff233Sopenharmony_ci
857060ff233Sopenharmony_ci  deps = [
858060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/common:softbus_utils",
859060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/frame:softbus_server",
860060ff233Sopenharmony_ci  ]
861060ff233Sopenharmony_ci
862060ff233Sopenharmony_ci  if (is_standard_system) {
863060ff233Sopenharmony_ci    external_deps = [
864060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
865060ff233Sopenharmony_ci      "cJSON:cjson",
866060ff233Sopenharmony_ci      "c_utils:utils",
867060ff233Sopenharmony_ci      "device_auth:deviceauth_sdk",
868060ff233Sopenharmony_ci      "googletest:gmock",
869060ff233Sopenharmony_ci      "googletest:gtest_main",
870060ff233Sopenharmony_ci      "hilog:libhilog",
871060ff233Sopenharmony_ci    ]
872060ff233Sopenharmony_ci  } else {
873060ff233Sopenharmony_ci    external_deps = [
874060ff233Sopenharmony_ci      "bounds_checking_function:libsec_shared",
875060ff233Sopenharmony_ci      "cJSON:cjson",
876060ff233Sopenharmony_ci      "c_utils:utils",
877060ff233Sopenharmony_ci      "googletest:gmock",
878060ff233Sopenharmony_ci      "googletest:gtest_main",
879060ff233Sopenharmony_ci      "hilog:libhilog",
880060ff233Sopenharmony_ci    ]
881060ff233Sopenharmony_ci  }
882060ff233Sopenharmony_ci}
883060ff233Sopenharmony_ci
884060ff233Sopenharmony_ciohos_unittest("AuthDeviceProfileListenerTest") {
885060ff233Sopenharmony_ci  module_out_path = module_output_path
886060ff233Sopenharmony_ci  sources = [
887060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/bind/auth_device_profile_listener.cpp",
888060ff233Sopenharmony_ci    "unittest/auth_device_profile_listener_mock.cpp",
889060ff233Sopenharmony_ci    "unittest/auth_device_profile_listener_test.cpp",
890060ff233Sopenharmony_ci  ]
891060ff233Sopenharmony_ci
892060ff233Sopenharmony_ci  include_dirs = [
893060ff233Sopenharmony_ci    "$dsoftbus_root_path/interfaces/kits",
894060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/interface",
895060ff233Sopenharmony_ci    "$dsoftbus_root_path/core/authentication/include",
896060ff233Sopenharmony_ci  ]
897060ff233Sopenharmony_ci
898060ff233Sopenharmony_ci  deps = [ "$dsoftbus_root_path/core/common:softbus_utils" ]
899060ff233Sopenharmony_ci
900060ff233Sopenharmony_ci  if (!defined(global_parts_info) ||
901060ff233Sopenharmony_ci      defined(global_parts_info.deviceprofile_device_info_manager)) {
902060ff233Sopenharmony_ci    external_deps = [
903060ff233Sopenharmony_ci      "device_info_manager:distributed_device_profile_common",
904060ff233Sopenharmony_ci      "device_info_manager:distributed_device_profile_sdk",
905060ff233Sopenharmony_ci      "hilog:libhilog",
906060ff233Sopenharmony_ci      "ipc:ipc_core",
907060ff233Sopenharmony_ci    ]
908060ff233Sopenharmony_ci  } else {
909060ff233Sopenharmony_ci    external_deps = [
910060ff233Sopenharmony_ci      "hilog:libhilog",
911060ff233Sopenharmony_ci      "ipc:ipc_core",
912060ff233Sopenharmony_ci    ]
913060ff233Sopenharmony_ci  }
914060ff233Sopenharmony_ci  external_deps += [
915060ff233Sopenharmony_ci    "bounds_checking_function:libsec_shared",
916060ff233Sopenharmony_ci    "c_utils:utils",
917060ff233Sopenharmony_ci    "device_auth:deviceauth_sdk",
918060ff233Sopenharmony_ci    "googletest:gmock_main",
919060ff233Sopenharmony_ci    "googletest:gtest_main",
920060ff233Sopenharmony_ci  ]
921060ff233Sopenharmony_ci}
922060ff233Sopenharmony_ci
923060ff233Sopenharmony_cigroup("unittest") {
924060ff233Sopenharmony_ci  testonly = true
925060ff233Sopenharmony_ci  deps = [
926060ff233Sopenharmony_ci    ":AuthDeviceProfileListenerTest",
927060ff233Sopenharmony_ci    ":AuthDeviceProfileTest",
928060ff233Sopenharmony_ci    ":AuthEnhanceMockTest",
929060ff233Sopenharmony_ci    ":AuthHichainTest",
930060ff233Sopenharmony_ci    ":AuthLaneTest",
931060ff233Sopenharmony_ci    ":AuthManagerTest",
932060ff233Sopenharmony_ci    ":AuthNormalizeRequestTest",
933060ff233Sopenharmony_ci    ":AuthOtherTest",
934060ff233Sopenharmony_ci    ":AuthSessionFsmTest",
935060ff233Sopenharmony_ci    ":AuthSessionKeyTest",
936060ff233Sopenharmony_ci    ":AuthSessionMessageTest",
937060ff233Sopenharmony_ci    ":AuthTcpConnectionTest",
938060ff233Sopenharmony_ci    ":AuthTest",
939060ff233Sopenharmony_ci    ":AuthTestCallBackTest",
940060ff233Sopenharmony_ci  ]
941060ff233Sopenharmony_ci}
942060ff233Sopenharmony_ci
943060ff233Sopenharmony_cigroup("fuzztest") {
944060ff233Sopenharmony_ci  testonly = true
945060ff233Sopenharmony_ci  deps = [ "fuzztest:fuzztest" ]
946060ff233Sopenharmony_ci  if (enhanced) {
947060ff233Sopenharmony_ci    deps += [
948060ff233Sopenharmony_ci      "$dsoftbus_root_path/dsoftbus_enhance/test/core/authentication:fuzztest",
949060ff233Sopenharmony_ci    ]
950060ff233Sopenharmony_ci  }
951060ff233Sopenharmony_ci}
952