Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
师皓杰 2024-07-23 03:39:45 +00:00 committed by Gitee
parent 102c862d8c
commit 92786e5f70
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 23 additions and 2 deletions

View File

@ -26,6 +26,7 @@ ohos_fuzztest("BundleManagerCallBackStubFuzzTest") {
"${dms_path}/services/dtbschedmgr/include/", "${dms_path}/services/dtbschedmgr/include/",
"${dms_path}/services/dtbschedmgr/include/collaborate/", "${dms_path}/services/dtbschedmgr/include/collaborate/",
"${dms_path}/test/fuzztest/bundlemanagercallbackstub_fuzzer", "${dms_path}/test/fuzztest/bundlemanagercallbackstub_fuzzer",
"${dms_path}/test/fuzztest/util",
] ]
fuzz_config_file = fuzz_config_file =
@ -41,7 +42,10 @@ ohos_fuzztest("BundleManagerCallBackStubFuzzTest") {
"-Dprivate=public", "-Dprivate=public",
] ]
sources = [ "bundlemanagercallbackstub_fuzzer.cpp" ] sources = [
"${dms_path}/test/fuzztest/util/mock_fuzz_util.cpp",
"bundlemanagercallbackstub_fuzzer.cpp",
]
deps = [ "${dms_path}/services/dtbschedmgr:distributedschedsvr" ] deps = [ "${dms_path}/services/dtbschedmgr:distributedschedsvr" ]

View File

@ -23,9 +23,12 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
include_dirs = [ include_dirs = [
"${dms_path}/test/fuzztest/distributedschedstub_fuzzer", "${dms_path}/test/fuzztest/distributedschedstub_fuzzer",
"${dms_path}/services/dtbschedmgr/include/", "${dms_path}/services/dtbschedmgr/include/",
"${dms_path}/services/dtbschedmgr/include/dfx/",
"${dms_path}/interfaces/innerkits/common/include/", "${dms_path}/interfaces/innerkits/common/include/",
"${dms_path}/common/include/",
"${dms_path}/services/dtbschedmgr/include/collaborate/", "${dms_path}/services/dtbschedmgr/include/collaborate/",
"${dms_path}/common/include/", "${dms_path}/common/include/",
"${dms_path}/test/fuzztest/util",
] ]
fuzz_config_file = "${dms_path}/test/fuzztest/distributedschedstub_fuzzer" fuzz_config_file = "${dms_path}/test/fuzztest/distributedschedstub_fuzzer"
@ -41,6 +44,8 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
] ]
sources = [ sources = [
"${dms_path}/services/dtbschedmgr/test/unittest/mock_distributed_sched.cpp",
"${dms_path}/test/fuzztest/util/mock_fuzz_util.cpp",
"distributedschedstub_fuzzer.cpp", "distributedschedstub_fuzzer.cpp",
"fuzz_util.cpp", "fuzz_util.cpp",
] ]
@ -52,6 +57,10 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ] defines += [ "SUPPORT_DISTRIBUTED_MISSION_MANAGER" ]
} }
if (dmsfwk_standard_form_share) {
defines += [ "SUPPORT_DISTRIBUTED_FORM_SHARE" ]
}
external_deps = [ external_deps = [
"ability_base:base", "ability_base:base",
"ability_base:want", "ability_base:want",
@ -86,6 +95,10 @@ ohos_fuzztest("DistributedSchedStubFuzzTest") {
"safwk:system_ability_fwk", "safwk:system_ability_fwk",
"samgr:samgr_proxy", "samgr:samgr_proxy",
] ]
if (dmsfwk_standard_form_share) {
external_deps += [ "form_fwk:form_manager" ]
}
} }
group("fuzztest") { group("fuzztest") {

View File

@ -26,6 +26,7 @@ ohos_fuzztest("DmsFreeInstallCallBackStubFuzzTest") {
"${dms_path}/services/dtbschedmgr/include/", "${dms_path}/services/dtbschedmgr/include/",
"${dms_path}/services/dtbschedmgr/include/collaborate/", "${dms_path}/services/dtbschedmgr/include/collaborate/",
"${dms_path}/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer", "${dms_path}/test/fuzztest/dmsfreeinstallcallbackstub_fuzzer",
"${dms_path}/test/fuzztest/util",
] ]
fuzz_config_file = fuzz_config_file =
@ -41,7 +42,10 @@ ohos_fuzztest("DmsFreeInstallCallBackStubFuzzTest") {
"-Dprivate=public", "-Dprivate=public",
] ]
sources = [ "dmsfreeinstallcallbackstub_fuzzer.cpp" ] sources = [
"${dms_path}/test/fuzztest/util/mock_fuzz_util.cpp",
"dmsfreeinstallcallbackstub_fuzzer.cpp",
]
deps = [ "${dms_path}/services/dtbschedmgr:distributedschedsvr" ] deps = [ "${dms_path}/services/dtbschedmgr:distributedschedsvr" ]