diff --git a/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp b/test/fuzztest/notificationhelper_fuzzer/notificationhelper_fuzzer.cpp index 58ed067768098f62b1fa835585e114c75c43435e..9431fb28a9a369773f555ee6d913b3fb39a00f56 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);