From 1a03e8cb02d490e073102f7e356b444dd7ed954f Mon Sep 17 00:00:00 2001 From: zhaochaoyan Date: Wed, 27 Aug 2025 14:18:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E4=BD=8E=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3FUZZ?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhaochaoyan --- commondependency/src/deviceprofile_connector.cpp | 4 ++++ json/src/json_object_cjson.cpp | 2 ++ .../implementation/src/ability/standard/dm_dialog_manager.cpp | 2 ++ .../src/authentication/auth_message_processor.cpp | 2 ++ .../implementation/src/authentication/auth_request_state.cpp | 2 ++ .../implementation/src/authentication/auth_response_state.cpp | 2 ++ 6 files changed, 14 insertions(+) diff --git a/commondependency/src/deviceprofile_connector.cpp b/commondependency/src/deviceprofile_connector.cpp index cf201681d..adc893627 100644 --- a/commondependency/src/deviceprofile_connector.cpp +++ b/commondependency/src/deviceprofile_connector.cpp @@ -590,6 +590,7 @@ void DeviceProfileConnector::FilterNeedDeleteACLInfos( } } +//LCOV_EXCL_START DM_EXPORT std::vector DeviceProfileConnector::GetAccessControlProfile() { std::vector profiles; @@ -634,6 +635,7 @@ std::vector DeviceProfileConnector::GetAclProfileByDeviceI } return aclProfileVec; } +//LCOV_EXCL_STOP std::vector DeviceProfileConnector::GetAclProfileByDeviceIdAndUserId(const std::string &deviceId, int32_t userId, const std::string &remoteDeviceId) @@ -2325,6 +2327,7 @@ DmOfflineParam DeviceProfileConnector::HandleServiceUnBindEvent(int32_t remoteUs return offlineParam; } +//LCOV_EXCL_START DM_EXPORT std::vector DeviceProfileConnector::GetAllAccessControlProfile() { std::vector profiles; @@ -2344,6 +2347,7 @@ DM_EXPORT std::vector DeviceProfileConnector::GetAllAclInc } return profiles; } +//LCOV_EXCL_STOP DM_EXPORT void DeviceProfileConnector::DeleteAccessControlById( int64_t accessControlId) diff --git a/json/src/json_object_cjson.cpp b/json/src/json_object_cjson.cpp index 32fed83eb..a27b27628 100644 --- a/json/src/json_object_cjson.cpp +++ b/json/src/json_object_cjson.cpp @@ -156,6 +156,7 @@ void ToJson(JsonItemObject &itemObject, const uint64_t &value) #endif } +//LCOV_EXCL_START void FromJson(const JsonItemObject &itemObject, std::string &value) { itemObject.GetTo(value); @@ -307,6 +308,7 @@ bool JsonItemObject::IsObject() const } return cJSON_IsObject(GetCJsonPointer(item_)); } +//LCOV_EXCL_STOP void JsonItemObject::Insert(const std::string &key, const JsonItemObject &object) { diff --git a/services/implementation/src/ability/standard/dm_dialog_manager.cpp b/services/implementation/src/ability/standard/dm_dialog_manager.cpp index 156d95b88..32a64d2e4 100644 --- a/services/implementation/src/ability/standard/dm_dialog_manager.cpp +++ b/services/implementation/src/ability/standard/dm_dialog_manager.cpp @@ -156,6 +156,7 @@ void DmDialogManager::CloseDialog() } } +//LCOV_EXCL_START void DmDialogManager::ConnectExtension() { LOGI("DmDialogManager::ConnectExtension start."); @@ -197,6 +198,7 @@ void DmDialogManager::ConnectExtension() } } } +//LCOV_EXCL_STOP void DmDialogManager::OnAbilityConnectDone( const AppExecFwk::ElementName& element, const sptr& remoteObject, int resultCode) diff --git a/services/implementation/src/authentication/auth_message_processor.cpp b/services/implementation/src/authentication/auth_message_processor.cpp index 5d4458025..4241f843f 100644 --- a/services/implementation/src/authentication/auth_message_processor.cpp +++ b/services/implementation/src/authentication/auth_message_processor.cpp @@ -113,6 +113,7 @@ void AuthMessageProcessor::GetJsonObj(JsonObject &jsonObj) } } +//LCOV_EXCL_START bool AuthMessageProcessor::IsPincodeImported() { auto sptrAuthMgr = authMgr_.lock(); @@ -152,6 +153,7 @@ std::vector AuthMessageProcessor::CreateAuthRequestMessage() } return jsonStrVec; } +//LCOV_EXCL_STOP std::string AuthMessageProcessor::CreateSimpleMessage(int32_t msgType) { diff --git a/services/implementation/src/authentication/auth_request_state.cpp b/services/implementation/src/authentication/auth_request_state.cpp index 6b086fef4..ff8c4120e 100644 --- a/services/implementation/src/authentication/auth_request_state.cpp +++ b/services/implementation/src/authentication/auth_request_state.cpp @@ -25,6 +25,7 @@ int32_t AuthRequestState::Leave() return DM_OK; } +//LCOV_EXCL_START int32_t AuthRequestState::SetAuthManager(std::shared_ptr authManager) { authManager_ = std::move(authManager); @@ -246,5 +247,6 @@ int32_t AuthRequestReCheckMsgDone::Enter() stateAuthManager->RequestReCheckMsgDone(); return DM_OK; } +//LCOV_EXCL_STOP } // namespace DistributedHardware } // namespace OHOS \ No newline at end of file diff --git a/services/implementation/src/authentication/auth_response_state.cpp b/services/implementation/src/authentication/auth_response_state.cpp index f076e5e70..38dae0ccc 100644 --- a/services/implementation/src/authentication/auth_response_state.cpp +++ b/services/implementation/src/authentication/auth_response_state.cpp @@ -60,6 +60,7 @@ int32_t AuthResponseState::TransitionTo(std::shared_ptr state return DM_OK; } +//LCOV_EXCL_START int32_t AuthResponseInitState::GetStateType() { return AuthState::AUTH_RESPONSE_INIT; @@ -194,5 +195,6 @@ int32_t AuthResponseReCheckMsg::Enter() stateAuthManager->ResponseReCheckMsg(); return DM_OK; } +//LCOV_EXCL_STOP } // namespace DistributedHardware } // namespace OHOS -- Gitee