From 39b29c2c3e99d69f069308907cbebedbdceb8093 Mon Sep 17 00:00:00 2001 From: BaoYang Date: Wed, 22 Oct 2025 17:11:20 +0800 Subject: [PATCH] add fuzz constructor Signed-off-by: BaoYang Change-Id: If5845d2bbe1cb82a6427e456ba856bba3e1bea2c --- test/fuzztest/security_component/common/fuzz_common.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/fuzztest/security_component/common/fuzz_common.cpp b/test/fuzztest/security_component/common/fuzz_common.cpp index 52ac3b2..affc7fc 100644 --- a/test/fuzztest/security_component/common/fuzz_common.cpp +++ b/test/fuzztest/security_component/common/fuzz_common.cpp @@ -118,6 +118,7 @@ std::string CompoRandomGenerator::ConstructLocationJson() jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false; jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false; jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM; + jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false; compoJson_ = jsonComponent; return compoJson_.dump(); } @@ -173,6 +174,7 @@ std::string CompoRandomGenerator::ConstructSaveJson() jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false; jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false; jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM; + jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false; compoJson_ = jsonComponent; return compoJson_.dump(); } @@ -228,6 +230,7 @@ std::string CompoRandomGenerator::ConstructPasteJson() jsonComponent[JsonTagConstants::JSON_IS_OVERLAY_NODE_SET_TAG] = false; jsonComponent[JsonTagConstants::JSON_IS_CUSTOMIZABLE] = false; jsonComponent[JsonTagConstants::JSON_TIP_POSITION] = TipPosition::ABOVE_BOTTOM; + jsonComponent[JsonTagConstants::JSON_IS_ARKUI_COMPONENT] = false; compoJson_ = jsonComponent; return compoJson_.dump(); }