# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. #####################hydra-fuzz################### import("//build/config/features.gni") import("//build/ohos.gni") import("//build/test.gni") import("//foundation/ability/ability_runtime/ability_runtime.gni") module_output_path = "ability_runtime/app_context" ##############################fuzztest########################################## ohos_fuzztest("RegisterEnvironmentCallbackFuzzTest") { module_out_path = module_output_path fuzz_config_file = "${ability_runtime_test_path}/fuzztest/registerenvironmentcallback_fuzzer" include_dirs = [ "${ability_runtime_path}/interfaces/kits/native/appkit/ability_runtime/context", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/bundlemgr", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/app_control", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/bundle_resource", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/default_app", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/extend_resource", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/overlay", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/quick_fix", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_core/include/verify", "${bundlefwk_path}/interfaces/inner_api/appexecfwk_base/include", ] cflags = [ "-g", "-O0", "-Wno-unused-variable", "-fno-omit-frame-pointer", ] sources = [ "registerenvironmentcallback_fuzzer.cpp" ] configs = [ "${ability_runtime_innerkits_path}/ability_manager:ability_manager_public_config" ] deps = [ "${ability_runtime_native_path}/appkit:app_context" ] external_deps = [ "ability_base:want", "c_utils:utils", "common_event_service:cesfwk_innerkits", ] } ############################################################################### group("fuzztest") { testonly = true deps = [] deps += [ # deps file ":RegisterEnvironmentCallbackFuzzTest", ] } ###############################################################################