From 222aa540b5c011d01ea09f605702caa267282273 Mon Sep 17 00:00:00 2001 From: wangzhaohao Date: Fri, 15 Aug 2025 12:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BDDM=E4=BD=8E=E9=A3=8E=E9=99=A9?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangzhaohao --- services/implementation/src/attest/dm_auth_attest_common.cpp | 4 +++- .../src/authentication_v2/dm_auth_message_processor.cpp | 4 +++- .../src/publishcommonevent/dm_datashare_common_event.cpp | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/services/implementation/src/attest/dm_auth_attest_common.cpp b/services/implementation/src/attest/dm_auth_attest_common.cpp index de2ad7ce7..3849cb530 100644 --- a/services/implementation/src/attest/dm_auth_attest_common.cpp +++ b/services/implementation/src/attest/dm_auth_attest_common.cpp @@ -67,6 +67,7 @@ std::string AuthAttestCommon::SerializeDmCertChain(const DmCertChain *chain) return jsonObject.Dump(); } +//LCOV_EXCL_START bool ValidateInputJson(const std::string &data) { JsonObject jsonObject; @@ -184,5 +185,6 @@ void AuthAttestCommon::FreeDmCertChain(DmCertChain &chain) chain.cert = nullptr; chain.certCount = 0; } +//LCOV_EXCL_STOP } // namespace DistributedHardware -} // namespace OHOS \ No newline at end of file +} // namespace OHOS diff --git a/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp b/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp index 792f37174..9d8cc425b 100644 --- a/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp +++ b/services/implementation/src/authentication_v2/dm_auth_message_processor.cpp @@ -1043,6 +1043,7 @@ int32_t DmAuthMessageProcessor::CreateProxyCredExchangeMessage(std::shared_ptr context, JsonObject &jsonObject) @@ -1088,6 +1089,7 @@ int32_t DmAuthMessageProcessor::CreateMessageRspSKDerive(std::shared_ptr context, @@ -2282,4 +2284,4 @@ void FromJson(const JsonItemObject &itemObject, DmAccessToSync &table) SetValueFromJson(itemObject, "skTimeStamp", &JsonItemObject::IsNumberInteger, table.skTimeStamp); } } // namespace DistributedHardware -} // namespace OHOS \ No newline at end of file +} // namespace OHOS diff --git a/services/service/src/publishcommonevent/dm_datashare_common_event.cpp b/services/service/src/publishcommonevent/dm_datashare_common_event.cpp index a18715aa2..fbf0fc835 100644 --- a/services/service/src/publishcommonevent/dm_datashare_common_event.cpp +++ b/services/service/src/publishcommonevent/dm_datashare_common_event.cpp @@ -95,6 +95,7 @@ bool DmDataShareCommonEventManager::SubscribeDataShareCommonEvent(const std::vec return true; } +//LCOV_EXCL_START bool DmDataShareCommonEventManager::UnsubscribeDataShareCommonEvent() { std::lock_guard locker(evenSubscriberMutex_); @@ -130,6 +131,7 @@ bool DmDataShareCommonEventManager::UnsubscribeDataShareCommonEvent() eventValidFlag_ = false; return true; } +//LCOV_EXCL_STOP void DmDataShareEventSubscriber::OnReceiveEvent(const CommonEventData &data) { -- Gitee