# Copyright (c) 2021-2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import("//build/test.gni") import("../../../core/authentication/authentication.gni") import("../../../dsoftbus.gni") module_output_path = "dsoftbus/auth" dsoftbus_root_path = "../../.." ohos_unittest("AuthTest") { module_out_path = module_output_path sources = [ "unittest/auth_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/adapter/bus_center/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthTestCallBackTest") { module_out_path = module_output_path sources = [ "$dsoftbus_root_path/core/adapter/authentication/src/lnn_extdata_config_virtual.c", "$dsoftbus_root_path/core/authentication/src/auth_common.c", "$dsoftbus_root_path/core/authentication/src/auth_connection.c", "$dsoftbus_root_path/core/authentication/src/auth_deviceprofile_virtual.cpp", "$dsoftbus_root_path/core/authentication/src/auth_hichain.c", "$dsoftbus_root_path/core/authentication/src/auth_hichain_adapter.c", "$dsoftbus_root_path/core/authentication/src/auth_interface.c", "$dsoftbus_root_path/core/authentication/src/auth_manager.c", "$dsoftbus_root_path/core/authentication/src/auth_request.c", "$dsoftbus_root_path/core/authentication/src/auth_session_fsm.c", "$dsoftbus_root_path/core/authentication/src/auth_session_key.c", "$dsoftbus_root_path/core/authentication/src/auth_session_message.c", "$dsoftbus_root_path/core/authentication/src/auth_tcp_connection.c", "$dsoftbus_root_path/core/authentication/src/virtual/auth_device_common_key_virtual.c", "$dsoftbus_root_path/core/authentication/src/virtual/auth_meta_manager_virtual.c", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_cipherkey_manager_virtual.c", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/src/lnn_device_info_recovery_virtual.c", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/src/lnn_feature_capability.c", "$dsoftbus_root_path/core/bus_center/utils/src/lnn_compress.c", "$dsoftbus_root_path/core/bus_center/utils/src/lnn_state_machine.c", "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_connection_mock.cpp", "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp", "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_socket_mock.cpp", "unittest/auth_common_mock.cpp", "unittest/auth_net_ledger_mock.cpp", "unittest/auth_test_mock.cpp", ] include_dirs = [ "$dsoftbus_root_path/adapter/common/include", "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/connection/p2p/interface", "$dsoftbus_root_path/core/connection/p2p/common/include", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/discovery", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/core/adapter/bus_center/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/core/adapter/authentication/include", "$dsoftbus_root_path/core/connection/ble/include", ] deps = [ "$dsoftbus_root_path/adapter:softbus_adapter", "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gmock", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthOtherTest") { module_out_path = module_output_path sources = [ "unittest/auth_other_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/core/adapter/bus_center/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/core/adapter/authentication/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthTcpConnectionTest") { module_out_path = module_output_path sources = [ "unittest/auth_tcp_connection_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthHichainTest") { module_out_path = module_output_path sources = [ "$dsoftbus_root_path/tests/core/authentication/unittest/auth_common_mock.cpp", "$dsoftbus_root_path/tests/core/bus_center/mock_common/src/lnn_hichain_mock.cpp", "unittest/auth_hichain_test.cpp", "unittest/auth_net_ledger_mock.cpp", ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/tests/core/authentication/unittest", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/interfaces/kits/discovery", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/tests/core/bus_center/mock_common/include", "$dsoftbus_root_path/core/adapter/bus_center/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gmock", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("DsoftbusAppBindTest") { module_out_path = module_output_path sources = [ "unittest/dsoftbus_app_bind_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/interfaces/kits", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/authentication/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gmock", "//third_party/googletest:gtest_main", ] if (!defined(global_parts_info) || defined(global_parts_info.deviceprofile_device_info_manager)) { external_deps = [ "device_info_manager:distributed_device_profile_common", "device_info_manager:distributed_device_profile_sdk", "hilog:libhilog", "ipc:ipc_core", ] } else { external_deps = [ "hilog:libhilog", "ipc:ipc_core", ] } } ohos_unittest("AuthSessionMessageTest") { module_out_path = module_output_path sources = [ "unittest/auth_session_message_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/core/adapter/bus_center/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/core/adapter/authentication/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthManagerTest") { module_out_path = module_output_path sources = [ "unittest/auth_manager_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/core/adapter/bus_center/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/core/adapter/authentication/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } ohos_unittest("AuthSessionFsmTest") { module_out_path = module_output_path sources = [ "unittest/auth_session_fsm_test.cpp" ] include_dirs = [ "//base/security/device_auth/interfaces/inner_api", "$dsoftbus_root_path/core/authentication/include", "$dsoftbus_root_path/core/authentication/interface", "$dsoftbus_root_path/core/bus_center/interface", "$dsoftbus_root_path/core/bus_center/utils/include", "$dsoftbus_root_path/core/bus_center/lnn/net_builder/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/common/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/distributed_ledger/include", "$dsoftbus_root_path/core/common/include", "$dsoftbus_root_path/core/common/message_handler/include", "$dsoftbus_root_path/core/connection/interface", "$dsoftbus_root_path/core/frame/$os_type/init/include", "$dsoftbus_root_path/core/frame/common/include", "$dsoftbus_root_path/interfaces/kits/bus_center", "$dsoftbus_root_path/interfaces/kits/common", "$dsoftbus_root_path/core/connection/manager", "$dsoftbus_root_path/adapter/common/include/", "$dsoftbus_root_path/tests/sdk/common/include", "//commonlibrary/c_utils/base/include", "//third_party/cJSON", "unittest/common/", "//third_party/bounds_checking_function/include", "$dsoftbus_root_path/core/authentication/src", "$dsoftbus_root_path/core/discovery/manager/include", "$dsoftbus_root_path/core/discovery/interface", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/lane_manager/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/decision_db/include", "$dsoftbus_root_path/core/bus_center/lnn/net_ledger/local_ledger/include", "$dsoftbus_root_path/core/bus_center/lnn/net_buscenter/include", "$dsoftbus_root_path/adapter/common/net/bluetooth/include", "$dsoftbus_root_path/core/adapter/bus_center/include", "$dsoftbus_root_path/core/bus_center/lnn/lane_hub/heartbeat/include", "$dsoftbus_root_path/core/bus_center/service/include", "$dsoftbus_root_path/core/adapter/authentication/include", ] deps = [ "$dsoftbus_root_path/core/common:softbus_utils", "$dsoftbus_root_path/core/frame:softbus_server", "$dsoftbus_root_path/tests/sdk/common:softbus_access_token_test", "//third_party/bounds_checking_function:libsec_shared", "//third_party/googletest:gtest_main", ] if (is_standard_system) { external_deps = [ "c_utils:utils", "device_auth:deviceauth_sdk", "hilog:libhilog", ] } else { external_deps = [ "c_utils:utils", "hilog:libhilog", ] } } group("unittest") { testonly = true deps = [ ":AuthHichainTest", ":AuthManagerTest", ":AuthOtherTest", ":AuthSessionFsmTest", ":AuthSessionMessageTest", ":AuthTcpConnectionTest", ":AuthTest", ":AuthTestCallBackTest", ":DsoftbusAppBindTest", ] } group("fuzztest") { testonly = true deps = [ "fuzztest:fuzztest" ] if (enhanced) { deps += [ "$dsoftbus_root_path/dsoftbus_enhance/test/core/authentication:fuzztest", ] } }