From 99b748180041e25666fd0b0068fd94ff5dfb745f Mon Sep 17 00:00:00 2001 From: wangdi Date: Tue, 19 Aug 2025 16:53:13 +0800 Subject: [PATCH] fix notificaitonhelper fuzz Signed-off-by: wangdi --- .../notificationhelper_fuzzer.cpp | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp b/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp index 58ed06776..9431fb28a 100644 --- a/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp +++ b/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp @@ -62,18 +62,6 @@ public: {} }; -class FuzzTestLocalLiveViewSubscriber : public NotificationLocalLiveViewSubscriber { -public: - void OnConnected() override - {} - void OnDisconnected() override - {} - void OnDied() override - {} - void OnResponse(int32_t notificationId, sptr buttonOption) override - {} -}; - bool TestPublishAndRemove(FuzzedDataProvider* fdp, NotificationHelper& notificationHelper) { std::string stringData = fdp->ConsumeRandomLengthString(); @@ -153,9 +141,6 @@ public: notificationHelper.SubscribeNotificationSelf(fuzzNotificationSub); notificationHelper.SubscribeNotificationSelf(fuzzNotificationSubSptr); - FuzzTestLocalLiveViewSubscriber fuzzLocalLiveViewSubscriber; - notificationHelper.SubscribeLocalLiveViewNotification(fuzzLocalLiveViewSubscriber, fdp->ConsumeBool()); - sptr fuzzNotificationSubInfoSptr = ObjectBuilder::Build(fdp); notificationHelper.SubscribeNotification(fuzzNotificationSubSptr, fuzzNotificationSubInfoSptr); -- Gitee