11401458bSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
21401458bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
31401458bSopenharmony_ci# you may not use this file except in compliance with the License.
41401458bSopenharmony_ci# You may obtain a copy of the License at
51401458bSopenharmony_ci#
61401458bSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
71401458bSopenharmony_ci#
81401458bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
91401458bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
101401458bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
111401458bSopenharmony_ci# See the License for the specific language governing permissions and
121401458bSopenharmony_ci# limitations under the License.
131401458bSopenharmony_ciimport("//build/config/features.gni")
141401458bSopenharmony_ciimport("//build/test.gni")
151401458bSopenharmony_ci
161401458bSopenharmony_ciohos_fuzztest("HiSysEventManagerFuzzTest") {
171401458bSopenharmony_ci  module_out_path = "hisysevent/hisysevent_fuzz"
181401458bSopenharmony_ci
191401458bSopenharmony_ci  include_dirs = [ "hisyseventmanager_fuzzer.h" ]
201401458bSopenharmony_ci
211401458bSopenharmony_ci  fuzz_config_file = "//base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer"
221401458bSopenharmony_ci
231401458bSopenharmony_ci  cflags = [
241401458bSopenharmony_ci    "-g",
251401458bSopenharmony_ci    "-O0",
261401458bSopenharmony_ci    "-Wno-unused-variable",
271401458bSopenharmony_ci    "-fno-omit-frame-pointer",
281401458bSopenharmony_ci  ]
291401458bSopenharmony_ci
301401458bSopenharmony_ci  sources = [ "hisyseventmanager_fuzzer.cpp" ]
311401458bSopenharmony_ci
321401458bSopenharmony_ci  deps = [ "../../../../interfaces/native/innerkits/hisysevent_manager:hisyseventmanager_static_lib_for_tdd" ]
331401458bSopenharmony_ci
341401458bSopenharmony_ci  external_deps = [ "hilog:libhilog" ]
351401458bSopenharmony_ci}
36