mirror of
https://gitee.com/openharmony/ability_dmsfwk
synced 2024-11-23 06:20:07 +00:00
add fuzz
Signed-off-by: 师皓杰 <shihaojie10@huawei.com>
This commit is contained in:
parent
92786e5f70
commit
b880760ab0
@ -17,6 +17,7 @@
|
||||
|
||||
#include "dms_free_install_callback.h"
|
||||
#include "distributed_sched_interface.h"
|
||||
#include "mock_fuzz_util.h"
|
||||
#include "parcel_helper.h"
|
||||
|
||||
namespace OHOS {
|
||||
@ -29,6 +30,7 @@ bool OnInstallFinishedInnerFuzzTest(const uint8_t* data, size_t size)
|
||||
if ((data == nullptr) || (size < sizeof(int32_t))) {
|
||||
return false;
|
||||
}
|
||||
FuzzUtil::MockPermission();
|
||||
int64_t taskId = 0;
|
||||
IDistributedSched::FreeInstallInfo info;
|
||||
std::shared_ptr<DmsFreeInstallCallback> freeInstall_ =
|
||||
|
Loading…
Reference in New Issue
Block a user