diff --git a/interfaces/kits/js/BUILD.gn b/interfaces/kits/js/BUILD.gn index 8e8926cae4d3111c27868e2d3e8bb46304b91fba..e787b85ef2706c0a14c03b5eb3666dc943f456e6 100644 --- a/interfaces/kits/js/BUILD.gn +++ b/interfaces/kits/js/BUILD.gn @@ -11,26 +11,32 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("//build/ohos.gni") +#####################hydra-fuzz################### +import("//build/config/features.gni") +import("//build/test.gni") -ohos_shared_library("remotefileshare") { - include_dirs = [ - "//foundation/arkui/napi/interfaces/kits", - "//third_party/bounds_checking_function/include", +##############################fuzztest########################################## +ohos_fuzztest("RemoteFileShareFuzzTest") { + module_out_path = "filemanagement/app_file_service" + fuzz_config_file = "//foundation/filemanagement/app_file_service/test/fuzztest/remotefileshare_fuzzer" + include_dirs = [] + cflags = [ + "-g", + "-O0", + "-Wno-unused-variable", + "-fno-omit-frame-pointer", ] - - sources = [ - "remote_file_share/remotefileshare_n_exporter.cpp", - "remote_file_share/remotefileshare_napi.cpp", - ] - + sources = [ "remotefileshare_fuzzer.cpp" ] deps = [ "//foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn", - "//third_party/bounds_checking_function:libsec_static", + "//third_party/bounds_checking_function:libsec_shared", ] + external_deps = [ "hiviewdfx_hilog_native:libhilog" ] + defines = [ + "LOG_TAG=\"app_file_service\"", + "LOG_DOMAIN=0xD200000", + ] +} - relative_install_dir = "module" +############################################################################### - part_name = "app_file_service" - subsystem_name = "filemanagement" -} diff --git a/test/fuzztest/remotefileshare_fuzzer/BUILD.gn b/test/fuzztest/remotefileshare_fuzzer/BUILD.gn index 7ef62274cb66ac9b496984241d67cbc9f6d22238..e787b85ef2706c0a14c03b5eb3666dc943f456e6 100644 --- a/test/fuzztest/remotefileshare_fuzzer/BUILD.gn +++ b/test/fuzztest/remotefileshare_fuzzer/BUILD.gn @@ -29,7 +29,7 @@ ohos_fuzztest("RemoteFileShareFuzzTest") { sources = [ "remotefileshare_fuzzer.cpp" ] deps = [ "//foundation/distributeddatamgr/distributedfile/utils/filemgmt_libn", - "//utils/native/base:utilsecurec", + "//third_party/bounds_checking_function:libsec_shared", ] external_deps = [ "hiviewdfx_hilog_native:libhilog" ] defines = [