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 769c32e8dd0f8c3fd1117a6c9371d74139f1c3ee..2615a95bffba8db69058977f2eac7bb35c69fa08 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 19d820c50ed581bbda9e38184202f1bda9851e0f..001c627f24934263c3d90461874395d39516571a 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 {