From a6059462811f9e2ff83c175f44aade24fe157497 Mon Sep 17 00:00:00 2001 From: Tianshi Liu Date: Tue, 22 Jul 2025 15:41:26 +0800 Subject: [PATCH 1/2] =?UTF-8?q?dsoftbus=E8=A7=A3=E8=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I91ac01b3c562c262f0d24a1f384d9b378b98b9cc Signed-off-by: kaiju --- services/ipc/BUILD.gn | 3 +- services/ipc/src/service_init_manager.cpp | 6 +- services/ipc/src/user_auth_service.cpp | 1 - services/load_mode/BUILD.gn | 1 + services/remote_connect/BUILD.gn | 66 +++--- .../{ => default}/inc/device_state_listener.h | 0 .../inc/remote_connect_listener_manager.h | 0 .../{ => default}/inc/socket_factory.h | 0 .../{ => default}/inc/soft_bus_base_socket.h | 0 .../inc/soft_bus_client_socket.h | 0 .../{ => default}/inc/soft_bus_manager.h | 0 .../{ => default}/inc/soft_bus_message.h | 0 .../inc/soft_bus_server_socket.h | 0 .../inc/soft_bus_socket_listener.h | 0 .../{ => default}/src/device_manager_util.cpp | 0 .../src/remote_connect_listener.cpp | 0 .../src/remote_connect_listener_manager.cpp | 0 .../src/remote_connect_manager.cpp | 12 ++ .../{ => default}/src/socket_factory.cpp | 0 .../src/soft_bus_base_socket.cpp | 0 .../src/soft_bus_client_socket.cpp | 0 .../{ => default}/src/soft_bus_manager.cpp | 0 .../{ => default}/src/soft_bus_message.cpp | 0 .../src/soft_bus_server_socket.cpp | 0 .../src/soft_bus_socket_listener.cpp | 0 .../inc/remote_connect_manager.h | 2 + .../non_soft_bus/src/device_manager_util.cpp | 83 ++++++++ .../src/remote_connect_manager.cpp | 91 ++++++++ .../executorcallbackservice_fuzzer/BUILD.gn | 194 +++++++++--------- test/fuzztest/common_fuzzer/BUILD.gn | 27 +-- .../context/remoteauthcontext_fuzzer/BUILD.gn | 1 + .../context/widgetcontext_fuzzer/BUILD.gn | 2 +- .../core/remoteexecutorstub_fuzzer/BUILD.gn | 1 + .../fuzztest/services/softbus_fuzzer/BUILD.gn | 1 + .../templatecachemanager_fuzzer/BUILD.gn | 1 + .../services/userauthservice_fuzzer/BUILD.gn | 1 + .../services/useridmservice_fuzzer/BUILD.gn | 1 + test/unittest/services/BUILD.gn | 24 ++- 38 files changed, 366 insertions(+), 152 deletions(-) rename services/remote_connect/{ => default}/inc/device_state_listener.h (100%) rename services/remote_connect/{ => default}/inc/remote_connect_listener_manager.h (100%) rename services/remote_connect/{ => default}/inc/socket_factory.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_base_socket.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_client_socket.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_manager.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_message.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_server_socket.h (100%) rename services/remote_connect/{ => default}/inc/soft_bus_socket_listener.h (100%) rename services/remote_connect/{ => default}/src/device_manager_util.cpp (100%) rename services/remote_connect/{ => default}/src/remote_connect_listener.cpp (100%) rename services/remote_connect/{ => default}/src/remote_connect_listener_manager.cpp (100%) rename services/remote_connect/{ => default}/src/remote_connect_manager.cpp (92%) rename services/remote_connect/{ => default}/src/socket_factory.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_base_socket.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_client_socket.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_manager.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_message.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_server_socket.cpp (100%) rename services/remote_connect/{ => default}/src/soft_bus_socket_listener.cpp (100%) create mode 100644 services/remote_connect/non_soft_bus/src/device_manager_util.cpp create mode 100644 services/remote_connect/non_soft_bus/src/remote_connect_manager.cpp diff --git a/services/ipc/BUILD.gn b/services/ipc/BUILD.gn index 1e1cc4af9..5ed73c9b4 100644 --- a/services/ipc/BUILD.gn +++ b/services/ipc/BUILD.gn @@ -12,6 +12,7 @@ # limitations under the License. import("//build/ohos.gni") +import("../../user_auth_framework.gni") if (!defined(global_parts_info) || defined(global_parts_info.account_os_account)) { @@ -61,9 +62,7 @@ ohos_source_set("userauth_services_ipc") { "ability_runtime:app_manager", "access_token:libaccesstoken_sdk", "c_utils:utils", - "device_manager:devicemanagersdk", "drivers_interface_user_auth:libuser_auth_proxy_4.0", - "dsoftbus:softbus_client", "hdf_core:libhdf_utils", "hdf_core:libhdi", "hilog:libhilog", diff --git a/services/ipc/src/service_init_manager.cpp b/services/ipc/src/service_init_manager.cpp index 78a10e188..19c62a219 100644 --- a/services/ipc/src/service_init_manager.cpp +++ b/services/ipc/src/service_init_manager.cpp @@ -24,7 +24,7 @@ #include "load_mode_handler.h" #include "os_accounts_manager.h" #include "remote_auth_service.h" -#include "soft_bus_manager.h" +#include "remote_connect_manager.h" #include "strong_auth_status_manager.h" #include "system_param_manager.h" @@ -105,7 +105,7 @@ void ServiceInitManager::CheckAllServiceStart() IAM_LOGI("all service start, init global instance begin"); - SoftBusManager::GetInstance().Start(); + RemoteConnectionManager::GetInstance().Start(); const bool REMOTE_AUTH_SERVICE_RESULT = RemoteAuthService::GetInstance().Start(); (void)REMOTE_AUTH_SERVICE_RESULT; @@ -152,7 +152,7 @@ void ServiceInitManager::CheckAllServiceStop() IAM_LOGI("all service stop, destroy global instance begin"); - SoftBusManager::GetInstance().Stop(); + RemoteConnectionManager::GetInstance().Stop(); auto coAuthService = CoAuthService::GetInstance(); IF_FALSE_LOGE_AND_RETURN(coAuthService != nullptr); diff --git a/services/ipc/src/user_auth_service.cpp b/services/ipc/src/user_auth_service.cpp index 21321eec5..3f01e49bb 100644 --- a/services/ipc/src/user_auth_service.cpp +++ b/services/ipc/src/user_auth_service.cpp @@ -34,7 +34,6 @@ #include "ipc_common.h" #include "ipc_skeleton.h" #include "service_init_manager.h" -#include "soft_bus_manager.h" #include "widget_client.h" #include "auth_widget_helper.h" #include "remote_msg_util.h" diff --git a/services/load_mode/BUILD.gn b/services/load_mode/BUILD.gn index 4ad32491d..cd2bfb391 100644 --- a/services/load_mode/BUILD.gn +++ b/services/load_mode/BUILD.gn @@ -61,6 +61,7 @@ ohos_source_set("userauth_service_load_mode") { "access_token:libaccesstoken_sdk", "access_token:libtokenid_sdk", "c_utils:utils", + "common_event_service:cesfwk_innerkits", "device_manager:devicemanagersdk", "drivers_interface_user_auth:libuser_auth_proxy_4.0", "hdf_core:libhdi", diff --git a/services/remote_connect/BUILD.gn b/services/remote_connect/BUILD.gn index 74b89136d..7a99185f9 100644 --- a/services/remote_connect/BUILD.gn +++ b/services/remote_connect/BUILD.gn @@ -12,6 +12,7 @@ # limitations under the License. import("//build/ohos.gni") +import("../../user_auth_framework.gni") config("userauth_service_remote_connect_config") { include_dirs = [ "inc" ] @@ -32,36 +33,51 @@ ohos_source_set("userauth_service_remote_connect") { remove_configs = [ "//build/config/compiler:no_exceptions" ] - sources = [ - "src/device_manager_util.cpp", - "src/remote_connect_listener.cpp", - "src/remote_connect_listener_manager.cpp", - "src/remote_connect_manager.cpp", - "src/socket_factory.cpp", - "src/soft_bus_base_socket.cpp", - "src/soft_bus_client_socket.cpp", - "src/soft_bus_manager.cpp", - "src/soft_bus_message.cpp", - "src/soft_bus_server_socket.cpp", - "src/soft_bus_socket_listener.cpp", - ] - + sources = [] deps = [ "../../frameworks/native/common:attributes", "../../frameworks/native/common:dfx", ] + external_deps = [] - external_deps = [ - "access_token:libtokensetproc_shared", - "c_utils:utils", - "device_manager:devicemanagersdk", - "dsoftbus:softbus_client", - "hilog:libhilog", - "init:libbegetutil", - "ipc:ipc_single", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] + if (user_auth_framework_enable_dynamic_load) { + sources += [ + "non_soft_bus/src/device_manager_util.cpp", + "non_soft_bus/src/remote_connect_manager.cpp", + ] + + external_deps += [ + "hilog:libhilog", + "c_utils:utils", + ] + } else { + sources += [ + "default/src/device_manager_util.cpp", + "default/src/remote_connect_listener.cpp", + "default/src/remote_connect_listener_manager.cpp", + "default/src/remote_connect_manager.cpp", + "default/src/socket_factory.cpp", + "default/src/soft_bus_base_socket.cpp", + "default/src/soft_bus_client_socket.cpp", + "default/src/soft_bus_manager.cpp", + "default/src/soft_bus_message.cpp", + "default/src/soft_bus_server_socket.cpp", + "default/src/soft_bus_socket_listener.cpp", + ] + + external_deps += [ + "access_token:libtokensetproc_shared", + "c_utils:utils", + "device_manager:devicemanagersdk", + "dsoftbus:softbus_client", + "hilog:libhilog", + "init:libbegetutil", + "ipc:ipc_single", + "safwk:system_ability_fwk", + "samgr:samgr_proxy", + ] + include_dirs += [ "default/inc" ] + } public_configs = [ ":userauth_service_remote_connect_config" ] diff --git a/services/remote_connect/inc/device_state_listener.h b/services/remote_connect/default/inc/device_state_listener.h similarity index 100% rename from services/remote_connect/inc/device_state_listener.h rename to services/remote_connect/default/inc/device_state_listener.h diff --git a/services/remote_connect/inc/remote_connect_listener_manager.h b/services/remote_connect/default/inc/remote_connect_listener_manager.h similarity index 100% rename from services/remote_connect/inc/remote_connect_listener_manager.h rename to services/remote_connect/default/inc/remote_connect_listener_manager.h diff --git a/services/remote_connect/inc/socket_factory.h b/services/remote_connect/default/inc/socket_factory.h similarity index 100% rename from services/remote_connect/inc/socket_factory.h rename to services/remote_connect/default/inc/socket_factory.h diff --git a/services/remote_connect/inc/soft_bus_base_socket.h b/services/remote_connect/default/inc/soft_bus_base_socket.h similarity index 100% rename from services/remote_connect/inc/soft_bus_base_socket.h rename to services/remote_connect/default/inc/soft_bus_base_socket.h diff --git a/services/remote_connect/inc/soft_bus_client_socket.h b/services/remote_connect/default/inc/soft_bus_client_socket.h similarity index 100% rename from services/remote_connect/inc/soft_bus_client_socket.h rename to services/remote_connect/default/inc/soft_bus_client_socket.h diff --git a/services/remote_connect/inc/soft_bus_manager.h b/services/remote_connect/default/inc/soft_bus_manager.h similarity index 100% rename from services/remote_connect/inc/soft_bus_manager.h rename to services/remote_connect/default/inc/soft_bus_manager.h diff --git a/services/remote_connect/inc/soft_bus_message.h b/services/remote_connect/default/inc/soft_bus_message.h similarity index 100% rename from services/remote_connect/inc/soft_bus_message.h rename to services/remote_connect/default/inc/soft_bus_message.h diff --git a/services/remote_connect/inc/soft_bus_server_socket.h b/services/remote_connect/default/inc/soft_bus_server_socket.h similarity index 100% rename from services/remote_connect/inc/soft_bus_server_socket.h rename to services/remote_connect/default/inc/soft_bus_server_socket.h diff --git a/services/remote_connect/inc/soft_bus_socket_listener.h b/services/remote_connect/default/inc/soft_bus_socket_listener.h similarity index 100% rename from services/remote_connect/inc/soft_bus_socket_listener.h rename to services/remote_connect/default/inc/soft_bus_socket_listener.h diff --git a/services/remote_connect/src/device_manager_util.cpp b/services/remote_connect/default/src/device_manager_util.cpp similarity index 100% rename from services/remote_connect/src/device_manager_util.cpp rename to services/remote_connect/default/src/device_manager_util.cpp diff --git a/services/remote_connect/src/remote_connect_listener.cpp b/services/remote_connect/default/src/remote_connect_listener.cpp similarity index 100% rename from services/remote_connect/src/remote_connect_listener.cpp rename to services/remote_connect/default/src/remote_connect_listener.cpp diff --git a/services/remote_connect/src/remote_connect_listener_manager.cpp b/services/remote_connect/default/src/remote_connect_listener_manager.cpp similarity index 100% rename from services/remote_connect/src/remote_connect_listener_manager.cpp rename to services/remote_connect/default/src/remote_connect_listener_manager.cpp diff --git a/services/remote_connect/src/remote_connect_manager.cpp b/services/remote_connect/default/src/remote_connect_manager.cpp similarity index 92% rename from services/remote_connect/src/remote_connect_manager.cpp rename to services/remote_connect/default/src/remote_connect_manager.cpp index 122b5060c..d6c2f20a7 100644 --- a/services/remote_connect/src/remote_connect_manager.cpp +++ b/services/remote_connect/default/src/remote_connect_manager.cpp @@ -81,6 +81,18 @@ ResultCode RemoteConnectionManager::SendMessage(const std::string &connectionNam return SoftBusManager::GetInstance().SendMessage(connectionName, srcEndPoint, destEndPoint, attributes, callback); } + +void RemoteConnectionManager::Start() +{ + IAM_LOGD("RemoteConnectionManager start."); + SoftBusManager::GetInstance().Start(); +} + +void RemoteConnectionManager::Stop() +{ + IAM_LOGD("RemoteConnectionManager stop."); + SoftBusManager::GetInstance().Stop(); +} } // namespace UserAuth } // namespace UserIam } // namespace OHOS diff --git a/services/remote_connect/src/socket_factory.cpp b/services/remote_connect/default/src/socket_factory.cpp similarity index 100% rename from services/remote_connect/src/socket_factory.cpp rename to services/remote_connect/default/src/socket_factory.cpp diff --git a/services/remote_connect/src/soft_bus_base_socket.cpp b/services/remote_connect/default/src/soft_bus_base_socket.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_base_socket.cpp rename to services/remote_connect/default/src/soft_bus_base_socket.cpp diff --git a/services/remote_connect/src/soft_bus_client_socket.cpp b/services/remote_connect/default/src/soft_bus_client_socket.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_client_socket.cpp rename to services/remote_connect/default/src/soft_bus_client_socket.cpp diff --git a/services/remote_connect/src/soft_bus_manager.cpp b/services/remote_connect/default/src/soft_bus_manager.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_manager.cpp rename to services/remote_connect/default/src/soft_bus_manager.cpp diff --git a/services/remote_connect/src/soft_bus_message.cpp b/services/remote_connect/default/src/soft_bus_message.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_message.cpp rename to services/remote_connect/default/src/soft_bus_message.cpp diff --git a/services/remote_connect/src/soft_bus_server_socket.cpp b/services/remote_connect/default/src/soft_bus_server_socket.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_server_socket.cpp rename to services/remote_connect/default/src/soft_bus_server_socket.cpp diff --git a/services/remote_connect/src/soft_bus_socket_listener.cpp b/services/remote_connect/default/src/soft_bus_socket_listener.cpp similarity index 100% rename from services/remote_connect/src/soft_bus_socket_listener.cpp rename to services/remote_connect/default/src/soft_bus_socket_listener.cpp diff --git a/services/remote_connect/inc/remote_connect_manager.h b/services/remote_connect/inc/remote_connect_manager.h index 3ce4217fd..d4784b26a 100644 --- a/services/remote_connect/inc/remote_connect_manager.h +++ b/services/remote_connect/inc/remote_connect_manager.h @@ -48,6 +48,8 @@ public: ResultCode SendMessage(const std::string &connectionName, const std::string &srcEndPoint, const std::string &destEndPoint, const std::shared_ptr &attributes, MsgCallback &callback); + void Start(); + void Stop(); }; } // namespace UserAuth } // namespace UserIam diff --git a/services/remote_connect/non_soft_bus/src/device_manager_util.cpp b/services/remote_connect/non_soft_bus/src/device_manager_util.cpp new file mode 100644 index 000000000..90568e486 --- /dev/null +++ b/services/remote_connect/non_soft_bus/src/device_manager_util.cpp @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2025 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. + */ + +#include "device_manager_util.h" + +#include "iam_logger.h" +#include +#include + +#define LOG_TAG "USER_AUTH_SA" + +namespace OHOS { +namespace UserIam { +namespace UserAuth { +DeviceManagerUtil &DeviceManagerUtil::GetInstance() +{ + static DeviceManagerUtil instance; + return instance; +} + +bool DeviceManagerUtil::GetUdidByNetworkId(const std::string &networkId, std::string &udid) +{ + IAM_LOGE("Dynamic load mode: GetUdidByNetworkId not supported"); + return false; +} + +bool DeviceManagerUtil::GetNetworkIdByUdid(const std::string &udid, std::string &networkId) +{ + IAM_LOGE("Dynamic load mode: GetNetworkIdByUdid not supported"); + return false; +} + +#define RTLD_LAZY 1 +using PAclGetDevUdid = int (*)(char *, int); +bool DeviceManagerUtil::GetLocalDeviceUdid(std::string &udid) +{ + static const char *BEGET_PROXY_LIB = "libbeget_proxy.z.so"; + constexpr int UDID_LENGTH = 65; + char udidDevice[UDID_LENGTH] = {0}; + void *handle = dlopen(BEGET_PROXY_LIB, RTLD_LAZY); + if (handle == nullptr) { + IAM_LOGI("load begetlib failed %{public}s", dlerror()); + return false; + } + PAclGetDevUdid fun = (PAclGetDevUdid)dlsym(handle, "AclGetDevUdid"); + if (fun == nullptr) { + IAM_LOGE("get symbol failed %{public}s", dlerror()); + dlclose(handle); + return false; + } + int udidRes = fun(udidDevice, UDID_LENGTH); + dlclose(handle); + if (udidRes == 0) { + IAM_LOGI("GetDeviceUdid udidRes == 0"); + std::string udidString(udidDevice, strlen(udidDevice)); + udid = udidString; + return true; + } else { + IAM_LOGE("GetDeviceUdid get udid failed %{public}d", udidRes); + return false; + } +} + +bool DeviceManagerUtil::GetLocalDeviceNetWorkId(std::string &networkId) +{ + IAM_LOGE("Dynamic load mode: GetLocalDeviceNetWorkId not supported"); + return false; +} +} // namespace UserAuth +} // namespace UserIam +} // namespace OHOS \ No newline at end of file diff --git a/services/remote_connect/non_soft_bus/src/remote_connect_manager.cpp b/services/remote_connect/non_soft_bus/src/remote_connect_manager.cpp new file mode 100644 index 000000000..07c2ed927 --- /dev/null +++ b/services/remote_connect/non_soft_bus/src/remote_connect_manager.cpp @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2025 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. + */ + +#include "remote_connect_manager.h" +#include "iam_logger.h" + +#define LOG_TAG "USER_AUTH_SA" + +namespace OHOS { +namespace UserIam { +namespace UserAuth { + +RemoteConnectionManager &RemoteConnectionManager::GetInstance() +{ + static RemoteConnectionManager instance; + return instance; +} + +ResultCode RemoteConnectionManager::OpenConnection(const std::string &connectionName, + std::string remoteNetworkId, uint32_t tokenId) +{ + IAM_LOGE("Dynamic load mode: remote connection not supported"); + return GENERAL_ERROR; +} + +ResultCode RemoteConnectionManager::CloseConnection(const std::string &connectionName) +{ + IAM_LOGD("Dynamic load mode: skip close connection"); + return SUCCESS; +} + +ResultCode RemoteConnectionManager::RegisterConnectionListener(const std::string &connectionName, + const std::string &endPointName, const std::shared_ptr &listener) +{ + IAM_LOGE("Dynamic load mode: register connection listener not supported"); + return GENERAL_ERROR; +} + +ResultCode RemoteConnectionManager::RegisterConnectionListener(const std::string &endPointName, + const std::shared_ptr &listener) +{ + IAM_LOGE("Dynamic load mode: register connection listener not supported"); + return GENERAL_ERROR; +} + +ResultCode RemoteConnectionManager::UnregisterConnectionListener(const std::string &connectionName, + const std::string &endPointName) +{ + IAM_LOGD("Dynamic load mode: skip unregister connection listener"); + return SUCCESS; +} + +ResultCode RemoteConnectionManager::UnregisterConnectionListener(const std::string &endPointName) +{ + IAM_LOGD("Dynamic load mode: skip unregister connection listener"); + return SUCCESS; +} + +ResultCode RemoteConnectionManager::SendMessage(const std::string &connectionName, + const std::string &srcEndPoint, const std::string &destEndPoint, + const std::shared_ptr &attributes, MsgCallback &callback) +{ + IAM_LOGE("Dynamic load mode: send message not supported"); + return GENERAL_ERROR; +} + +void RemoteConnectionManager::Start() +{ + IAM_LOGD("Dynamic load mode: skip start"); +} + +void RemoteConnectionManager::Stop() +{ + IAM_LOGD("Dynamic load mode: skip stop"); +} + +} // namespace UserAuth +} // namespace UserIam +} // namespace OHOS \ No newline at end of file diff --git a/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn b/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn index 187e79d99..98cb355ca 100644 --- a/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn +++ b/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn @@ -1,98 +1,98 @@ -# Copyright (c) 2025 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/ohos.gni") -import("//build/test.gni") - -ohos_fuzztest("ExecutorCallbackServiceFuzzTest") { - branch_protector_ret = "pac_ret" - module_out_path = "user_auth_framework/user_auth" - fuzz_config_file = "../executorcallbackservice_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - include_dirs = [ - "../../../../services/base/inc", - "../../../../services/core/inc", - "../../../../services/core/src", - "../../../../services/context/inc", - "../../../../services/ipc/inc", - "../../../../interfaces/inner_api", - "../../../../frameworks/common/inc", - "../../../../frameworks/native/ipc/inc", - "../../../../frameworks/native/client/inc", - "../../../../frameworks/native/ipc/common_defines", - "../../../../common/utils", - "../../../../common/logs", - ] - - sources = [ - "../../../../frameworks/native/client/src/auth_message_impl.cpp", - "../../../../frameworks/native/client/src/callback_manager_impl.cpp", - "../../../../frameworks/native/client/src/co_auth_client_impl.cpp", - "../../../../frameworks/native/client/src/event_listener_callback_service.cpp", - "../../../../frameworks/native/client/src/executor_callback_service.cpp", - "../../../../frameworks/native/client/src/executor_messenger_client.cpp", - "../../../../frameworks/native/client/src/ipc_client_utils.cpp", - "../../../../frameworks/native/client/src/load_mode_client_util.cpp", - "../../../../frameworks/native/client/src/modal_callback_service.cpp", - "../../../../frameworks/native/client/src/user_access_ctrl_callback_service.cpp", - "../../../../frameworks/native/client/src/user_access_ctrl_client_impl.cpp", - "../../../../frameworks/native/client/src/user_auth_callback_service.cpp", - "../../../../frameworks/native/client/src/user_auth_client_impl.cpp", - "../../../../frameworks/native/client/src/user_auth_modal_inner_callback.cpp", - "../../../../frameworks/native/client/src/user_auth_napi_client_impl.cpp", - "../../../../frameworks/native/client/src/user_idm_callback_service.cpp", - "../../../../frameworks/native/client/src/user_idm_client_impl.cpp", - "../../../../frameworks/native/client/src/widget_callback_service.cpp", - "executor_callback_service_fuzzer.cpp", - ] - - deps = [ - "../../../../frameworks/native/ipc:userauth_client_ipc_fuzzer", - "../../common_fuzzer:attributes_fuzzer", - "../../common_fuzzer:dfx_fuzzer", - "../../common_fuzzer:iam_test_fuzzer", - ] - - remove_configs = [ "//build/config/compiler:no_exceptions" ] - - external_deps = [ - "ability_runtime:ability_context_native", - "ability_runtime:ability_manager", - "ability_runtime:abilitykit_native", - "ability_runtime:app_context", - "ability_runtime:napi_base_context", - "ability_runtime:ui_extension", - "access_token:libaccesstoken_sdk", - "ace_engine:ace_uicontent", - "c_utils:utils", - "hilog:libhilog", - "init:libbeget_proxy", - "init:libbegetutil", - "ipc:ipc_single", - "napi:ace_napi", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - subsystem_name = "useriam" - part_name = "user_auth_framework" +# Copyright (c) 2025 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/ohos.gni") +import("//build/test.gni") + +ohos_fuzztest("ExecutorCallbackServiceFuzzTest") { + branch_protector_ret = "pac_ret" + module_out_path = "user_auth_framework/user_auth" + fuzz_config_file = "../executorcallbackservice_fuzzer" + + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + + include_dirs = [ + "../../../../services/base/inc", + "../../../../services/core/inc", + "../../../../services/core/src", + "../../../../services/context/inc", + "../../../../services/ipc/inc", + "../../../../interfaces/inner_api", + "../../../../frameworks/js/napi/user_auth/inc", + "../../../../frameworks/native/ipc/inc", + "../../../../frameworks/native/client/inc", + "../../../../frameworks/native/ipc/common_defines", + "../../../../common/utils", + "../../../../common/logs", + ] + + sources = [ + "../../../../frameworks/native/client/src/auth_message_impl.cpp", + "../../../../frameworks/native/client/src/callback_manager_impl.cpp", + "../../../../frameworks/native/client/src/co_auth_client_impl.cpp", + "../../../../frameworks/native/client/src/event_listener_callback_service.cpp", + "../../../../frameworks/native/client/src/executor_callback_service.cpp", + "../../../../frameworks/native/client/src/executor_messenger_client.cpp", + "../../../../frameworks/native/client/src/ipc_client_utils.cpp", + "../../../../frameworks/native/client/src/load_mode_client_util.cpp", + "../../../../frameworks/native/client/src/modal_callback_service.cpp", + "../../../../frameworks/native/client/src/user_access_ctrl_callback_service.cpp", + "../../../../frameworks/native/client/src/user_access_ctrl_client_impl.cpp", + "../../../../frameworks/native/client/src/user_auth_callback_service.cpp", + "../../../../frameworks/native/client/src/user_auth_client_impl.cpp", + "../../../../frameworks/native/client/src/user_auth_modal_inner_callback.cpp", + "../../../../frameworks/native/client/src/user_auth_napi_client_impl.cpp", + "../../../../frameworks/native/client/src/user_idm_callback_service.cpp", + "../../../../frameworks/native/client/src/user_idm_client_impl.cpp", + "../../../../frameworks/native/client/src/widget_callback_service.cpp", + "executor_callback_service_fuzzer.cpp", + ] + + deps = [ + "../../../../frameworks/native/ipc:userauth_client_ipc_fuzzer", + "../../common_fuzzer:attributes_fuzzer", + "../../common_fuzzer:dfx_fuzzer", + "../../common_fuzzer:iam_test_fuzzer", + ] + + remove_configs = [ "//build/config/compiler:no_exceptions" ] + + external_deps = [ + "ability_runtime:ability_context_native", + "ability_runtime:ability_manager", + "ability_runtime:abilitykit_native", + "ability_runtime:app_context", + "ability_runtime:napi_base_context", + "ability_runtime:ui_extension", + "access_token:libaccesstoken_sdk", + "ace_engine:ace_uicontent", + "c_utils:utils", + "hilog:libhilog", + "init:libbeget_proxy", + "init:libbegetutil", + "ipc:ipc_single", + "napi:ace_napi", + "safwk:system_ability_fwk", + "samgr:samgr_proxy", + ] + + subsystem_name = "useriam" + part_name = "user_auth_framework" } \ No newline at end of file diff --git a/test/fuzztest/common_fuzzer/BUILD.gn b/test/fuzztest/common_fuzzer/BUILD.gn index 85f16b95d..2c143f268 100644 --- a/test/fuzztest/common_fuzzer/BUILD.gn +++ b/test/fuzztest/common_fuzzer/BUILD.gn @@ -314,22 +314,25 @@ ohos_source_set("userauth_service_context_fuzzer") { } ohos_source_set("userauth_service_remote_connect_fuzzer") { - include_dirs = [ "inc" ] + include_dirs = [ + "inc", + "../../../services/remote_connect/default/inc", + ] remove_configs = [ "//build/config/compiler:no_exceptions" ] sources = [ - "../../../services/remote_connect/src/device_manager_util.cpp", - "../../../services/remote_connect/src/remote_connect_listener.cpp", - "../../../services/remote_connect/src/remote_connect_listener_manager.cpp", - "../../../services/remote_connect/src/remote_connect_manager.cpp", - "../../../services/remote_connect/src/socket_factory.cpp", - "../../../services/remote_connect/src/soft_bus_base_socket.cpp", - "../../../services/remote_connect/src/soft_bus_client_socket.cpp", - "../../../services/remote_connect/src/soft_bus_manager.cpp", - "../../../services/remote_connect/src/soft_bus_message.cpp", - "../../../services/remote_connect/src/soft_bus_server_socket.cpp", - "../../../services/remote_connect/src/soft_bus_socket_listener.cpp", + "../../../services/remote_connect/default/src/device_manager_util.cpp", + "../../../services/remote_connect/default/src/remote_connect_listener.cpp", + "../../../services/remote_connect/default/src/remote_connect_listener_manager.cpp", + "../../../services/remote_connect/default/src/remote_connect_manager.cpp", + "../../../services/remote_connect/default/src/socket_factory.cpp", + "../../../services/remote_connect/default/src/soft_bus_base_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_client_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_manager.cpp", + "../../../services/remote_connect/default/src/soft_bus_message.cpp", + "../../../services/remote_connect/default/src/soft_bus_server_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_socket_listener.cpp", ] deps = [ diff --git a/test/fuzztest/services/context/remoteauthcontext_fuzzer/BUILD.gn b/test/fuzztest/services/context/remoteauthcontext_fuzzer/BUILD.gn index 14411cd55..d173e389d 100644 --- a/test/fuzztest/services/context/remoteauthcontext_fuzzer/BUILD.gn +++ b/test/fuzztest/services/context/remoteauthcontext_fuzzer/BUILD.gn @@ -37,6 +37,7 @@ ohos_fuzztest("RemoteAuthContextFuzzTest") { "../../../../../services/context/src", "../../../../../services/context/inc", "../../../../../services/remote_connect/inc", + "../../../../../services/remote_connect/default/inc", "../../../../../services/ipc/inc", "../../../../../interfaces/inner_api", "../../../../../frameworks/native/ipc/inc", diff --git a/test/fuzztest/services/context/widgetcontext_fuzzer/BUILD.gn b/test/fuzztest/services/context/widgetcontext_fuzzer/BUILD.gn index b93ccec19..cec5a1bf1 100644 --- a/test/fuzztest/services/context/widgetcontext_fuzzer/BUILD.gn +++ b/test/fuzztest/services/context/widgetcontext_fuzzer/BUILD.gn @@ -37,7 +37,7 @@ ohos_fuzztest("WidgetContextFuzzTest") { "../../../../../services/context/src", "../../../../../services/ipc/inc", "../../../../../services/remote_connect/inc", - "../../../../../services/remote_connect/src", + "../../../../../services/remote_connect/default/inc", "../../../../../frameworks/native/ipc/inc", "../../../../../frameworks/native/ipc/common_defines", "../../../../../frameworks/common/inc", diff --git a/test/fuzztest/services/core/remoteexecutorstub_fuzzer/BUILD.gn b/test/fuzztest/services/core/remoteexecutorstub_fuzzer/BUILD.gn index f8ad20072..37b7ebf3f 100644 --- a/test/fuzztest/services/core/remoteexecutorstub_fuzzer/BUILD.gn +++ b/test/fuzztest/services/core/remoteexecutorstub_fuzzer/BUILD.gn @@ -35,6 +35,7 @@ ohos_fuzztest("RemoteExecutorStubFuzzTest") { "../../../../../services/context/inc", "../../../../../services/ipc/inc", "../../../../../services/remote_connect/inc", + "../../../../../services/remote_connect/default/inc", "../../../../../frameworks/native/ipc/inc", "../../../../../frameworks/native/common/dfx/inc", "../../../../../frameworks/native/ipc/common_defines", diff --git a/test/fuzztest/services/softbus_fuzzer/BUILD.gn b/test/fuzztest/services/softbus_fuzzer/BUILD.gn index de7e56a1a..91d43cbe6 100644 --- a/test/fuzztest/services/softbus_fuzzer/BUILD.gn +++ b/test/fuzztest/services/softbus_fuzzer/BUILD.gn @@ -33,6 +33,7 @@ ohos_fuzztest("SoftBusFuzzTest") { "../../../../frameworks/native/common/dfx/inc", "../../../../services/base/inc", "../../../../services/remote_connect/inc", + "../../../../services/remote_connect/default/inc", "../../../../common/utils", "../../../../common/logs", ] diff --git a/test/fuzztest/services/templatecachemanager_fuzzer/BUILD.gn b/test/fuzztest/services/templatecachemanager_fuzzer/BUILD.gn index 5b4ef83e6..13e5393ba 100644 --- a/test/fuzztest/services/templatecachemanager_fuzzer/BUILD.gn +++ b/test/fuzztest/services/templatecachemanager_fuzzer/BUILD.gn @@ -33,6 +33,7 @@ ohos_fuzztest("TemplateCacheManagerFuzzTest") { "../../../../services/context/inc", "../../../../services/ipc/inc", "../../../../services/remote_connect/inc", + "../../../../services/remote_connect/default/inc", "../../../../frameworks/native/ipc/inc", "../../../../frameworks/native/ipc/common_defines", "../../../../common/utils", diff --git a/test/fuzztest/services/userauthservice_fuzzer/BUILD.gn b/test/fuzztest/services/userauthservice_fuzzer/BUILD.gn index 785a8c91b..d07145c03 100644 --- a/test/fuzztest/services/userauthservice_fuzzer/BUILD.gn +++ b/test/fuzztest/services/userauthservice_fuzzer/BUILD.gn @@ -33,6 +33,7 @@ ohos_fuzztest("UserAuthServiceFuzzTest") { "../../../../services/context/inc", "../../../../services/ipc/inc", "../../../../services/remote_connect/inc", + "../../../../services/remote_connect/default/inc", "../../../../frameworks/native/ipc/inc", "../../../../frameworks/native/ipc/common_defines", "../../../../common/utils", diff --git a/test/fuzztest/services/useridmservice_fuzzer/BUILD.gn b/test/fuzztest/services/useridmservice_fuzzer/BUILD.gn index 674b61bd6..776b46db5 100644 --- a/test/fuzztest/services/useridmservice_fuzzer/BUILD.gn +++ b/test/fuzztest/services/useridmservice_fuzzer/BUILD.gn @@ -35,6 +35,7 @@ ohos_fuzztest("UserIdmServiceFuzzTest") { "../../../../services/context/inc", "../../../../services/ipc/inc", "../../../../services/remote_connect/inc", + "../../../../services/remote_connect/default/inc", "../../../../frameworks/native/ipc/inc", "../../../../frameworks/native/ipc/common_defines", "../../../../common/utils", diff --git a/test/unittest/services/BUILD.gn b/test/unittest/services/BUILD.gn index 3aa2a2b37..ae1fb6990 100644 --- a/test/unittest/services/BUILD.gn +++ b/test/unittest/services/BUILD.gn @@ -44,6 +44,8 @@ ohos_unittest("iam_services_test") { "../../../services/load_mode/inc", "../../../services/remote_connect/inc", "../../../frameworks/common/inc", + "../../../services/remote_connect/default/inc", + "../../../frameworks/js/napi/user_auth/inc", "../../../frameworks/native/ipc/inc", "../../../frameworks/native/ipc/common_defines", "../inner_api/mocks", @@ -118,17 +120,17 @@ ohos_unittest("iam_services_test") { "../../../services/ipc/src/user_idm_service.cpp", "../../../services/load_mode/src/load_mode_handler.cpp", "../../../services/load_mode/src/load_mode_handler_default.cpp", - "../../../services/remote_connect/src/device_manager_util.cpp", - "../../../services/remote_connect/src/remote_connect_listener.cpp", - "../../../services/remote_connect/src/remote_connect_listener_manager.cpp", - "../../../services/remote_connect/src/remote_connect_manager.cpp", - "../../../services/remote_connect/src/socket_factory.cpp", - "../../../services/remote_connect/src/soft_bus_base_socket.cpp", - "../../../services/remote_connect/src/soft_bus_client_socket.cpp", - "../../../services/remote_connect/src/soft_bus_manager.cpp", - "../../../services/remote_connect/src/soft_bus_message.cpp", - "../../../services/remote_connect/src/soft_bus_server_socket.cpp", - "../../../services/remote_connect/src/soft_bus_socket_listener.cpp", + "../../../services/remote_connect/default/src/device_manager_util.cpp", + "../../../services/remote_connect/default/src/remote_connect_listener.cpp", + "../../../services/remote_connect/default/src/remote_connect_listener_manager.cpp", + "../../../services/remote_connect/default/src/remote_connect_manager.cpp", + "../../../services/remote_connect/default/src/socket_factory.cpp", + "../../../services/remote_connect/default/src/soft_bus_base_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_client_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_manager.cpp", + "../../../services/remote_connect/default/src/soft_bus_message.cpp", + "../../../services/remote_connect/default/src/soft_bus_server_socket.cpp", + "../../../services/remote_connect/default/src/soft_bus_socket_listener.cpp", "mocks/mock_ipc_common.cpp", "mocks/mock_iuser_auth_interface.cpp", "mocks/mock_socket.cpp", -- Gitee From 8c9d8d879670772ee16c4dbbdaebc9458d3298cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B1=85=E5=87=AF?= Date: Wed, 3 Sep 2025 02:23:20 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E4=BB=B6=20test?= =?UTF-8?q?/fuzztest/clients/executorcallbackservice=5Ffuzzer/BUILD.gn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8ae3549e9d814fa14fe5eb555036f1926699da5d Signed-off-by: kaiju --- .../executorcallbackservice_fuzzer/BUILD.gn | 194 +++++++++--------- 1 file changed, 97 insertions(+), 97 deletions(-) diff --git a/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn b/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn index 98cb355ca..187e79d99 100644 --- a/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn +++ b/test/fuzztest/clients/executorcallbackservice_fuzzer/BUILD.gn @@ -1,98 +1,98 @@ -# Copyright (c) 2025 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/ohos.gni") -import("//build/test.gni") - -ohos_fuzztest("ExecutorCallbackServiceFuzzTest") { - branch_protector_ret = "pac_ret" - module_out_path = "user_auth_framework/user_auth" - fuzz_config_file = "../executorcallbackservice_fuzzer" - - cflags = [ - "-g", - "-O0", - "-Wno-unused-variable", - "-fno-omit-frame-pointer", - "-Dprivate=public", - "-Dprotected=public", - ] - - include_dirs = [ - "../../../../services/base/inc", - "../../../../services/core/inc", - "../../../../services/core/src", - "../../../../services/context/inc", - "../../../../services/ipc/inc", - "../../../../interfaces/inner_api", - "../../../../frameworks/js/napi/user_auth/inc", - "../../../../frameworks/native/ipc/inc", - "../../../../frameworks/native/client/inc", - "../../../../frameworks/native/ipc/common_defines", - "../../../../common/utils", - "../../../../common/logs", - ] - - sources = [ - "../../../../frameworks/native/client/src/auth_message_impl.cpp", - "../../../../frameworks/native/client/src/callback_manager_impl.cpp", - "../../../../frameworks/native/client/src/co_auth_client_impl.cpp", - "../../../../frameworks/native/client/src/event_listener_callback_service.cpp", - "../../../../frameworks/native/client/src/executor_callback_service.cpp", - "../../../../frameworks/native/client/src/executor_messenger_client.cpp", - "../../../../frameworks/native/client/src/ipc_client_utils.cpp", - "../../../../frameworks/native/client/src/load_mode_client_util.cpp", - "../../../../frameworks/native/client/src/modal_callback_service.cpp", - "../../../../frameworks/native/client/src/user_access_ctrl_callback_service.cpp", - "../../../../frameworks/native/client/src/user_access_ctrl_client_impl.cpp", - "../../../../frameworks/native/client/src/user_auth_callback_service.cpp", - "../../../../frameworks/native/client/src/user_auth_client_impl.cpp", - "../../../../frameworks/native/client/src/user_auth_modal_inner_callback.cpp", - "../../../../frameworks/native/client/src/user_auth_napi_client_impl.cpp", - "../../../../frameworks/native/client/src/user_idm_callback_service.cpp", - "../../../../frameworks/native/client/src/user_idm_client_impl.cpp", - "../../../../frameworks/native/client/src/widget_callback_service.cpp", - "executor_callback_service_fuzzer.cpp", - ] - - deps = [ - "../../../../frameworks/native/ipc:userauth_client_ipc_fuzzer", - "../../common_fuzzer:attributes_fuzzer", - "../../common_fuzzer:dfx_fuzzer", - "../../common_fuzzer:iam_test_fuzzer", - ] - - remove_configs = [ "//build/config/compiler:no_exceptions" ] - - external_deps = [ - "ability_runtime:ability_context_native", - "ability_runtime:ability_manager", - "ability_runtime:abilitykit_native", - "ability_runtime:app_context", - "ability_runtime:napi_base_context", - "ability_runtime:ui_extension", - "access_token:libaccesstoken_sdk", - "ace_engine:ace_uicontent", - "c_utils:utils", - "hilog:libhilog", - "init:libbeget_proxy", - "init:libbegetutil", - "ipc:ipc_single", - "napi:ace_napi", - "safwk:system_ability_fwk", - "samgr:samgr_proxy", - ] - - subsystem_name = "useriam" - part_name = "user_auth_framework" +# Copyright (c) 2025 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/ohos.gni") +import("//build/test.gni") + +ohos_fuzztest("ExecutorCallbackServiceFuzzTest") { + branch_protector_ret = "pac_ret" + module_out_path = "user_auth_framework/user_auth" + fuzz_config_file = "../executorcallbackservice_fuzzer" + + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", + "-Dprivate=public", + "-Dprotected=public", + ] + + include_dirs = [ + "../../../../services/base/inc", + "../../../../services/core/inc", + "../../../../services/core/src", + "../../../../services/context/inc", + "../../../../services/ipc/inc", + "../../../../interfaces/inner_api", + "../../../../frameworks/common/inc", + "../../../../frameworks/native/ipc/inc", + "../../../../frameworks/native/client/inc", + "../../../../frameworks/native/ipc/common_defines", + "../../../../common/utils", + "../../../../common/logs", + ] + + sources = [ + "../../../../frameworks/native/client/src/auth_message_impl.cpp", + "../../../../frameworks/native/client/src/callback_manager_impl.cpp", + "../../../../frameworks/native/client/src/co_auth_client_impl.cpp", + "../../../../frameworks/native/client/src/event_listener_callback_service.cpp", + "../../../../frameworks/native/client/src/executor_callback_service.cpp", + "../../../../frameworks/native/client/src/executor_messenger_client.cpp", + "../../../../frameworks/native/client/src/ipc_client_utils.cpp", + "../../../../frameworks/native/client/src/load_mode_client_util.cpp", + "../../../../frameworks/native/client/src/modal_callback_service.cpp", + "../../../../frameworks/native/client/src/user_access_ctrl_callback_service.cpp", + "../../../../frameworks/native/client/src/user_access_ctrl_client_impl.cpp", + "../../../../frameworks/native/client/src/user_auth_callback_service.cpp", + "../../../../frameworks/native/client/src/user_auth_client_impl.cpp", + "../../../../frameworks/native/client/src/user_auth_modal_inner_callback.cpp", + "../../../../frameworks/native/client/src/user_auth_napi_client_impl.cpp", + "../../../../frameworks/native/client/src/user_idm_callback_service.cpp", + "../../../../frameworks/native/client/src/user_idm_client_impl.cpp", + "../../../../frameworks/native/client/src/widget_callback_service.cpp", + "executor_callback_service_fuzzer.cpp", + ] + + deps = [ + "../../../../frameworks/native/ipc:userauth_client_ipc_fuzzer", + "../../common_fuzzer:attributes_fuzzer", + "../../common_fuzzer:dfx_fuzzer", + "../../common_fuzzer:iam_test_fuzzer", + ] + + remove_configs = [ "//build/config/compiler:no_exceptions" ] + + external_deps = [ + "ability_runtime:ability_context_native", + "ability_runtime:ability_manager", + "ability_runtime:abilitykit_native", + "ability_runtime:app_context", + "ability_runtime:napi_base_context", + "ability_runtime:ui_extension", + "access_token:libaccesstoken_sdk", + "ace_engine:ace_uicontent", + "c_utils:utils", + "hilog:libhilog", + "init:libbeget_proxy", + "init:libbegetutil", + "ipc:ipc_single", + "napi:ace_napi", + "safwk:system_ability_fwk", + "samgr:samgr_proxy", + ] + + subsystem_name = "useriam" + part_name = "user_auth_framework" } \ No newline at end of file -- Gitee