diff --git a/test/fuzztest/fileaccessextconnection_fuzzer/fileaccessextconnection_fuzzer.cpp b/test/fuzztest/fileaccessextconnection_fuzzer/fileaccessextconnection_fuzzer.cpp index bf2a97c000eab952a0fbbd9ba800ebce43d8724f..d7a29ad09256d2430070bea8d3be22d147eca8ed 100644 --- a/test/fuzztest/fileaccessextconnection_fuzzer/fileaccessextconnection_fuzzer.cpp +++ b/test/fuzztest/fileaccessextconnection_fuzzer/fileaccessextconnection_fuzzer.cpp @@ -52,3 +52,19 @@ bool GetFileExtProxyFuzzTest(shared_ptr conn) } } // namespace OHOS + +/* Fuzzer entry point */ +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) +{ + auto conn = std::make_shared(); + if (conn == nullptr) { + return 0; + } + + OHOS::OnAbilityConnectDoneFuzzTest(conn); + OHOS::OnAbilityDisconnectDoneFuzzTest(conn); + OHOS::IsExtAbilityConnectedFuzzTest(conn); + OHOS::GetFileExtProxyFuzzTest(conn); + + return 0; +}