revert fuzz test

Signed-off-by: yuyongkang <yuyongkang@h-partners.com>
Change-Id: I88d160aa2d200ff5d843dbccf1bf6058acd7e4e4
This commit is contained in:
yuyongkang 2023-08-23 20:42:09 +08:00
parent d1f1dd1b8a
commit 3d34b294f8

View File

@ -19,7 +19,6 @@
#include <iremote_broker.h> #include <iremote_broker.h>
#include <iservice_registry.h> #include <iservice_registry.h>
#include "ability.h"
#include "ability_context.h" #include "ability_context.h"
#include "ability_context_impl.h" #include "ability_context_impl.h"
#include "js_runtime.h" #include "js_runtime.h"
@ -706,14 +705,6 @@ void CheckWindowImplFunctionsPart9(sptr<WindowImpl> window, const uint8_t* data,
window->UnregisterDisplayMoveListener(displayMoveListener); window->UnregisterDisplayMoveListener(displayMoveListener);
AAFwk::Want want; AAFwk::Want want;
window->OnNewWant(want); window->OnNewWant(want);
size_t startPos = 0;
const std::string contentInfo = "WindowFuzzTest";
NativeEngine* engine = nullptr;
NativeValue* storage = nullptr;
bool isDistributed = false;
startPos += GetObject(isDistributed, data + startPos, size - startPos);
AppExecFwk::Ability ability;
window->SetUIContent(contentInfo, engine, storage, isDistributed, &ability);
} }
void WindowImplFuzzTest(const uint8_t* data, size_t size) void WindowImplFuzzTest(const uint8_t* data, size_t size)