diff --git a/frameworks/inner_api/security_component/test/unittest/src/test_common.cpp b/frameworks/inner_api/security_component/test/unittest/src/test_common.cpp index 7ce03fcb382be0cefd174e280d900555bd7bb472..83f39dd2845cedc97e6b3b7ef7b8c662fe7a1a4e 100644 --- a/frameworks/inner_api/security_component/test/unittest/src/test_common.cpp +++ b/frameworks/inner_api/security_component/test/unittest/src/test_common.cpp @@ -40,11 +40,19 @@ void TestCommon::BuildLocationComponentInfo(nlohmann::json& jsonComponent) { JsonTagConstants::JSON_PADDING_LEFT_TAG, TestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { @@ -98,11 +106,19 @@ void TestCommon::BuildSaveComponentInfo(nlohmann::json& jsonComponent) { JsonTagConstants::JSON_PADDING_LEFT_TAG, TestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { @@ -156,11 +172,19 @@ void TestCommon::BuildPasteComponentInfo(nlohmann::json& jsonComponent) { JsonTagConstants::JSON_PADDING_LEFT_TAG, TestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, TestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { diff --git a/frameworks/security_component/src/sec_comp_base.cpp b/frameworks/security_component/src/sec_comp_base.cpp index 3d121ec00930cf2835908eb91d1b51eba54eee78..717fdcb979d8578679ab188ae6fe6dbef301133f 100644 --- a/frameworks/security_component/src/sec_comp_base.cpp +++ b/frameworks/security_component/src/sec_comp_base.cpp @@ -40,6 +40,11 @@ const std::string JsonTagConstants::JSON_PADDING_LEFT_TAG = "left"; const std::string JsonTagConstants::JSON_PADDING_TOP_TAG = "top"; const std::string JsonTagConstants::JSON_PADDING_RIGHT_TAG = "right"; const std::string JsonTagConstants::JSON_PADDING_BOTTOM_TAG = "bottom"; +const std::string JsonTagConstants::JSON_BORDER_RADIUS_TAG = "borderRadius"; +const std::string JsonTagConstants::JSON_LEFT_TOP_TAG = "leftTop"; +const std::string JsonTagConstants::JSON_LEFT_BOTTOM_TAG = "leftBottom"; +const std::string JsonTagConstants::JSON_RIGHT_TOP_TAG = "rightTop"; +const std::string JsonTagConstants::JSON_RIGHT_BOTTOM_TAG = "rightBottom"; const std::string JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG = "textIconSpace"; const std::string JsonTagConstants::JSON_RECT_WIDTH_TAG = "width"; const std::string JsonTagConstants::JSON_RECT_HEIGHT_TAG = "height"; @@ -132,6 +137,29 @@ bool SecCompBase::ParsePadding(const nlohmann::json& json, const std::string& ta return true; } +bool SecCompBase::ParseBorderRadius(const nlohmann::json& json, const std::string& tag, BorderRadius& res) +{ + if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { + SC_LOG_ERROR(LABEL, "json: %{public}s tag invalid.", tag.c_str()); + return false; + } + + auto jsonBorderRadius = json.at(tag); + if (!ParseDimension(jsonBorderRadius, JsonTagConstants::JSON_LEFT_TOP_TAG, res.leftTop)) { + return false; + } + if (!ParseDimension(jsonBorderRadius, JsonTagConstants::JSON_RIGHT_TOP_TAG, res.rightTop)) { + return false; + } + if (!ParseDimension(jsonBorderRadius, JsonTagConstants::JSON_LEFT_BOTTOM_TAG, res.leftBottom)) { + return false; + } + if (!ParseDimension(jsonBorderRadius, JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, res.rightBottom)) { + return false; + } + return true; +} + bool SecCompBase::ParseColors(const nlohmann::json& json, const std::string& tag) { if ((json.find(tag) == json.end()) || !json.at(tag).is_object()) { @@ -185,6 +213,11 @@ bool SecCompBase::ParseSize(const nlohmann::json& json, const std::string& tag) return false; } + if (!ParseBorderRadius(jsonSize, JsonTagConstants::JSON_BORDER_RADIUS_TAG, borderRadius_)) { + return false; + } + rect_.borderRadius_ = borderRadius_; + return true; } @@ -368,11 +401,19 @@ void SecCompBase::ToJson(nlohmann::json& jsonRes) const { JsonTagConstants::JSON_PADDING_LEFT_TAG, padding_.left }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, borderRadius_.leftTop }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, borderRadius_.rightTop }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, borderRadius_.leftBottom }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, borderRadius_.rightBottom }, + }; + jsonRes[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, fontSize_ }, { JsonTagConstants::JSON_ICON_SIZE_TAG, iconSize_ }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, textIconSpace_ }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius }, }; jsonRes[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { diff --git a/interfaces/inner_api/security_component/include/sec_comp_base.h b/interfaces/inner_api/security_component/include/sec_comp_base.h index 44b493a78ec5ca1884665ca180a7730d245a220d..9e4840adb666f5a4dc96ad7c88d6175adcd64dad 100644 --- a/interfaces/inner_api/security_component/include/sec_comp_base.h +++ b/interfaces/inner_api/security_component/include/sec_comp_base.h @@ -54,6 +54,11 @@ public: static const std::string JSON_PADDING_TOP_TAG; static const std::string JSON_PADDING_RIGHT_TAG; static const std::string JSON_PADDING_BOTTOM_TAG; + static const std::string JSON_BORDER_RADIUS_TAG; + static const std::string JSON_LEFT_TOP_TAG; + static const std::string JSON_LEFT_BOTTOM_TAG; + static const std::string JSON_RIGHT_TOP_TAG; + static const std::string JSON_RIGHT_BOTTOM_TAG; static const std::string JSON_TEXT_ICON_PADDING_TAG; static const std::string JSON_RECT_WIDTH_TAG; static const std::string JSON_RECT_HEIGHT_TAG; @@ -104,6 +109,7 @@ public: DimensionT fontSize_ = DEFAULT_DIMENSION; DimensionT iconSize_ = DEFAULT_DIMENSION; PaddingSize padding_; + BorderRadius borderRadius_; DimensionT textIconSpace_ = DEFAULT_DIMENSION; // color @@ -145,6 +151,7 @@ private: bool ParseBool(const nlohmann::json& json, const std::string& tag, bool& res); bool ParseString(const nlohmann::json& json, const std::string& tag, std::string& res); bool ParsePadding(const nlohmann::json& json, const std::string& tag, PaddingSize& res); + bool ParseBorderRadius(const nlohmann::json& json, const std::string& tag, BorderRadius& res); bool ParseColors(const nlohmann::json& json, const std::string& tag); bool ParseBorders(const nlohmann::json& json, const std::string& tag); bool ParseSize(const nlohmann::json& json, const std::string& tag); diff --git a/interfaces/inner_api/security_component/include/sec_comp_info.h b/interfaces/inner_api/security_component/include/sec_comp_info.h index 665b47fd7cc63b8367ac761bd43060253e1423bb..1cb8d68df3c13e0dc6b1385d2a1f298304c6a23f 100644 --- a/interfaces/inner_api/security_component/include/sec_comp_info.h +++ b/interfaces/inner_api/security_component/include/sec_comp_info.h @@ -44,6 +44,13 @@ struct PaddingSize { DimensionT left = DEFAULT_DIMENSION; }; +struct BorderRadius { + DimensionT leftTop = DEFAULT_DIMENSION; + DimensionT rightTop = DEFAULT_DIMENSION; + DimensionT leftBottom = DEFAULT_DIMENSION; + DimensionT rightBottom = DEFAULT_DIMENSION; +}; + enum SecCompType { UNKNOWN_SC_TYPE = 0, LOCATION_COMPONENT, @@ -118,6 +125,7 @@ public: DimensionT y_ = 0.0; DimensionT width_ = 0.0; DimensionT height_ = 0.0; + BorderRadius borderRadius_; }; struct ExtraInfo { diff --git a/services/security_component_service/sa/sa_main/window_info_helper.cpp b/services/security_component_service/sa/sa_main/window_info_helper.cpp index fd4e9021b7daff06fe33c0e9d8ea0dd572c21b30..e0864ad1e6debd50f7bfd594de4fe3e93df7ec93 100644 --- a/services/security_component_service/sa/sa_main/window_info_helper.cpp +++ b/services/security_component_service/sa/sa_main/window_info_helper.cpp @@ -25,6 +25,12 @@ namespace { constexpr OHOS::HiviewDFX::HiLogLabel LABEL = {LOG_CORE, SECURITY_DOMAIN_SECURITY_COMPONENT, "WindowInfoHelper"}; constexpr int32_t INVALID_WINDOW_LAYER = -1; constexpr uint32_t UI_EXTENSION_MASK = 0x40000000; +const int NUMBER_TWO = 2; +} + +static double GetDistance(DimensionT x1, DimensionT y1, DimensionT x2, DimensionT y2) +{ + return sqrt(pow(x1 - x2, NUMBER_TWO) + pow(y1 -y2, NUMBER_TWO)); } float WindowInfoHelper::GetWindowScale(int32_t windowId) @@ -58,6 +64,33 @@ static bool IsRectInWindRect(const Rosen::Rect& windRect, const SecCompRect& sec return false; } + if ((GreatOrEqual(windRect.posX_, secRect.x_ + secRect.width_ - secRect.borderRadius_.rightBottom) && + GreatOrEqual(windRect.posY_, secRect.y_ + secRect.height_ - secRect.borderRadius_.rightBottom))) { + auto distance = GetDistance(secRect.x_ + secRect.width_ - secRect.borderRadius_.rightBottom, + secRect.y_ + secRect.height_ - secRect.borderRadius_.rightBottom, windRect.posX_, windRect.posY_); + return !GreatNotEqual(distance, secRect.borderRadius_.rightBottom - 1.0); + } + if ((GreatOrEqual(secRect.x_ + secRect.borderRadius_.leftBottom, windRect.posX_ + windRect.width_) && + GreatOrEqual(windRect.posY_, secRect.y_ + secRect.height_ - secRect.borderRadius_.leftBottom))) { + auto distance = GetDistance(secRect.x_ + secRect.borderRadius_.leftBottom, + secRect.y_ + secRect.height_ - secRect.borderRadius_.leftBottom, windRect.posX_ + windRect.width_, + windRect.posY_); + return !GreatNotEqual(distance, secRect.borderRadius_.leftBottom - 1.0); + } + if ((GreatOrEqual(windRect.posX_, secRect.x_ + secRect.width_ - secRect.borderRadius_.rightTop) && + GreatOrEqual(secRect.y_ + secRect.borderRadius_.rightTop, windRect.posY_ + windRect.height_))) { + auto distance = GetDistance(secRect.x_ + secRect.width_ - secRect.borderRadius_.rightTop, + secRect.y_ + secRect.borderRadius_.rightTop, windRect.posX_, windRect.posY_ + windRect.height_); + return !GreatNotEqual(distance, secRect.borderRadius_.rightTop - 1.0); + } + if ((GreatOrEqual(secRect.x_ + secRect.borderRadius_.leftTop, windRect.posX_ + windRect.width_) && + GreatOrEqual(secRect.y_ + secRect.borderRadius_.leftTop, windRect.posY_ + windRect.height_))) { + auto distance = GetDistance(secRect.x_ + secRect.borderRadius_.leftTop, + secRect.y_ + secRect.borderRadius_.leftTop, windRect.posX_ + windRect.width_, + windRect.posY_ + windRect.height_); + return !GreatNotEqual(distance, secRect.borderRadius_.leftTop - 1.0); + } + return true; } diff --git a/services/security_component_service/sa/test/unittest/src/service_test_common.cpp b/services/security_component_service/sa/test/unittest/src/service_test_common.cpp index 75db0fce98012b4220dc9e09c4ab0862def7688f..63def4467dd603416ee50142b4ca80998d85e184 100644 --- a/services/security_component_service/sa/test/unittest/src/service_test_common.cpp +++ b/services/security_component_service/sa/test/unittest/src/service_test_common.cpp @@ -40,11 +40,19 @@ void ServiceTestCommon::BuildLocationComponentJson(nlohmann::json& jsonComponent { JsonTagConstants::JSON_PADDING_LEFT_TAG, ServiceTestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { @@ -98,11 +106,19 @@ void ServiceTestCommon::BuildSaveComponentJson(nlohmann::json& jsonComponent) { JsonTagConstants::JSON_PADDING_LEFT_TAG, ServiceTestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { @@ -156,11 +172,19 @@ void ServiceTestCommon::BuildPasteComponentJson(nlohmann::json& jsonComponent) { JsonTagConstants::JSON_PADDING_LEFT_TAG, ServiceTestCommon::TEST_DIMENSION }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, TEST_DIMENSION }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, TEST_DIMENSION }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_ICON_SIZE_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, ServiceTestCommon::TEST_SIZE }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { diff --git a/test/fuzztest/security_component/common/fuzz_common.cpp b/test/fuzztest/security_component/common/fuzz_common.cpp index 741833f7dc91a2b0450c24dd685be0cc9b30ab92..809f548072e25d8f53ee287aa8445a0a0a410cab 100644 --- a/test/fuzztest/security_component/common/fuzz_common.cpp +++ b/test/fuzztest/security_component/common/fuzz_common.cpp @@ -79,7 +79,8 @@ std::string CompoRandomGenerator::ConstructLocationJson() SecCompRect window; PaddingSize padding; SecCompRect buttonRect; - ConstructWindowJson(jsonComponent, window, padding, buttonRect); + BorderRadius borderRadius; + ConstructWindowJson(jsonComponent, window, padding, borderRadius, buttonRect); jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_COLOR_TAG, GetData() }, @@ -123,7 +124,8 @@ std::string CompoRandomGenerator::ConstructSaveJson() SecCompRect window; PaddingSize padding; SecCompRect buttonRect; - ConstructWindowJson(jsonComponent, window, padding, buttonRect); + BorderRadius borderRadius; + ConstructWindowJson(jsonComponent, window, padding, borderRadius, buttonRect); jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_COLOR_TAG, GetData() }, @@ -166,7 +168,8 @@ std::string CompoRandomGenerator::ConstructPasteJson() SecCompRect window; PaddingSize padding; SecCompRect buttonRect; - ConstructWindowJson(jsonComponent, window, padding, buttonRect); + BorderRadius borderRadius; + ConstructWindowJson(jsonComponent, window, padding, borderRadius, buttonRect); jsonComponent[JsonTagConstants::JSON_COLORS_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_COLOR_TAG, GetData() }, @@ -243,8 +246,8 @@ void CompoRandomGenerator::ConstructButtonRect( padding.right = window.width_ - buttonRect.width_ - left; } -void CompoRandomGenerator::ConstructWindowJson( - nlohmann::json &jsonComponent, SecCompRect &window, PaddingSize &padding, SecCompRect &buttonRect) +void CompoRandomGenerator::ConstructWindowJson(nlohmann::json &jsonComponent, SecCompRect &window, + PaddingSize &padding, BorderRadius &borderRadius, SecCompRect &buttonRect) { ConstructButtonRect(window, padding, buttonRect); jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { @@ -266,11 +269,19 @@ void CompoRandomGenerator::ConstructWindowJson( { JsonTagConstants::JSON_PADDING_LEFT_TAG, padding.left }, }; + nlohmann::json jsonBorderRadius = nlohmann::json { + { JsonTagConstants::JSON_LEFT_TOP_TAG, borderRadius.leftTop }, + { JsonTagConstants::JSON_RIGHT_TOP_TAG, borderRadius.rightTop }, + { JsonTagConstants::JSON_LEFT_BOTTOM_TAG, borderRadius.leftBottom }, + { JsonTagConstants::JSON_RIGHT_BOTTOM_TAG, borderRadius.rightBottom }, + }; + jsonComponent[JsonTagConstants::JSON_SIZE_TAG] = nlohmann::json { { JsonTagConstants::JSON_FONT_SIZE_TAG, std::fabs(GetData()) }, { JsonTagConstants::JSON_ICON_SIZE_TAG, std::fabs(GetData()) }, { JsonTagConstants::JSON_TEXT_ICON_PADDING_TAG, std::fabs(GetData()) }, { JsonTagConstants::JSON_PADDING_SIZE_TAG, jsonPadding }, + { JsonTagConstants::JSON_BORDER_RADIUS_TAG, jsonBorderRadius}, }; } } diff --git a/test/fuzztest/security_component/common/fuzz_common.h b/test/fuzztest/security_component/common/fuzz_common.h index 50681d9d900693fe9e6cf42e7ca753f4663bbd34..72bdb6c5c9f2d950a9cfadbb3fb2edfb55e8f803 100644 --- a/test/fuzztest/security_component/common/fuzz_common.h +++ b/test/fuzztest/security_component/common/fuzz_common.h @@ -54,7 +54,7 @@ private: void ConstructButtonRect( SecCompRect &window, PaddingSize &padding, SecCompRect &buttonRect); void ConstructWindowJson(nlohmann::json &jsonComponent, - SecCompRect &window, PaddingSize &padding, SecCompRect &buttonRect); + SecCompRect &window, PaddingSize &padding, BorderRadius &borderRadius, SecCompRect &buttonRect); const uint8_t *data_; const size_t dataLenth_; @@ -63,4 +63,4 @@ private: } } } -#endif // SECURITY_COMPONENT_MANAGER_FUZZ_COMMON_H \ No newline at end of file +#endif // SECURITY_COMPONENT_MANAGER_FUZZ_COMMON_H