修复格式化问题

Signed-off-by: zhaojian@huawei.com <zhaojian2@huawei.com>
Change-Id: I74758ef837afadc616e799dbcc14d53a33052c5f
This commit is contained in:
zhaojian@huawei.com 2022-11-05 12:01:08 +08:00
parent a76fd63a79
commit 432b7e379f
3 changed files with 8 additions and 7 deletions

View File

@ -19,8 +19,8 @@ group("fuzztest") {
if (!is_asan) {
deps = [
"imageloader_fuzzer:ImageLoaderFuzzTest",
"uiservice_fuzzer:UiServiceFuzzTest",
"res_fuzzer:ResFuzzTest",
"uiservice_fuzzer:UiServiceFuzzTest",
"util_fuzzer:UtilFuzzTest",
]
}

View File

@ -33,6 +33,8 @@ ohos_fuzztest("UtilFuzzTest") {
"$ace_root/frameworks/base/json/json_util.cpp",
"$ace_root/frameworks/base/utils/resource_configuration.cpp",
"//third_party/cJSON/cJSON.c",
"$ace_root/frameworks/base/log/dump_log.cpp",
"$ace_root/adapter/ohos/osal/log_wrapper.cpp"
]
include_dirs = [
"$ace_root/frameworks/base/utils",
@ -43,8 +45,7 @@ ohos_fuzztest("UtilFuzzTest") {
]
deps = [
"//foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager:ui_service_mgr",
"//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy",
#"$ace_root/adapter/ohos/osal:ace_osal_ohos",
"//foundation/window/window_manager/utils:libwmutil",
"//foundation/window/window_manager/wm:libwm",
"//third_party/icu/icu4c:shared_icui18n",

View File

@ -25,10 +25,10 @@ namespace OHOS {
bool DoSomethingInterestingWithMyAPI(const uint8_t* data, size_t size)
{
bool result = false;
// ResourceConfiguration r;
// uint32_t update = 0;
// std::string s;
// r.UpdateFromJsonString(s,update);
ResourceConfiguration r;
uint32_t update = 0;
std::string s;
r.UpdateFromJsonString(s,update);
return result;
}
}