1e0857b17Sopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2e0857b17Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3e0857b17Sopenharmony_ci# you may not use this file except in compliance with the License.
4e0857b17Sopenharmony_ci# You may obtain a copy of the License at
5e0857b17Sopenharmony_ci#
6e0857b17Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7e0857b17Sopenharmony_ci#
8e0857b17Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9e0857b17Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10e0857b17Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11e0857b17Sopenharmony_ci# See the License for the specific language governing permissions and
12e0857b17Sopenharmony_ci# limitations under the License.
13e0857b17Sopenharmony_ci
14e0857b17Sopenharmony_ci#####################hydra-fuzz###################
15e0857b17Sopenharmony_ciimport("//build/test.gni")
16e0857b17Sopenharmony_ciimport("//foundation/ability/ability_base/ability_base.gni")
17e0857b17Sopenharmony_ci
18e0857b17Sopenharmony_ci##############################fuzztest##########################################
19e0857b17Sopenharmony_ciohos_fuzztest("ArrayWrapperThirdFuzzTest") {
20e0857b17Sopenharmony_ci  module_out_path = base_fuzz_output_path
21e0857b17Sopenharmony_ci
22e0857b17Sopenharmony_ci  fuzz_config_file =
23e0857b17Sopenharmony_ci      "${ability_base_path}/test/fuzztest/arraywrapperthird_fuzzer"
24e0857b17Sopenharmony_ci  include_dirs = []
25e0857b17Sopenharmony_ci  cflags = [
26e0857b17Sopenharmony_ci    "-g",
27e0857b17Sopenharmony_ci    "-O0",
28e0857b17Sopenharmony_ci    "-Wno-unused-variable",
29e0857b17Sopenharmony_ci    "-fno-omit-frame-pointer",
30e0857b17Sopenharmony_ci  ]
31e0857b17Sopenharmony_ci  sources = [ "arraywrapperthird_fuzzer.cpp" ]
32e0857b17Sopenharmony_ci
33e0857b17Sopenharmony_ci  configs = [ "${ability_base_path}:want_config" ]
34e0857b17Sopenharmony_ci
35e0857b17Sopenharmony_ci  deps = [
36e0857b17Sopenharmony_ci    "${ability_base_path}:base",
37e0857b17Sopenharmony_ci    "${ability_base_path}:want",
38e0857b17Sopenharmony_ci    "${ability_base_path}:zuri",
39e0857b17Sopenharmony_ci    "//third_party/jsoncpp:jsoncpp",
40e0857b17Sopenharmony_ci  ]
41e0857b17Sopenharmony_ci
42e0857b17Sopenharmony_ci  external_deps = [
43e0857b17Sopenharmony_ci    "c_utils:utils",
44e0857b17Sopenharmony_ci    "ipc:ipc_core",
45e0857b17Sopenharmony_ci  ]
46e0857b17Sopenharmony_ci}
47e0857b17Sopenharmony_ci
48e0857b17Sopenharmony_ci###############################################################################
49e0857b17Sopenharmony_cigroup("fuzztest") {
50e0857b17Sopenharmony_ci  testonly = true
51e0857b17Sopenharmony_ci  deps = []
52e0857b17Sopenharmony_ci  deps += [
53e0857b17Sopenharmony_ci    # deps file
54e0857b17Sopenharmony_ci    ":ArrayWrapperThirdFuzzTest",
55e0857b17Sopenharmony_ci  ]
56e0857b17Sopenharmony_ci}
57e0857b17Sopenharmony_ci###############################################################################
58