1100ae2f9Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2100ae2f9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3100ae2f9Sopenharmony_ci# you may not use this file except in compliance with the License.
4100ae2f9Sopenharmony_ci# You may obtain a copy of the License at
5100ae2f9Sopenharmony_ci#
6100ae2f9Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7100ae2f9Sopenharmony_ci#
8100ae2f9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9100ae2f9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10100ae2f9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11100ae2f9Sopenharmony_ci# See the License for the specific language governing permissions and
12100ae2f9Sopenharmony_ci# limitations under the License.
13100ae2f9Sopenharmony_ci
14100ae2f9Sopenharmony_ci#####################hydra-fuzz###################
15100ae2f9Sopenharmony_ciimport("//base/notification/eventhandler/eventhandler.gni")
16100ae2f9Sopenharmony_ciimport("//build/config/features.gni")
17100ae2f9Sopenharmony_ciimport("//build/test.gni")
18100ae2f9Sopenharmony_ci
19100ae2f9Sopenharmony_ci##############################fuzztest##########################################
20100ae2f9Sopenharmony_ciohos_fuzztest("EventQueueInsertFuzzTest") {
21100ae2f9Sopenharmony_ci  module_out_path = eventhandler_fuzz_test_output_path
22100ae2f9Sopenharmony_ci  fuzz_config_file = "${fuzztest_path}/eventqueueinsert_fuzzer"
23100ae2f9Sopenharmony_ci
24100ae2f9Sopenharmony_ci  include_dirs = []
25100ae2f9Sopenharmony_ci  cflags = [
26100ae2f9Sopenharmony_ci    "-g",
27100ae2f9Sopenharmony_ci    "-O0",
28100ae2f9Sopenharmony_ci    "-Wno-unused-variable",
29100ae2f9Sopenharmony_ci    "-fno-omit-frame-pointer",
30100ae2f9Sopenharmony_ci  ]
31100ae2f9Sopenharmony_ci  sources = [ "eventqueueinsert_fuzzer.cpp" ]
32100ae2f9Sopenharmony_ci
33100ae2f9Sopenharmony_ci  deps = [ "${frameworks_path}/eventhandler:libeventhandler" ]
34100ae2f9Sopenharmony_ci
35100ae2f9Sopenharmony_ci  external_deps = [
36100ae2f9Sopenharmony_ci    "c_utils:utils",
37100ae2f9Sopenharmony_ci    "ipc:ipc_single",
38100ae2f9Sopenharmony_ci  ]
39100ae2f9Sopenharmony_ci}
40100ae2f9Sopenharmony_ci
41100ae2f9Sopenharmony_ci###############################################################################
42100ae2f9Sopenharmony_cigroup("fuzztest") {
43100ae2f9Sopenharmony_ci  testonly = true
44100ae2f9Sopenharmony_ci  deps = []
45100ae2f9Sopenharmony_ci  deps += [ ":EventQueueInsertFuzzTest" ]
46100ae2f9Sopenharmony_ci}
47100ae2f9Sopenharmony_ci###############################################################################
48