1ea497e4dSopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd.
2ea497e4dSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3ea497e4dSopenharmony_ci# you may not use this file except in compliance with the License.
4ea497e4dSopenharmony_ci# You may obtain a copy of the License at
5ea497e4dSopenharmony_ci#
6ea497e4dSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7ea497e4dSopenharmony_ci#
8ea497e4dSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9ea497e4dSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10ea497e4dSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11ea497e4dSopenharmony_ci# See the License for the specific language governing permissions and
12ea497e4dSopenharmony_ci# limitations under the License.
13ea497e4dSopenharmony_ci
14ea497e4dSopenharmony_ciimport("//build/config/features.gni")
15ea497e4dSopenharmony_ciimport("//build/test.gni")
16ea497e4dSopenharmony_ci
17ea497e4dSopenharmony_ciohos_fuzztest("FaceAuthAllInOneExecutorHdiFuzzTest") {
18ea497e4dSopenharmony_ci  branch_protector_ret = "pac_ret"
19ea497e4dSopenharmony_ci  module_out_path = "face_auth/face_auth"
20ea497e4dSopenharmony_ci  fuzz_config_file = "."
21ea497e4dSopenharmony_ci
22ea497e4dSopenharmony_ci  cflags = [
23ea497e4dSopenharmony_ci    "-g",
24ea497e4dSopenharmony_ci    "-O0",
25ea497e4dSopenharmony_ci    "-Wno-unused-variable",
26ea497e4dSopenharmony_ci    "-fno-omit-frame-pointer",
27ea497e4dSopenharmony_ci  ]
28ea497e4dSopenharmony_ci  include_dirs = [ "../iamfuzz" ]
29ea497e4dSopenharmony_ci
30ea497e4dSopenharmony_ci  sources = [
31ea497e4dSopenharmony_ci    "../iamfuzz/iam_fuzz_test.cpp",
32ea497e4dSopenharmony_ci    "face_auth_all_in_one_executor_hdi_fuzzer.cpp",
33ea497e4dSopenharmony_ci  ]
34ea497e4dSopenharmony_ci
35ea497e4dSopenharmony_ci  deps = [ "../common_fuzzer:faceauthservice_source_set_fuzzer" ]
36ea497e4dSopenharmony_ci
37ea497e4dSopenharmony_ci  external_deps = [
38ea497e4dSopenharmony_ci    "drivers_interface_camera:libbuffer_producer_sequenceable_1.0",
39ea497e4dSopenharmony_ci    "drivers_interface_face_auth:libface_auth_proxy_2.0",
40ea497e4dSopenharmony_ci    "graphic_surface:surface",
41ea497e4dSopenharmony_ci    "hilog:libhilog",
42ea497e4dSopenharmony_ci    "user_auth_framework:userauth_executors",
43ea497e4dSopenharmony_ci  ]
44ea497e4dSopenharmony_ci
45ea497e4dSopenharmony_ci  remove_configs = [ "//build/config/compiler:no_exceptions" ]
46ea497e4dSopenharmony_ci
47ea497e4dSopenharmony_ci  subsystem_name = "useriam"
48ea497e4dSopenharmony_ci  part_name = "face_auth"
49ea497e4dSopenharmony_ci}
50