From 8f187b21d879909c8c4097e1946122118d34e882 Mon Sep 17 00:00:00 2001 From: shufewhx Date: Mon, 17 Apr 2023 12:04:20 +0000 Subject: [PATCH] add implement of virutal func for IRemoteObject Signed-off-by: shufewhx --- frameworks/core/test/unittest/mock/mock_i_remote_object.h | 2 ++ .../notificationfuzztest/include/notificationgetparam.h | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/frameworks/core/test/unittest/mock/mock_i_remote_object.h b/frameworks/core/test/unittest/mock/mock_i_remote_object.h index 769c32e8d..2615a95bf 100644 --- a/frameworks/core/test/unittest/mock/mock_i_remote_object.h +++ b/frameworks/core/test/unittest/mock/mock_i_remote_object.h @@ -76,6 +76,8 @@ public: std::u16string descriptor = std::u16string(); return descriptor; } + + void WaitForInit() override {}; }; } // namespace Notification } // namespace OHOS diff --git a/test/resource/notificationfuzztest/include/notificationgetparam.h b/test/resource/notificationfuzztest/include/notificationgetparam.h index 19d820c50..001c627f2 100644 --- a/test/resource/notificationfuzztest/include/notificationgetparam.h +++ b/test/resource/notificationfuzztest/include/notificationgetparam.h @@ -260,6 +260,13 @@ public: std::u16string descriptor = std::u16string(); return descriptor; } + + /** + * @brief Override WaitForInit + * + * @return void + */ + void WaitForInit() override {}; }; class TestIBundleStatusCallback : public OHOS::AppExecFwk::IBundleStatusCallback { -- Gitee