mirror of
https://github.com/openharmony/security_security_component_manager.git
synced 2026-08-24 14:33:25 -04:00
add fuzz constructor
Signed-off-by: BaoYang <baoyang9@h-partners.com> Change-Id: If5845d2bbe1cb82a6427e456ba856bba3e1bea2c
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user