1# Copyright (c) 2021-2025 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") 15import("../../../core/authentication/authentication.gni") 16import("../../../dsoftbus.gni") 17import("unittest/authmanager.gni") 18 19module_output_path = "dsoftbus/soft_bus/auth" 20 21ohos_unittest("AuthTest") { 22 module_out_path = module_output_path 23 sources = [ 24 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 25 "unittest/auth_test.cpp", 26 ] 27 28 include_dirs = [ 29 "$dsoftbus_dfx_path/interface/include/form", 30 "$dsoftbus_dfx_path/interface/include/legacy", 31 "$dsoftbus_root_path/adapter/common/include/", 32 "$dsoftbus_root_path/core/adapter/bus_center/include", 33 "$dsoftbus_root_path/core/authentication/include", 34 "$dsoftbus_root_path/core/authentication/interface", 35 "$dsoftbus_root_path/core/authentication/src", 36 "$dsoftbus_root_path/core/bus_center/interface", 37 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 38 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 39 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 40 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 41 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 42 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 43 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 44 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 45 "$dsoftbus_root_path/core/bus_center/monitor/include", 46 "$dsoftbus_root_path/core/bus_center/service/include", 47 "$dsoftbus_root_path/core/bus_center/utils/include", 48 "$dsoftbus_root_path/core/common/include", 49 "$dsoftbus_root_path/core/common/message_handler/include", 50 "$dsoftbus_root_path/core/connection/interface", 51 "$dsoftbus_root_path/core/connection/manager", 52 "$dsoftbus_root_path/core/discovery/interface", 53 "$dsoftbus_root_path/core/discovery/manager/include", 54 "$dsoftbus_root_path/core/frame/$os_type/init/include", 55 "$dsoftbus_root_path/core/frame/common/include", 56 "$dsoftbus_root_path/core/transmission/trans_channel/manager/include", 57 "$dsoftbus_root_path/interfaces/kits/bus_center", 58 "$dsoftbus_root_path/interfaces/kits/common", 59 "$dsoftbus_root_path/tests/sdk/common/include", 60 "unittest/common/", 61 ] 62 63 deps = [ 64 "$dsoftbus_root_path/core/common:softbus_utils", 65 "$dsoftbus_root_path/core/frame:softbus_server", 66 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 67 "$dsoftbus_root_path/adapter:softbus_adapter", 68 ] 69 70 if (is_standard_system) { 71 external_deps = [ 72 "bounds_checking_function:libsec_shared", 73 "cJSON:cjson", 74 "c_utils:utils", 75 "device_auth:deviceauth_sdk", 76 "dsoftbus:softbus_client", 77 "googletest:gtest_main", 78 "hilog:libhilog", 79 ] 80 } else { 81 external_deps = [ 82 "bounds_checking_function:libsec_shared", 83 "cJSON:cjson", 84 "c_utils:utils", 85 "dsoftbus:softbus_client", 86 "googletest:gtest_main", 87 "hilog:libhilog", 88 ] 89 } 90} 91 92ohos_unittest("AuthConnectionTest") { 93 module_out_path = module_output_path 94 sources = [ 95 "unittest/auth_connection_mock.cpp", 96 "unittest/auth_connection_test.cpp", 97 ] 98 99 include_dirs = [ 100 "$dsoftbus_dfx_path/interface/include/form", 101 "$dsoftbus_dfx_path/interface/include/legacy", 102 "$dsoftbus_root_path/adapter/common/include/", 103 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 104 "$dsoftbus_root_path/core/adapter/bus_center/include", 105 "$dsoftbus_root_path/core/authentication/include", 106 "$dsoftbus_root_path/core/authentication/interface", 107 "$dsoftbus_root_path/core/authentication/src", 108 "$dsoftbus_root_path/core/bus_center/interface", 109 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 110 "$dsoftbus_root_path/core/bus_center/lnn/lanehub/heartbeat/include", 111 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 112 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 113 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 114 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 115 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 116 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 117 "$dsoftbus_root_path/core/bus_center/monitor/include", 118 "$dsoftbus_root_path/core/bus_center/service/include", 119 "$dsoftbus_root_path/core/bus_center/utils/include", 120 "$dsoftbus_root_path/core/common/include", 121 "$dsoftbus_root_path/core/common/message_handler/include", 122 "$dsoftbus_root_path/core/connection/interface", 123 "$dsoftbus_root_path/core/connection/manager", 124 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 125 "$dsoftbus_root_path/core/discovery/interface", 126 "$dsoftbus_root_path/core/discovery/manager/include", 127 "$dsoftbus_root_path/core/frame/common/include", 128 "$dsoftbus_root_path/core/frame/ostype/init/include", 129 "$dsoftbus_root_path/core/transmission/transchannel/manager/include", 130 "$dsoftbus_root_path/interfaces/kits/bus_center", 131 "$dsoftbus_root_path/interfaces/kits/common", 132 "$dsoftbus_root_path/interfaces/kits/connect", 133 "$dsoftbus_root_path/tests/sdk/common/include", 134 "unittest/common/", 135 ] 136 137 deps = [ 138 "$dsoftbus_root_path/core/common:softbus_utils", 139 "$dsoftbus_root_path/core/frame:softbus_server", 140 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 141 "$dsoftbus_root_path/adapter:softbus_adapter", 142 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 143 "$dsoftbus_root_path/dfx:softbus_dfx", 144 ] 145 146 if (is_standard_system) { 147 external_deps = [ 148 "bounds_checking_function:libsec_shared", 149 "cJSON:cjson", 150 "c_utils:utils", 151 "device_auth:deviceauth_sdk", 152 "dsoftbus:softbus_client", 153 "googletest:gmock", 154 "googletest:gtest_main", 155 "hilog:libhilog", 156 ] 157 } else { 158 external_deps = [ 159 "bounds_checking_function:libsec_shared", 160 "cJSON:cjson", 161 "c_utils:utils", 162 "dsoftbus:softbus_client", 163 "googletest:gmock", 164 "googletest:gtest_main", 165 "hilog:libhilog", 166 ] 167 } 168} 169 170ohos_unittest("AuthEnhanceMockTest") { 171 module_out_path = module_output_path 172 sanitize = { 173 cfi = true 174 cfi_cross_dso = true 175 debug = false 176 } 177 178 sources = [ 179 "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c", 180 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_ohos_account_adapter_virtual.cpp", 181 "$dsoftbus_root_path/core/adapter/bus_center/src/lnn_settingdata_event_monitor_virtual.cpp", 182 "$dsoftbus_root_path/core/authentication/bind/auth_device_profile_listener_virtual.cpp", 183 "$dsoftbus_root_path/core/authentication/src/auth_common.c", 184 "$dsoftbus_root_path/core/authentication/src/auth_connection.c", 185 "$dsoftbus_root_path/core/authentication/src/auth_device.c", 186 "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp", 187 "$dsoftbus_root_path/core/authentication/src/auth_hichain.c", 188 "$dsoftbus_root_path/core/authentication/src/auth_hichain_adapter.c", 189 "$dsoftbus_root_path/core/authentication/src/auth_interface.c", 190 "$dsoftbus_root_path/core/authentication/src/auth_lane.c", 191 "$dsoftbus_root_path/core/authentication/src/auth_manager.c", 192 "$dsoftbus_root_path/core/authentication/src/auth_normalize_request.c", 193 "$dsoftbus_root_path/core/authentication/src/auth_pre_link.c", 194 "$dsoftbus_root_path/core/authentication/src/auth_request.c", 195 "$dsoftbus_root_path/core/authentication/src/auth_session_fsm.c", 196 "$dsoftbus_root_path/core/authentication/src/auth_session_json.c", 197 "$dsoftbus_root_path/core/authentication/src/auth_session_key.c", 198 "$dsoftbus_root_path/core/authentication/src/auth_session_message.c", 199 "$dsoftbus_root_path/core/authentication/src/auth_tcp_connection.c", 200 "$dsoftbus_root_path/core/authentication/src/virtual/auth_hichain_system_ability_monitor_virtual.c", 201 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 202 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c", 203 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_map.c", 204 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c", 205 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp", 206 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_socket_mock.cpp", 207 "unittest/auth_common_mock.cpp", 208 "unittest/auth_net_ledger_mock.cpp", 209 "unittest/auth_test_enhance.cpp", 210 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 211 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 212 "$dsoftbus_root_path/core/bus_center/utils/src/lnn_compress.c", 213 ] 214 215 sources += [ "$dsoftbus_root_path/core/connection/wifi_direct_cpp/wifi_direct_manager_virtual.c" ] 216 217 include_dirs = [ 218 "$dsoftbus_dfx_path/interface/include", 219 "$dsoftbus_dfx_path/interface/include/form", 220 "$dsoftbus_dfx_path/interface/include/legacy", 221 "$dsoftbus_root_path/adapter/common/include", 222 "$dsoftbus_root_path/adapter/common/include/", 223 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 224 "$dsoftbus_root_path/core/adapter/authentication/include", 225 "$dsoftbus_root_path/core/adapter/bus_center/include", 226 "$dsoftbus_root_path/core/authentication/include", 227 "$dsoftbus_root_path/core/authentication/interface", 228 "$dsoftbus_root_path/core/authentication/src", 229 "$dsoftbus_root_path/core/bus_center/interface", 230 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 231 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 232 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 233 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 234 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 235 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 236 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 237 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 238 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 239 "$dsoftbus_root_path/core/bus_center/monitor/include", 240 "$dsoftbus_root_path/core/bus_center/service/include", 241 "$dsoftbus_root_path/core/bus_center/utils/include", 242 "$dsoftbus_root_path/core/common/include", 243 "$dsoftbus_root_path/core/common/message_handler/include", 244 "$dsoftbus_root_path/core/connection/ble/include", 245 "$dsoftbus_root_path/core/connection/interface", 246 "$dsoftbus_root_path/core/connection/manager", 247 "$dsoftbus_root_path/core/connection/p2p/common/include", 248 "$dsoftbus_root_path/core/connection/p2p/interface", 249 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 250 "$dsoftbus_root_path/core/discovery/interface", 251 "$dsoftbus_root_path/core/discovery/manager/include", 252 "$dsoftbus_root_path/core/frame/$os_type/init/include", 253 "$dsoftbus_root_path/core/frame/common/include", 254 "$dsoftbus_root_path/core/frame/init/include", 255 "$dsoftbus_root_path/core/transmission/trans_channel/manager/include", 256 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 257 "$dsoftbus_root_path/interfaces/inner_kits/transport", 258 "$dsoftbus_root_path/interfaces/kits/bus_center", 259 "$dsoftbus_root_path/interfaces/kits/common", 260 "$dsoftbus_root_path/interfaces/kits/connect", 261 "$dsoftbus_root_path/interfaces/kits/discovery", 262 "$dsoftbus_root_path/tests/core/authentication/unittest", 263 "$dsoftbus_root_path/tests/core/bus_center/lnn/lane/include", 264 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 265 "$dsoftbus_root_path/tests/sdk/common/include", 266 "unittest/common/", 267 ] 268 269 deps = [ 270 "$dsoftbus_dfx_path:softbus_dfx", 271 "$dsoftbus_root_path/adapter:softbus_adapter", 272 "$dsoftbus_root_path/core/common:softbus_utils", 273 "$dsoftbus_root_path/core/frame:softbus_server", 274 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 275 ] 276 277 if (is_standard_system) { 278 external_deps = [ 279 "bounds_checking_function:libsec_shared", 280 "cJSON:cjson", 281 "c_utils:utils", 282 "device_auth:deviceauth_sdk", 283 "googletest:gmock", 284 "googletest:gtest_main", 285 "hilog:libhilog", 286 "zlib:libz", 287 ] 288 } else { 289 external_deps = [ 290 "bounds_checking_function:libsec_shared", 291 "cJSON:cjson", 292 "c_utils:utils", 293 "googletest:gmock", 294 "googletest:gtest_main", 295 "hilog:libhilog", 296 ] 297 } 298} 299 300ohos_unittest("AuthTestCallBackTest") { 301 module_out_path = module_output_path 302 sources = [ 303 "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c", 304 "$dsoftbus_root_path/core/authentication/src/auth_common.c", 305 "$dsoftbus_root_path/core/authentication/src/auth_connection.c", 306 "$dsoftbus_root_path/core/authentication/src/auth_device.c", 307 "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp", 308 "$dsoftbus_root_path/core/authentication/src/auth_hichain.c", 309 "$dsoftbus_root_path/core/authentication/src/auth_hichain_adapter.c", 310 "$dsoftbus_root_path/core/authentication/src/auth_interface.c", 311 "$dsoftbus_root_path/core/authentication/src/auth_lane.c", 312 "$dsoftbus_root_path/core/authentication/src/auth_manager.c", 313 "$dsoftbus_root_path/core/authentication/src/auth_request.c", 314 "$dsoftbus_root_path/core/authentication/src/auth_session_fsm.c", 315 "$dsoftbus_root_path/core/authentication/src/auth_session_json.c", 316 "$dsoftbus_root_path/core/authentication/src/auth_session_key.c", 317 "$dsoftbus_root_path/core/authentication/src/auth_session_message.c", 318 "$dsoftbus_root_path/core/authentication/src/auth_tcp_connection.c", 319 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c", 320 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 321 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp", 322 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_socket_mock.cpp", 323 "unittest/auth_common_mock.cpp", 324 "unittest/auth_net_ledger_mock.cpp", 325 "unittest/auth_test_mock.cpp", 326 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 327 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 328 ] 329 330 include_dirs = [ 331 "$dsoftbus_dfx_path/interface/include/form", 332 "$dsoftbus_dfx_path/interface/include/legacy", 333 "$dsoftbus_root_path/adapter/common/include", 334 "$dsoftbus_root_path/adapter/common/include/", 335 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 336 "$dsoftbus_root_path/core/adapter/authentication/include", 337 "$dsoftbus_root_path/core/adapter/bus_center/include", 338 "$dsoftbus_root_path/core/authentication/include", 339 "$dsoftbus_root_path/core/authentication/interface", 340 "$dsoftbus_root_path/core/authentication/src", 341 "$dsoftbus_root_path/core/authentication/src/virtual", 342 "$dsoftbus_root_path/core/bus_center/interface", 343 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 344 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 345 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 346 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 347 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 348 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 349 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 350 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 351 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 352 "$dsoftbus_root_path/core/bus_center/monitor/include", 353 "$dsoftbus_root_path/core/bus_center/service/include", 354 "$dsoftbus_root_path/core/bus_center/utils/include", 355 "$dsoftbus_root_path/core/common/include", 356 "$dsoftbus_root_path/core/common/message_handler/include", 357 "$dsoftbus_root_path/core/connection/ble/include", 358 "$dsoftbus_root_path/core/connection/interface", 359 "$dsoftbus_root_path/core/connection/manager", 360 "$dsoftbus_root_path/core/connection/p2p/common/include", 361 "$dsoftbus_root_path/core/connection/p2p/interface", 362 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 363 "$dsoftbus_root_path/core/discovery/interface", 364 "$dsoftbus_root_path/core/discovery/manager/include", 365 "$dsoftbus_root_path/core/frame/$os_type/init/include", 366 "$dsoftbus_root_path/core/frame/common/include", 367 "$dsoftbus_root_path/core/frame/init/include", 368 "$dsoftbus_root_path/core/transmission/trans_channel/manager/include", 369 "$dsoftbus_root_path/interfaces/inner_kits/transport", 370 "$dsoftbus_root_path/interfaces/kits/bus_center", 371 "$dsoftbus_root_path/interfaces/kits/common", 372 "$dsoftbus_root_path/interfaces/kits/connect", 373 "$dsoftbus_root_path/interfaces/kits/discovery", 374 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 375 "$dsoftbus_root_path/tests/sdk/common/include", 376 "unittest/common/", 377 ] 378 379 deps = [ 380 "$dsoftbus_root_path/adapter:softbus_adapter", 381 "$dsoftbus_root_path/core/common:softbus_utils", 382 "$dsoftbus_root_path/core/frame:softbus_server", 383 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 384 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 385 ] 386 if (is_standard_system) { 387 external_deps = [ 388 "bounds_checking_function:libsec_shared", 389 "cJSON:cjson", 390 "c_utils:utils", 391 "device_auth:deviceauth_sdk", 392 "dsoftbus:softbus_client", 393 "googletest:gmock", 394 "googletest:gtest_main", 395 "hilog:libhilog", 396 ] 397 } else { 398 external_deps = [ 399 "bounds_checking_function:libsec_shared", 400 "cJSON:cjson", 401 "c_utils:utils", 402 "dsoftbus:softbus_client", 403 "googletest:gmock", 404 "googletest:gtest_main", 405 "hilog:libhilog", 406 ] 407 } 408} 409 410ohos_unittest("AuthOtherMockTest") { 411 module_out_path = module_output_path 412 sources = [ 413 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 414 "unittest/auth_interface_mock.cpp", 415 "unittest/auth_interface_test.cpp", 416 ] 417 418 include_dirs = [ 419 "$dsoftbus_dfx_path/interface/include/form", 420 "$dsoftbus_dfx_path/interface/include/legacy", 421 "$dsoftbus_root_path/adapter/common/include/", 422 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 423 "$dsoftbus_root_path/core/adapter/authentication/include", 424 "$dsoftbus_root_path/core/adapter/bus_center/include", 425 "$dsoftbus_root_path/core/authentication/include", 426 "$dsoftbus_root_path/core/authentication/interface", 427 "$dsoftbus_root_path/core/authentication/src", 428 "$dsoftbus_root_path/core/bus_center/interface", 429 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 430 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 431 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 432 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 433 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 434 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 435 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 436 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 437 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 438 "$dsoftbus_root_path/core/bus_center/monitor/include", 439 "$dsoftbus_root_path/core/bus_center/service/include", 440 "$dsoftbus_root_path/core/bus_center/utils/include", 441 "$dsoftbus_root_path/core/common/include", 442 "$dsoftbus_root_path/core/common/message_handler/include", 443 "$dsoftbus_root_path/core/connection/interface", 444 "$dsoftbus_root_path/core/connection/manager", 445 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 446 "$dsoftbus_root_path/core/discovery/interface", 447 "$dsoftbus_root_path/core/discovery/manager/include", 448 "$dsoftbus_root_path/core/frame/$os_type/init/include", 449 "$dsoftbus_root_path/core/frame/common/include", 450 "$dsoftbus_root_path/interfaces/kits/bus_center", 451 "$dsoftbus_root_path/interfaces/kits/common", 452 "$dsoftbus_root_path/interfaces/kits/connect", 453 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 454 "$dsoftbus_root_path/tests/sdk/common/include", 455 "unittest/common/", 456 ] 457 458 deps = [ 459 "$dsoftbus_root_path/adapter:softbus_adapter", 460 "$dsoftbus_root_path/core/common:softbus_utils", 461 "$dsoftbus_root_path/core/frame:softbus_server", 462 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 463 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 464 ] 465 466 if (is_standard_system) { 467 external_deps = [ 468 "bounds_checking_function:libsec_shared", 469 "cJSON:cjson", 470 "c_utils:utils", 471 "device_auth:deviceauth_sdk", 472 "dsoftbus:softbus_client", 473 "googletest:gmock", 474 "googletest:gtest_main", 475 "hilog:libhilog", 476 ] 477 } else { 478 external_deps = [ 479 "bounds_checking_function:libsec_shared", 480 "cJSON:cjson", 481 "c_utils:utils", 482 "dsoftbus:softbus_client", 483 "googletest:gmock", 484 "googletest:gtest_main", 485 "hilog:libhilog", 486 ] 487 } 488} 489 490ohos_unittest("AuthOtherTest") { 491 module_out_path = module_output_path 492 sources = [ 493 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 494 "unittest/auth_common_mock.cpp", 495 "unittest/auth_other_test.cpp", 496 "unittest/auth_tcp_connection_mock.cpp", 497 ] 498 499 include_dirs = [ 500 "$dsoftbus_dfx_path/interface/include/form", 501 "$dsoftbus_dfx_path/interface/include/legacy", 502 "$dsoftbus_root_path/adapter/common/include/", 503 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 504 "$dsoftbus_root_path/core/adapter/authentication/include", 505 "$dsoftbus_root_path/core/adapter/bus_center/include", 506 "$dsoftbus_root_path/core/authentication/include", 507 "$dsoftbus_root_path/core/authentication/interface", 508 "$dsoftbus_root_path/core/authentication/src", 509 "$dsoftbus_root_path/core/bus_center/interface", 510 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 511 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 512 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 513 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 514 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 515 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 516 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 517 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 518 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 519 "$dsoftbus_root_path/core/bus_center/monitor/include", 520 "$dsoftbus_root_path/core/bus_center/service/include", 521 "$dsoftbus_root_path/core/bus_center/utils/include", 522 "$dsoftbus_root_path/core/common/include", 523 "$dsoftbus_root_path/core/common/message_handler/include", 524 "$dsoftbus_root_path/core/connection/interface", 525 "$dsoftbus_root_path/core/connection/manager", 526 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 527 "$dsoftbus_root_path/core/discovery/interface", 528 "$dsoftbus_root_path/core/discovery/manager/include", 529 "$dsoftbus_root_path/core/frame/$os_type/init/include", 530 "$dsoftbus_root_path/core/frame/common/include", 531 "$dsoftbus_root_path/interfaces/kits/bus_center", 532 "$dsoftbus_root_path/interfaces/kits/common", 533 "$dsoftbus_root_path/interfaces/kits/connect", 534 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 535 "$dsoftbus_root_path/tests/sdk/common/include", 536 "unittest/common/", 537 ] 538 539 deps = [ 540 "$dsoftbus_root_path/core/common:softbus_utils", 541 "$dsoftbus_root_path/core/frame:softbus_server", 542 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 543 "$dsoftbus_root_path/adapter:softbus_adapter", 544 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 545 ] 546 547 if (is_standard_system) { 548 external_deps = [ 549 "bounds_checking_function:libsec_shared", 550 "cJSON:cjson", 551 "c_utils:utils", 552 "device_auth:deviceauth_sdk", 553 "dsoftbus:softbus_client", 554 "googletest:gmock", 555 "googletest:gtest_main", 556 "hilog:libhilog", 557 ] 558 } else { 559 external_deps = [ 560 "bounds_checking_function:libsec_shared", 561 "cJSON:cjson", 562 "c_utils:utils", 563 "dsoftbus:softbus_client", 564 "googletest:gmock", 565 "googletest:gtest_main", 566 "hilog:libhilog", 567 ] 568 } 569} 570 571ohos_unittest("AuthTcpConnectionTest") { 572 module_out_path = module_output_path 573 sources = [ "unittest/auth_tcp_connection_test.cpp" ] 574 575 include_dirs = [ 576 "$dsoftbus_dfx_path/interface/include/form", 577 "$dsoftbus_dfx_path/interface/include/legacy", 578 "$dsoftbus_root_path/adapter/common/include/", 579 "$dsoftbus_root_path/core/authentication/include", 580 "$dsoftbus_root_path/core/authentication/interface", 581 "$dsoftbus_root_path/core/authentication/src", 582 "$dsoftbus_root_path/core/bus_center/interface", 583 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 584 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 585 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 586 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 587 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 588 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 589 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 590 "$dsoftbus_root_path/core/bus_center/utils/include", 591 "$dsoftbus_root_path/core/common/include", 592 "$dsoftbus_root_path/core/common/message_handler/include", 593 "$dsoftbus_root_path/core/connection/interface", 594 "$dsoftbus_root_path/core/connection/manager", 595 "$dsoftbus_root_path/core/discovery/interface", 596 "$dsoftbus_root_path/core/discovery/manager/include", 597 "$dsoftbus_root_path/core/frame/$os_type/init/include", 598 "$dsoftbus_root_path/core/frame/common/include", 599 "$dsoftbus_root_path/core/transmission/trans_channel/manager/include", 600 "$dsoftbus_root_path/interfaces/kits/bus_center", 601 "$dsoftbus_root_path/interfaces/kits/common", 602 "$dsoftbus_root_path/tests/sdk/common/include", 603 "unittest/common/", 604 ] 605 606 deps = [ 607 "$dsoftbus_root_path/core/common:softbus_utils", 608 "$dsoftbus_root_path/core/frame:softbus_server", 609 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 610 "$dsoftbus_root_path/adapter:softbus_adapter", 611 ] 612 613 if (is_standard_system) { 614 external_deps = [ 615 "bounds_checking_function:libsec_shared", 616 "cJSON:cjson", 617 "c_utils:utils", 618 "device_auth:deviceauth_sdk", 619 "dsoftbus:softbus_client", 620 "googletest:gtest_main", 621 "hilog:libhilog", 622 ] 623 } else { 624 external_deps = [ 625 "bounds_checking_function:libsec_shared", 626 "cJSON:cjson", 627 "c_utils:utils", 628 "dsoftbus:softbus_client", 629 "googletest:gtest_main", 630 "hilog:libhilog", 631 ] 632 } 633} 634 635ohos_unittest("AuthHichainMockTest") { 636 module_out_path = module_output_path 637 sources = [ 638 "unittest/auth_hichain_deps_mock.cpp", 639 "unittest/auth_hichain_mock_test.cpp", 640 ] 641 642 include_dirs = [ 643 "$dsoftbus_dfx_path/interface/include/form", 644 "$dsoftbus_dfx_path/interface/include/legacy", 645 "$dsoftbus_root_path/adapter/common/include/", 646 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 647 "$dsoftbus_root_path/core/adapter/authentication/include", 648 "$dsoftbus_root_path/core/adapter/bus_center/include", 649 "$dsoftbus_root_path/core/authentication/include", 650 "$dsoftbus_root_path/core/authentication/interface", 651 "$dsoftbus_root_path/core/authentication/src", 652 "$dsoftbus_root_path/core/bus_center/interface", 653 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 654 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 655 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 656 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 657 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 658 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 659 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 660 "$dsoftbus_root_path/core/bus_center/utils/include", 661 "$dsoftbus_root_path/core/common/include", 662 "$dsoftbus_root_path/core/common/message_handler/include", 663 "$dsoftbus_root_path/core/connection/interface", 664 "$dsoftbus_root_path/core/connection/manager", 665 "$dsoftbus_root_path/core/discovery/interface", 666 "$dsoftbus_root_path/core/discovery/manager/include", 667 "$dsoftbus_root_path/core/frame/$os_type/init/include", 668 "$dsoftbus_root_path/core/frame/common/include", 669 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 670 "$dsoftbus_root_path/interfaces/inner_kits/transport", 671 "$dsoftbus_root_path/interfaces/kits/bus_center", 672 "$dsoftbus_root_path/interfaces/kits/common", 673 "$dsoftbus_root_path/interfaces/kits/discovery", 674 "$dsoftbus_root_path/tests/core/authentication/unittest", 675 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 676 "$dsoftbus_root_path/tests/sdk/common/include", 677 "unittest/common/", 678 ] 679 680 deps = [ 681 "$dsoftbus_root_path/core/common:softbus_utils", 682 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 683 "$dsoftbus_root_path/adapter:softbus_adapter", 684 "$dsoftbus_root_path/dfx:softbus_dfx", 685 ] 686 687 if (is_standard_system) { 688 external_deps = [ 689 "bounds_checking_function:libsec_shared", 690 "cJSON:cjson", 691 "c_utils:utils", 692 "device_auth:deviceauth_sdk", 693 "googletest:gmock", 694 "googletest:gtest_main", 695 "hilog:libhilog", 696 ] 697 } else { 698 external_deps = [ 699 "bounds_checking_function:libsec_shared", 700 "cJSON:cjson", 701 "c_utils:utils", 702 "googletest:gmock", 703 "googletest:gtest_main", 704 "hilog:libhilog", 705 ] 706 } 707} 708 709ohos_unittest("AuthHichainTest") { 710 module_out_path = module_output_path 711 sources = [ 712 "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp", 713 "unittest/auth_hichain_test.cpp", 714 "unittest/auth_net_ledger_mock.cpp", 715 ] 716 717 include_dirs = [ 718 "$dsoftbus_dfx_path/interface/include/form", 719 "$dsoftbus_dfx_path/interface/include/legacy", 720 "$dsoftbus_root_path/adapter/common/include/", 721 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 722 "$dsoftbus_root_path/core/adapter/bus_center/include", 723 "$dsoftbus_root_path/core/authentication/include", 724 "$dsoftbus_root_path/core/authentication/interface", 725 "$dsoftbus_root_path/core/authentication/src", 726 "$dsoftbus_root_path/core/bus_center/interface", 727 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 728 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 729 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 730 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 731 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 732 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 733 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 734 "$dsoftbus_root_path/core/bus_center/utils/include", 735 "$dsoftbus_root_path/core/common/include", 736 "$dsoftbus_root_path/core/common/message_handler/include", 737 "$dsoftbus_root_path/core/connection/interface", 738 "$dsoftbus_root_path/core/connection/manager", 739 "$dsoftbus_root_path/core/discovery/interface", 740 "$dsoftbus_root_path/core/discovery/manager/include", 741 "$dsoftbus_root_path/core/frame/$os_type/init/include", 742 "$dsoftbus_root_path/core/frame/common/include", 743 "$dsoftbus_root_path/interfaces/inner_kits/transport", 744 "$dsoftbus_root_path/interfaces/kits/bus_center", 745 "$dsoftbus_root_path/interfaces/kits/common", 746 "$dsoftbus_root_path/interfaces/kits/discovery", 747 "$dsoftbus_root_path/tests/core/authentication/unittest", 748 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 749 "$dsoftbus_root_path/tests/sdk/common/include", 750 "unittest/common/", 751 ] 752 753 deps = [ 754 "$dsoftbus_root_path/core/common:softbus_utils", 755 "$dsoftbus_root_path/core/frame:softbus_server", 756 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 757 "$dsoftbus_root_path/adapter:softbus_adapter", 758 ] 759 760 if (is_standard_system) { 761 external_deps = [ 762 "bounds_checking_function:libsec_shared", 763 "cJSON:cjson", 764 "c_utils:utils", 765 "device_auth:deviceauth_sdk", 766 "dsoftbus:softbus_client", 767 "googletest:gmock", 768 "googletest:gtest_main", 769 "hilog:libhilog", 770 ] 771 } else { 772 external_deps = [ 773 "bounds_checking_function:libsec_shared", 774 "cJSON:cjson", 775 "c_utils:utils", 776 "dsoftbus:softbus_client", 777 "googletest:gmock", 778 "googletest:gtest_main", 779 "hilog:libhilog", 780 ] 781 } 782} 783 784ohos_unittest("AuthDeviceProfileTest") { 785 module_out_path = module_output_path 786 sources = [ 787 "unittest/auth_device_profile_mock.cpp", 788 "unittest/auth_device_profile_test.cpp", 789 ] 790 791 include_dirs = [ 792 "$dsoftbus_root_path/core/adapter/bus_center/include", 793 "$dsoftbus_root_path/core/authentication/include", 794 "$dsoftbus_root_path/core/authentication/interface", 795 "$dsoftbus_root_path/core/authentication/src", 796 "$dsoftbus_root_path/core/bus_center/interface", 797 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 798 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 799 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 800 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 801 "$dsoftbus_root_path/core/discovery/interface", 802 "$dsoftbus_root_path/core/discovery/manager/include", 803 "$dsoftbus_root_path/interfaces/kits", 804 "$dsoftbus_root_path/interfaces/kits/bus_center", 805 "unittest/common/", 806 ] 807 808 deps = [ 809 "$dsoftbus_root_path/adapter:softbus_adapter", 810 "$dsoftbus_root_path/core/common:softbus_utils", 811 "$dsoftbus_root_path/dfx:softbus_dfx", 812 ] 813 814 if (!defined(global_parts_info) || 815 defined(global_parts_info.deviceprofile_device_info_manager)) { 816 external_deps = [ 817 "bounds_checking_function:libsec_shared", 818 "cJSON:cjson", 819 "c_utils:utils", 820 "device_auth:deviceauth_sdk", 821 "device_info_manager:distributed_device_profile_common", 822 "device_info_manager:distributed_device_profile_sdk", 823 "googletest:gmock", 824 "googletest:gtest_main", 825 "hilog:libhilog", 826 "ipc:ipc_core", 827 "os_account:libaccountkits", 828 "os_account:os_account_innerkits", 829 "samgr:samgr_proxy", 830 ] 831 } else { 832 external_deps = [ 833 "bounds_checking_function:libsec_shared", 834 "cJSON:cjson", 835 "c_utils:utils", 836 "googletest:gmock", 837 "googletest:gtest_main", 838 "hilog:libhilog", 839 "ipc:ipc_core", 840 "os_account:libaccountkits", 841 "os_account:os_account_innerkits", 842 ] 843 } 844} 845 846 847ohos_unittest("AuthSessionJsonTest") { 848 module_out_path = module_output_path 849 sources = [ 850 "$dsoftbus_root_path/core/authentication/src/auth_common.c", 851 "unittest/auth_session_json_mock.cpp", 852 "unittest/auth_session_json_test.cpp", 853 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 854 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 855 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func_pack.c", 856 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 857 ] 858 859 include_dirs = [ 860 "$dsoftbus_dfx_path/interface/include/form", 861 "$dsoftbus_dfx_path/interface/include/legacy", 862 "$dsoftbus_root_path/adapter/common/include/", 863 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 864 "$dsoftbus_root_path/core/adapter/authentication/include", 865 "$dsoftbus_root_path/core/adapter/bus_center/include", 866 "$dsoftbus_root_path/core/authentication/include", 867 "$dsoftbus_root_path/core/authentication/interface", 868 "$dsoftbus_root_path/core/authentication/src", 869 "$dsoftbus_root_path/core/bus_center/interface", 870 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 871 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 872 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 873 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 874 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 875 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 876 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 877 "$dsoftbus_root_path/core/bus_center/lnn/netbus_center/include", 878 "$dsoftbus_root_path/core/bus_center/service/include", 879 "$dsoftbus_root_path/core/bus_center/utils/include", 880 "$dsoftbus_root_path/core/common/include", 881 "$dsoftbus_root_path/core/common/message_handler/include", 882 "$dsoftbus_root_path/core/connection/interface", 883 "$dsoftbus_root_path/core/connection/manager", 884 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 885 "$dsoftbus_root_path/core/discovery/interface", 886 "$dsoftbus_root_path/core/discovery/manager/include", 887 "$dsoftbus_root_path/core/frame/$os_type/init/include", 888 "$dsoftbus_root_path/core/frame/common/include", 889 "$dsoftbus_root_path/interfaces/inner_kits/transport", 890 "$dsoftbus_root_path/interfaces/kits/bus_center", 891 "$dsoftbus_root_path/interfaces/kits/common", 892 "$dsoftbus_root_path/tests/sdk/common/include", 893 "unittest/common/", 894 ] 895 896 deps = [ 897 "$dsoftbus_root_path/core/common:softbus_utils", 898 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 899 "$dsoftbus_root_path/adapter:softbus_adapter", 900 "$dsoftbus_root_path/dfx:softbus_dfx", 901 ] 902 903 if (is_standard_system) { 904 external_deps = [ 905 "bounds_checking_function:libsec_shared", 906 "cJSON:cjson", 907 "c_utils:utils", 908 "device_auth:deviceauth_sdk", 909 "dsoftbus:softbus_client", 910 "googletest:gmock", 911 "googletest:gtest_main", 912 "hilog:libhilog", 913 ] 914 } else { 915 external_deps = [ 916 "bounds_checking_function:libsec_shared", 917 "cJSON:cjson", 918 "c_utils:utils", 919 "dsoftbus:softbus_client", 920 "googletest:gmock", 921 "googletest:gtest_main", 922 "hilog:libhilog", 923 ] 924 } 925} 926 927ohos_unittest("AuthSessionMessageTest") { 928 module_out_path = module_output_path 929 sources = [ "unittest/auth_session_message_test.cpp" ] 930 931 include_dirs = [ 932 "$dsoftbus_dfx_path/interface/include/form", 933 "$dsoftbus_dfx_path/interface/include/legacy", 934 "$dsoftbus_root_path/adapter/common/include/", 935 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 936 "$dsoftbus_root_path/core/adapter/authentication/include", 937 "$dsoftbus_root_path/core/adapter/bus_center/include", 938 "$dsoftbus_root_path/core/authentication/include", 939 "$dsoftbus_root_path/core/authentication/interface", 940 "$dsoftbus_root_path/core/authentication/src", 941 "$dsoftbus_root_path/core/bus_center/interface", 942 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 943 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 944 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 945 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 946 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 947 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 948 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 949 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 950 "$dsoftbus_root_path/core/bus_center/service/include", 951 "$dsoftbus_root_path/core/bus_center/utils/include", 952 "$dsoftbus_root_path/core/common/include", 953 "$dsoftbus_root_path/core/common/message_handler/include", 954 "$dsoftbus_root_path/core/connection/interface", 955 "$dsoftbus_root_path/core/connection/manager", 956 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 957 "$dsoftbus_root_path/core/discovery/interface", 958 "$dsoftbus_root_path/core/discovery/manager/include", 959 "$dsoftbus_root_path/core/frame/$os_type/init/include", 960 "$dsoftbus_root_path/core/frame/common/include", 961 "$dsoftbus_root_path/interfaces/kits/bus_center", 962 "$dsoftbus_root_path/interfaces/kits/common", 963 "$dsoftbus_root_path/tests/sdk/common/include", 964 "unittest/common/", 965 ] 966 967 deps = [ 968 "$dsoftbus_root_path/core/common:softbus_utils", 969 "$dsoftbus_root_path/core/frame:softbus_server", 970 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 971 "$dsoftbus_root_path/adapter:softbus_adapter", 972 ] 973 974 if (is_standard_system) { 975 external_deps = [ 976 "bounds_checking_function:libsec_shared", 977 "cJSON:cjson", 978 "c_utils:utils", 979 "device_auth:deviceauth_sdk", 980 "dsoftbus:softbus_client", 981 "googletest:gtest_main", 982 "hilog:libhilog", 983 ] 984 } else { 985 external_deps = [ 986 "bounds_checking_function:libsec_shared", 987 "cJSON:cjson", 988 "c_utils:utils", 989 "dsoftbus:softbus_client", 990 "googletest:gtest_main", 991 "hilog:libhilog", 992 ] 993 } 994} 995 996ohos_unittest("AuthManagerTest") { 997 module_out_path = module_output_path 998 sources = auth_manager_source 999 1000 include_dirs = auth_manager_include 1001 1002 deps = [ 1003 "$dsoftbus_root_path/core/common:softbus_utils", 1004 "$dsoftbus_root_path/core/frame:softbus_server", 1005 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1006 "$dsoftbus_root_path/adapter:softbus_adapter", 1007 ] 1008 1009 if (is_standard_system) { 1010 external_deps = [ 1011 "bounds_checking_function:libsec_shared", 1012 "cJSON:cjson", 1013 "c_utils:utils", 1014 "device_auth:deviceauth_sdk", 1015 "dsoftbus:softbus_client", 1016 "googletest:gmock", 1017 "googletest:gtest_main", 1018 "hilog:libhilog", 1019 ] 1020 } else { 1021 external_deps = [ 1022 "bounds_checking_function:libsec_shared", 1023 "cJSON:cjson", 1024 "c_utils:utils", 1025 "device_auth:deviceauth_sdk", 1026 "dsoftbus:softbus_client", 1027 "googletest:gmock", 1028 "googletest:gtest_main", 1029 "hilog:libhilog", 1030 ] 1031 } 1032} 1033 1034ohos_unittest("AuthSessionFsmTest") { 1035 module_out_path = module_output_path 1036 sources = [ 1037 "unittest/auth_session_fsm_mock.cpp", 1038 "unittest/auth_session_fsm_test.cpp", 1039 ] 1040 1041 include_dirs = [ 1042 "$dsoftbus_dfx_path/interface/include/form", 1043 "$dsoftbus_dfx_path/interface/include/legacy", 1044 "$dsoftbus_root_path/adapter/common/include/", 1045 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface", 1046 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1047 "$dsoftbus_root_path/core/adapter/authentication/include", 1048 "$dsoftbus_root_path/core/adapter/bus_center/include", 1049 "$dsoftbus_root_path/core/authentication/include", 1050 "$dsoftbus_root_path/core/authentication/interface", 1051 "$dsoftbus_root_path/core/authentication/src", 1052 "$dsoftbus_root_path/core/broadcast/common/include", 1053 "$dsoftbus_root_path/core/bus_center/interface", 1054 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1055 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1056 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1057 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 1058 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1059 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1060 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1061 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1062 "$dsoftbus_root_path/core/bus_center/service/include", 1063 "$dsoftbus_root_path/core/bus_center/utils/include", 1064 "$dsoftbus_root_path/core/common/include", 1065 "$dsoftbus_root_path/core/common/message_handler/include", 1066 "$dsoftbus_root_path/core/connection/interface", 1067 "$dsoftbus_root_path/core/connection/manager", 1068 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 1069 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include", 1070 "$dsoftbus_root_path/core/discovery/interface", 1071 "$dsoftbus_root_path/core/discovery/manager/include", 1072 "$dsoftbus_root_path/core/frame/$os_type/init/include", 1073 "$dsoftbus_root_path/core/frame/common/include", 1074 "$dsoftbus_root_path/interfaces/kits/authentication", 1075 "$dsoftbus_root_path/interfaces/kits/bus_center", 1076 "$dsoftbus_root_path/interfaces/kits/common", 1077 "$dsoftbus_root_path/interfaces/kits/connect", 1078 "$dsoftbus_root_path/interfaces/kits/lnn", 1079 "$dsoftbus_root_path/tests/core/discovery/ble/softbus_ble_mock", 1080 "$dsoftbus_root_path/tests/sdk/common/include", 1081 "unittest/common/", 1082 ] 1083 1084 deps = [ 1085 "$dsoftbus_root_path/adapter:softbus_adapter", 1086 "$dsoftbus_root_path/core/common:softbus_utils", 1087 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 1088 "$dsoftbus_root_path/core/frame:softbus_server", 1089 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1090 "$dsoftbus_root_path/adapter:softbus_adapter", 1091 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 1092 ] 1093 1094 if (is_standard_system) { 1095 external_deps = [ 1096 "bounds_checking_function:libsec_shared", 1097 "cJSON:cjson", 1098 "c_utils:utils", 1099 "device_auth:deviceauth_sdk", 1100 "dsoftbus:softbus_client", 1101 "googletest:gmock", 1102 "googletest:gtest_main", 1103 "hilog:libhilog", 1104 ] 1105 } else { 1106 external_deps = [ 1107 "bounds_checking_function:libsec_shared", 1108 "cJSON:cjson", 1109 "c_utils:utils", 1110 "dsoftbus:softbus_client", 1111 "googletest:gmock", 1112 "googletest:gtest_main", 1113 "hilog:libhilog", 1114 ] 1115 } 1116} 1117 1118ohos_unittest("AuthSessionKeyTest") { 1119 module_out_path = module_output_path 1120 sources = [ "unittest/auth_session_key_test.cpp" ] 1121 1122 include_dirs = [ 1123 "$dsoftbus_dfx_path/interface/include/form", 1124 "$dsoftbus_root_path/core/adapter/bus_center/include", 1125 "$dsoftbus_root_path/core/authentication/include", 1126 "$dsoftbus_root_path/core/authentication/interface", 1127 "$dsoftbus_root_path/core/authentication/src", 1128 "$dsoftbus_root_path/core/bus_center/interface", 1129 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1130 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1131 "$dsoftbus_root_path/core/bus_center/utils/include", 1132 "$dsoftbus_root_path/interfaces/kits/bus_center", 1133 "$dsoftbus_root_path/interfaces/kits/common", 1134 "unittest/common/", 1135 ] 1136 1137 deps = [ 1138 "$dsoftbus_root_path/core/common:softbus_utils", 1139 "$dsoftbus_root_path/core/frame:softbus_server", 1140 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1141 "$dsoftbus_root_path/adapter:softbus_adapter", 1142 ] 1143 1144 if (is_standard_system) { 1145 external_deps = [ 1146 "bounds_checking_function:libsec_shared", 1147 "c_utils:utils", 1148 "device_auth:deviceauth_sdk", 1149 "googletest:gtest_main", 1150 "hilog:libhilog", 1151 ] 1152 } else { 1153 external_deps = [ 1154 "bounds_checking_function:libsec_shared", 1155 "c_utils:utils", 1156 "googletest:gtest_main", 1157 "hilog:libhilog", 1158 ] 1159 } 1160} 1161 1162ohos_unittest("AuthNormalizeRequestTest") { 1163 module_out_path = module_output_path 1164 sources = [ "unittest/auth_normalize_request_test.cpp" ] 1165 1166 include_dirs = [ 1167 "$dsoftbus_dfx_path/interface/include/form", 1168 "$dsoftbus_root_path/core/authentication/include", 1169 "$dsoftbus_root_path/core/authentication/interface", 1170 "$dsoftbus_root_path/core/bus_center/interface", 1171 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1172 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1173 "$dsoftbus_root_path/core/bus_center/utils/include", 1174 ] 1175 1176 deps = [ 1177 "$dsoftbus_root_path/core/common:softbus_utils", 1178 "$dsoftbus_root_path/core/frame:softbus_server", 1179 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1180 "$dsoftbus_root_path/adapter:softbus_adapter", 1181 ] 1182 1183 if (is_standard_system) { 1184 external_deps = [ 1185 "bounds_checking_function:libsec_shared", 1186 "cJSON:cjson", 1187 "c_utils:utils", 1188 "device_auth:deviceauth_sdk", 1189 "dsoftbus:softbus_client", 1190 "googletest:gtest_main", 1191 "hilog:libhilog", 1192 ] 1193 } else { 1194 external_deps = [ 1195 "bounds_checking_function:libsec_shared", 1196 "cJSON:cjson", 1197 "c_utils:utils", 1198 "dsoftbus:softbus_client", 1199 "googletest:gtest_main", 1200 "hilog:libhilog", 1201 ] 1202 } 1203} 1204 1205ohos_unittest("AuthLaneTest") { 1206 module_out_path = module_output_path 1207 sources = [ 1208 "$dsoftbus_root_path/core/bus_center/monitor/src/lnn_init_monitor.c", 1209 "unittest/auth_lane_mock.cpp", 1210 "unittest/auth_lane_test.cpp", 1211 ] 1212 1213 include_dirs = [ 1214 "$dsoftbus_dfx_path/interface/include/form", 1215 "$dsoftbus_dfx_path/interface/include/legacy", 1216 "$dsoftbus_root_path/adapter/common/include/", 1217 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1218 "$dsoftbus_root_path/core/adapter/authentication/include", 1219 "$dsoftbus_root_path/core/adapter/bus_center/include", 1220 "$dsoftbus_root_path/core/authentication/include", 1221 "$dsoftbus_root_path/core/authentication/interface", 1222 "$dsoftbus_root_path/core/authentication/src", 1223 "$dsoftbus_root_path/core/bus_center/interface", 1224 "$dsoftbus_root_path/core/bus_center/ipc/include", 1225 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1226 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1227 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/src", 1228 "$dsoftbus_root_path/core/bus_center/lnn/meta_node/include", 1229 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1230 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 1231 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1232 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1233 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1234 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1235 "$dsoftbus_root_path/core/bus_center/monitor/include", 1236 "$dsoftbus_root_path/core/bus_center/service/include", 1237 "$dsoftbus_root_path/core/bus_center/utils/include", 1238 "$dsoftbus_root_path/core/common/include", 1239 "$dsoftbus_root_path/core/common/message_handler/include", 1240 "$dsoftbus_root_path/core/connection/interface", 1241 "$dsoftbus_root_path/core/connection/manager", 1242 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 1243 "$dsoftbus_root_path/core/connection/wifi_direct_cpp/utils", 1244 "$dsoftbus_root_path/core/discovery/interface", 1245 "$dsoftbus_root_path/core/discovery/manager/include", 1246 "$dsoftbus_root_path/core/frame/common/include", 1247 "$dsoftbus_root_path/interfaces/kits/bus_center", 1248 "$dsoftbus_root_path/interfaces/kits/common", 1249 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 1250 "$dsoftbus_root_path/tests/sdk/common/include", 1251 "unittest/common/", 1252 ] 1253 1254 deps = [ 1255 "$dsoftbus_root_path/core/common:softbus_utils", 1256 "$dsoftbus_root_path/core/frame:softbus_server", 1257 "$dsoftbus_root_path/dfx:softbus_dfx", 1258 "$dsoftbus_root_path/adapter:softbus_adapter", 1259 ] 1260 1261 if (is_standard_system) { 1262 external_deps = [ 1263 "bounds_checking_function:libsec_shared", 1264 "cJSON:cjson", 1265 "c_utils:utils", 1266 "device_auth:deviceauth_sdk", 1267 "dsoftbus:softbus_client", 1268 "googletest:gmock", 1269 "googletest:gtest_main", 1270 "hilog:libhilog", 1271 ] 1272 } else { 1273 external_deps = [ 1274 "bounds_checking_function:libsec_shared", 1275 "cJSON:cjson", 1276 "c_utils:utils", 1277 "dsoftbus:softbus_client", 1278 "googletest:gmock", 1279 "googletest:gtest_main", 1280 "hilog:libhilog", 1281 ] 1282 } 1283} 1284 1285# ohos_unittest("AuthDeviceProfileListenerTest") { 1286# module_out_path = module_output_path 1287# sources = [ 1288# "$dsoftbus_root_path/core/authentication/bind/auth_device_profile_listener.cpp", 1289# "unittest/auth_device_profile_listener_mock.cpp", 1290# "unittest/auth_device_profile_listener_test.cpp", 1291# ] 1292 1293# include_dirs = [ 1294# "$dsoftbus_root_path/core/authentication/interface", 1295# "$dsoftbus_root_path/core/authentication/include", 1296# "$dsoftbus_root_path/core/adapter/bus_center/include", 1297# "$dsoftbus_root_path/core/bus_center/interface", 1298# "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1299# "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1300# "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 1301# "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1302# "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1303# "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1304# "$dsoftbus_root_path/core/bus_center/service/include", 1305# "$dsoftbus_root_path/core/bus_center/utils/include", 1306# "$dsoftbus_root_path/core/discovery/interface", 1307# "$dsoftbus_root_path/core/discovery/manager/include", 1308# "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1309# "$dsoftbus_root_path/interfaces/kits", 1310# "$dsoftbus_root_path/interfaces/kits/bus_center", 1311# ] 1312 1313# deps = [ 1314# "$dsoftbus_root_path/core/common:softbus_utils", 1315# "$dsoftbus_root_path/adapter:softbus_adapter", 1316# "$dsoftbus_root_path/dfx:softbus_dfx", 1317# ] 1318 1319# if (!defined(global_parts_info) || 1320# defined(global_parts_info.deviceprofile_device_info_manager)) { 1321# external_deps = [ 1322# "device_info_manager:distributed_device_profile_common", 1323# "device_info_manager:distributed_device_profile_sdk", 1324# "hilog:libhilog", 1325# "ipc:ipc_core", 1326# ] 1327# } else { 1328# external_deps = [ 1329# "hilog:libhilog", 1330# "ipc:ipc_core", 1331# ] 1332# } 1333# external_deps += [ 1334# "bounds_checking_function:libsec_shared", 1335# "c_utils:utils", 1336# "device_auth:deviceauth_sdk", 1337# "googletest:gmock_main", 1338# "googletest:gtest_main", 1339# "samgr:samgr_proxy", 1340# ] 1341# # if (defined(ohos_lite)) { 1342# # if (ohos_kernel_type == "liteos_m") { 1343 1344# # } 1345# # } 1346# external_deps += [ "device_info_manager:distributed_device_profile_sdk" ] 1347# } 1348 1349ohos_unittest("AuthSessionJsonMockTest") { 1350 module_out_path = module_output_path 1351 sources = [ 1352 "unittest/auth_session_json_deps_mock.cpp", 1353 "unittest/auth_session_json_mock_test.cpp", 1354 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 1355 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func.c", 1356 "$dsoftbus_root_path/core/frame/common/src/softbus_init_common.c", 1357 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 1358 "$dsoftbus_root_path/core/frame/init/src/g_enhance_auth_func_pack.c", 1359 ] 1360 1361 include_dirs = [ 1362 "$dsoftbus_dfx_path/interface/include/form", 1363 "$dsoftbus_dfx_path/interface/include/legacy", 1364 "$dsoftbus_root_path/adapter/common/include", 1365 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1366 "$dsoftbus_root_path/core/adapter/authentication/include", 1367 "$dsoftbus_root_path/core/adapter/bus_center/include", 1368 "$dsoftbus_root_path/core/authentication/include", 1369 "$dsoftbus_root_path/core/authentication/interface", 1370 "$dsoftbus_root_path/core/authentication/src", 1371 "$dsoftbus_root_path/core/bus_center/interface", 1372 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1373 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1374 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1375 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1376 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1377 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1378 "$dsoftbus_root_path/core/bus_center/monitor/include", 1379 "$dsoftbus_root_path/core/bus_center/service/include", 1380 "$dsoftbus_root_path/core/bus_center/utils/include", 1381 "$dsoftbus_root_path/core/common/include", 1382 "$dsoftbus_root_path/core/discovery/interface", 1383 "$dsoftbus_root_path/core/discovery/manager/include", 1384 "$dsoftbus_root_path/core/frame/common/include", 1385 "$dsoftbus_root_path/core/frame/init/include", 1386 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1387 "$dsoftbus_root_path/interfaces/inner_kits/transport", 1388 "$dsoftbus_root_path/interfaces/kits/bus_center", 1389 ] 1390 1391 deps = [ 1392 "$dsoftbus_root_path/core/common:softbus_utils", 1393 "$dsoftbus_root_path/core/frame:softbus_server", 1394 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1395 "$dsoftbus_root_path/adapter:softbus_adapter", 1396 "$dsoftbus_root_path/dfx:softbus_dfx", 1397 ] 1398 1399 external_deps = [ 1400 "c_utils:utils", 1401 "device_auth:deviceauth_sdk", 1402 "googletest:gmock_main", 1403 "googletest:gtest_main", 1404 "hilog:libhilog", 1405 ] 1406} 1407 1408ohos_unittest("AuthPreLinkTest") { 1409 module_out_path = module_output_path 1410 sources = [ 1411 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func_pack.c", 1412 "$dsoftbus_root_path/core/frame/init/src/g_enhance_lnn_func.c", 1413 "unittest/auth_pre_link_mock.cpp", 1414 "unittest/auth_pre_link_test.cpp", 1415 ] 1416 1417 include_dirs = [ 1418 "$dsoftbus_dfx_path/interface/include/form", 1419 "$dsoftbus_dfx_path/interface/include/legacy", 1420 "$dsoftbus_root_path/core/adapter/bus_center/include", 1421 "$dsoftbus_root_path/core/authentication/include", 1422 "$dsoftbus_root_path/core/authentication/interface", 1423 "$dsoftbus_root_path/core/authentication/src", 1424 "$dsoftbus_root_path/core/bus_center/interface", 1425 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1426 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1427 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1428 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1429 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1430 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1431 "$dsoftbus_root_path/core/bus_center/service/include", 1432 "$dsoftbus_root_path/core/bus_center/utils/include", 1433 "$dsoftbus_root_path/core/discovery/interface", 1434 "$dsoftbus_root_path/core/discovery/manager/include", 1435 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1436 "$dsoftbus_root_path/interfaces/inner_kits/transport", 1437 "$dsoftbus_root_path/interfaces/kits/bus_center", 1438 ] 1439 1440 deps = [ 1441 "$dsoftbus_root_path/core/common:softbus_utils", 1442 "$dsoftbus_root_path/adapter:softbus_adapter", 1443 ] 1444 1445 external_deps = [ 1446 "c_utils:utils", 1447 "googletest:gmock_main", 1448 "googletest:gtest_main", 1449 "hilog:libhilog", 1450 ] 1451} 1452 1453ohos_unittest("AuthHichainIdServiceTest") { 1454 module_out_path = module_output_path 1455 sources = [ 1456 "unittest/auth_hichain_id_service_mock.cpp", 1457 "unittest/auth_hichain_id_service_test.cpp", 1458 ] 1459 1460 include_dirs = [ 1461 "$dsoftbus_dfx_path/interface/include/form", 1462 "$dsoftbus_dfx_path/interface/include/legacy", 1463 "$dsoftbus_root_path/core/adapter/bus_center/include", 1464 "$dsoftbus_root_path/core/authentication/include", 1465 "$dsoftbus_root_path/core/authentication/interface", 1466 "$dsoftbus_root_path/core/authentication/src", 1467 "$dsoftbus_root_path/core/bus_center/interface", 1468 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1469 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1470 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1471 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1472 "$dsoftbus_root_path/core/bus_center/service/include", 1473 "$dsoftbus_root_path/core/bus_center/utils/include", 1474 "$dsoftbus_root_path/core/discovery/interface", 1475 "$dsoftbus_root_path/core/discovery/manager/include", 1476 "$dsoftbus_root_path/interfaces/kits/bus_center", 1477 ] 1478 1479 deps = [ 1480 "$dsoftbus_root_path/core/common:softbus_utils", 1481 "$dsoftbus_root_path/adapter:softbus_adapter", 1482 "$dsoftbus_root_path/dfx:softbus_dfx", 1483 ] 1484 1485 external_deps = [ 1486 "bounds_checking_function:libsec_shared", 1487 "cJSON:cjson", 1488 "c_utils:utils", 1489 "device_auth:deviceauth_sdk", 1490 "googletest:gmock_main", 1491 "googletest:gtest_main", 1492 "hilog:libhilog", 1493 ] 1494} 1495 1496ohos_unittest("AuthUkManagerTest") { 1497 module_out_path = module_output_path 1498 sources = [ "unittest/auth_uk_manager_test.cpp" ] 1499 1500 include_dirs = [ 1501 "$dsoftbus_dfx_path/interface/include/form", 1502 "$dsoftbus_dfx_path/interface/include/legacy", 1503 "$dsoftbus_root_path/adapter/common/include", 1504 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1505 "$dsoftbus_root_path/core/adapter/authentication/include", 1506 "$dsoftbus_root_path/core/adapter/bus_center/include", 1507 "$dsoftbus_root_path/core/authentication/include", 1508 "$dsoftbus_root_path/core/authentication/interface", 1509 "$dsoftbus_root_path/core/authentication/src", 1510 "$dsoftbus_root_path/core/authentication/userkey", 1511 "$dsoftbus_root_path/core/bus_center/interface", 1512 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1513 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1514 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1515 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1516 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1517 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1518 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1519 "$dsoftbus_root_path/core/bus_center/service/include", 1520 "$dsoftbus_root_path/core/bus_center/utils/include", 1521 "$dsoftbus_root_path/core/common/include", 1522 "$dsoftbus_root_path/core/discovery/interface", 1523 "$dsoftbus_root_path/core/discovery/manager/include", 1524 "$dsoftbus_root_path/core/transmission/interface", 1525 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1526 "$dsoftbus_root_path/interfaces/kits/bus_center", 1527 "$dsoftbus_root_path/tests/core/authentication/unittest", 1528 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 1529 "$dsoftbus_root_path/tests/sdk/common/include", 1530 "unittest/common/", 1531 ] 1532 1533 deps = [ 1534 "$dsoftbus_root_path/core/common:softbus_utils", 1535 "$dsoftbus_root_path/core/frame:softbus_server", 1536 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1537 "$dsoftbus_root_path/adapter:softbus_adapter", 1538 ] 1539 1540 if (is_standard_system) { 1541 external_deps = [ 1542 "bounds_checking_function:libsec_shared", 1543 "cJSON:cjson", 1544 "c_utils:utils", 1545 "device_auth:deviceauth_sdk", 1546 "dsoftbus:softbus_client", 1547 "googletest:gmock_main", 1548 "googletest:gtest_main", 1549 "hilog:libhilog", 1550 ] 1551 } else { 1552 external_deps = [ 1553 "bounds_checking_function:libsec_shared", 1554 "cJSON:cjson", 1555 "c_utils:utils", 1556 "dsoftbus:softbus_client", 1557 "googletest:gmock_main", 1558 "googletest:gtest_main", 1559 "hilog:libhilog", 1560 ] 1561 } 1562} 1563 1564ohos_unittest("AuthUserCommonKeyTest") { 1565 module_out_path = module_output_path 1566 sources = [ "unittest/auth_user_common_key_test.cpp" ] 1567 1568 include_dirs = [ 1569 "$dsoftbus_root_path/adapter/common/include", 1570 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1571 "$dsoftbus_root_path/core/adapter/authentication/include", 1572 "$dsoftbus_root_path/core/adapter/bus_center/include", 1573 "$dsoftbus_root_path/core/authentication/include", 1574 "$dsoftbus_root_path/core/authentication/interface", 1575 "$dsoftbus_root_path/core/authentication/src", 1576 "$dsoftbus_root_path/core/bus_center/interface", 1577 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1578 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1579 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1580 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1581 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1582 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1583 "$dsoftbus_root_path/core/bus_center/service/include", 1584 "$dsoftbus_root_path/core/bus_center/utils/include", 1585 "$dsoftbus_root_path/core/common/include", 1586 "$dsoftbus_root_path/core/discovery/interface", 1587 "$dsoftbus_root_path/core/discovery/manager/include", 1588 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1589 "$dsoftbus_root_path/interfaces/kits/bus_center", 1590 ] 1591 1592 deps = [ 1593 "$dsoftbus_root_path/core/common:softbus_utils", 1594 "$dsoftbus_root_path/core/frame:softbus_server", 1595 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1596 ] 1597 1598 external_deps = [ 1599 "c_utils:utils", 1600 "device_auth:deviceauth_sdk", 1601 "googletest:gtest_main", 1602 "hilog:libhilog", 1603 ] 1604} 1605 1606ohos_unittest("AuthRequestTest") { 1607 module_out_path = module_output_path 1608 sources = [ "unittest/auth_request_test.cpp" ] 1609 1610 include_dirs = [ 1611 "$dsoftbus_dfx_path/interface/include/form", 1612 "$dsoftbus_root_path/adapter/common/include/", 1613 "$dsoftbus_root_path/adapter/common/net/bluetooth/broadcast/interface", 1614 "$dsoftbus_root_path/adapter/common/net/bluetooth/include", 1615 "$dsoftbus_root_path/core/adapter/authentication/include", 1616 "$dsoftbus_root_path/core/adapter/bus_center/include", 1617 "$dsoftbus_root_path/core/authentication/include", 1618 "$dsoftbus_root_path/core/authentication/interface", 1619 "$dsoftbus_root_path/core/authentication/src", 1620 "$dsoftbus_root_path/core/broadcast/common/include", 1621 "$dsoftbus_root_path/core/bus_center/interface", 1622 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", 1623 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1624 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1625 "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", 1626 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1627 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", 1628 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1629 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1630 "$dsoftbus_root_path/core/bus_center/service/include", 1631 "$dsoftbus_root_path/core/bus_center/utils/include", 1632 "$dsoftbus_root_path/core/common/include", 1633 "$dsoftbus_root_path/core/common/message_handler/include", 1634 "$dsoftbus_root_path/core/connection/interface", 1635 "$dsoftbus_root_path/core/connection/manager", 1636 "$dsoftbus_root_path/core/connection/wifi_direct_cpp", 1637 "$dsoftbus_root_path/core/discovery/ble/softbus_ble/include", 1638 "$dsoftbus_root_path/core/discovery/interface", 1639 "$dsoftbus_root_path/core/discovery/manager/include", 1640 "$dsoftbus_root_path/core/frame/$os_type/init/include", 1641 "$dsoftbus_root_path/core/frame/common/include", 1642 "$dsoftbus_root_path/interfaces/kits/bus_center", 1643 "$dsoftbus_root_path/interfaces/kits/common", 1644 "$dsoftbus_root_path/interfaces/kits/connect", 1645 "$dsoftbus_root_path/tests/core/discovery/ble/softbus_ble_mock", 1646 "$dsoftbus_root_path/tests/sdk/common/include", 1647 "unittest/common/", 1648 ] 1649 1650 deps = [ 1651 "$dsoftbus_root_path/core/common:softbus_utils", 1652 "$dsoftbus_root_path/core/frame:softbus_server", 1653 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1654 "$dsoftbus_root_path/adapter:softbus_adapter", 1655 "$dsoftbus_root_path/core/connection/wifi_direct_cpp:wifi_direct", 1656 ] 1657 1658 if (is_standard_system) { 1659 external_deps = [ 1660 "bounds_checking_function:libsec_shared", 1661 "cJSON:cjson", 1662 "c_utils:utils", 1663 "device_auth:deviceauth_sdk", 1664 "dsoftbus:softbus_client", 1665 "googletest:gmock", 1666 "googletest:gtest_main", 1667 "hilog:libhilog", 1668 ] 1669 } else { 1670 external_deps = [ 1671 "bounds_checking_function:libsec_shared", 1672 "cJSON:cjson", 1673 "c_utils:utils", 1674 "dsoftbus:softbus_client", 1675 "googletest:gmock", 1676 "googletest:gtest_main", 1677 "hilog:libhilog", 1678 ] 1679 } 1680} 1681 1682ohos_unittest("AuthApplyKeyProcessTest") { 1683 module_out_path = module_output_path 1684 sources = [ 1685 "unittest/auth_apply_key_process_mock.cpp", 1686 "unittest/auth_apply_key_process_test.cpp", 1687 ] 1688 1689 include_dirs = [ 1690 "unittest", 1691 "$dsoftbus_root_path/adapter/common/include", 1692 "$dsoftbus_root_path/adapter/common/include/OS_adapter_define/linux", 1693 "$dsoftbus_root_path/core/adapter/authentication/include", 1694 "$dsoftbus_root_path/core/adapter/bus_center/include", 1695 "$dsoftbus_root_path/core/authentication/applykey", 1696 "$dsoftbus_root_path/core/authentication/include", 1697 "$dsoftbus_root_path/core/authentication/interface", 1698 "$dsoftbus_root_path/core/authentication/src", 1699 "$dsoftbus_root_path/core/bus_center/interface", 1700 "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", 1701 "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", 1702 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", 1703 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", 1704 "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", 1705 "$dsoftbus_root_path/core/bus_center/service/include", 1706 "$dsoftbus_root_path/core/bus_center/utils/include", 1707 "$dsoftbus_root_path/core/connection/interface", 1708 "$dsoftbus_root_path/core/common/include", 1709 "$dsoftbus_root_path/core/discovery/manager/include", 1710 "$dsoftbus_root_path/core/discovery/interface", 1711 "$dsoftbus_root_path/core/transmission/common/include", 1712 "$dsoftbus_root_path/core/transmission/interface", 1713 "$dsoftbus_root_path/interfaces/kits/authentication", 1714 "$dsoftbus_root_path/interfaces/kits/bus_center", 1715 "$dsoftbus_root_path/interfaces/kits/common", 1716 "$dsoftbus_root_path/interfaces/kits/connect", 1717 "$dsoftbus_root_path/interfaces/kits/disc", 1718 "$dsoftbus_root_path/interfaces/kits/lnn", 1719 "$dsoftbus_root_path/interfaces/kits/transport", 1720 "$dsoftbus_root_path/interfaces/inner_kits/lnn", 1721 "$dsoftbus_root_path/tests/core/authentication/unittest", 1722 "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", 1723 "$dsoftbus_root_path/tests/sdk/common/include", 1724 "unittest/common/", 1725 ] 1726 1727 deps = [ 1728 "$dsoftbus_root_path/adapter:softbus_adapter", 1729 "$dsoftbus_root_path/core/common:softbus_utils", 1730 "$dsoftbus_root_path/core/frame:softbus_server", 1731 "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", 1732 ] 1733 1734 if (is_standard_system) { 1735 external_deps = [ 1736 "bounds_checking_function:libsec_shared", 1737 "cJSON:cjson", 1738 "c_utils:utils", 1739 "device_auth:deviceauth_sdk", 1740 "dsoftbus:softbus_client", 1741 "googletest:gmock", 1742 "googletest:gtest_main", 1743 "hilog:libhilog", 1744 ] 1745 } else { 1746 external_deps = [ 1747 "bounds_checking_function:libsec_shared", 1748 "cJSON:cjson", 1749 "c_utils:utils", 1750 "dsoftbus:softbus_client", 1751 "googletest:gmock", 1752 "googletest:gtest_main", 1753 "hilog:libhilog", 1754 ] 1755 } 1756} 1757 1758group("unittest") { 1759 testonly = true 1760 deps = [ 1761 ":AuthConnectionTest", 1762 # ":AuthDeviceProfileListenerTest", 1763 # ":AuthDeviceProfileTest", 1764 ":AuthEnhanceMockTest", 1765 ":AuthHichainIdServiceTest", 1766 ":AuthHichainMockTest", 1767 ":AuthHichainTest", 1768 ":AuthManagerTest", 1769 ":AuthNormalizeRequestTest", 1770 ":AuthOtherMockTest", 1771 ":AuthOtherTest", 1772 ":AuthPreLinkTest", 1773 ":AuthSessionFsmTest", 1774 ":AuthSessionJsonMockTest", 1775 ":AuthSessionJsonTest", 1776 ":AuthSessionKeyTest", 1777 ":AuthSessionMessageTest", 1778 ":AuthTcpConnectionTest", 1779 ":AuthTest", 1780 ":AuthTestCallBackTest", 1781 ":AuthUkManagerTest", 1782 ":AuthUserCommonKeyTest", 1783 ":AuthRequestTest", 1784 ":AuthApplyKeyProcessTest", 1785 ] 1786 if (dsoftbus_feature_lnn_lane_mgr) { 1787 deps += [ ":AuthLaneTest" ] 1788 } 1789} 1790 1791group("fuzztest") { 1792 testonly = true 1793 deps = [ "fuzztest:fuzztest" ] 1794} 1795