# Copyright (c) 2023-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. import("//base/hiviewdfx/hiview/hiview.gni") import("//build/config/features.gni") import("//build/test.gni") ohos_fuzztest("FaultloggerServiceFuzzTest") { module_out_path = "hiview/hiview/faultlogger" fuzz_config_file = "$hiview_faultlogger/test/common/fuzztest/faultloggerservice_fuzzer" include_dirs = [ ".", "../common/include", "$hiview_core", "$hiview_faultlogger/service/", "$hiview_faultlogger/service/sanitizer_collector/", "$hiview_faultlogger/service/idl/include/", ] sources = [ "faultlogger_service_fuzzer.cpp" ] deps = [ "$hiview_base:hiviewbase_static_lib_for_tdd", "$hiview_base/event_publish:hiview_event_publish", "$hiview_core:hiview_core", "$hiview_framework/native/unified_collection:ucollection_source", "$hiview_plugin/faultlogger/common:faultlogger_common", "$hiview_plugin/faultlogger/common:log_analyzer", "$hiview_plugin/faultlogger/service:faultlogger_service_ability", "$hiview_plugin/faultlogger/service:faultlogger_service_fuzz_src", "$hiview_plugin/faultlogger/service/idl:faultlogger_service_ohos_common", ] external_deps = [ "ability_base:want", "access_token:libaccesstoken_sdk", "bundle_framework:appexecfwk_base", "bundle_framework:appexecfwk_core", "c_utils:utils", "ffrt:libffrt", "hilog:libhilog", "init:libbegetutil", "ipc:ipc_single", ] resource_config_file = "$hiview_faultlogger/test/common/resource/ohos_test.xml" } group("fuzztest") { testonly = true deps = [ ":FaultloggerServiceFuzzTest" ] }