1c2b37d2cSopenharmony_ci# Copyright (c) 2022 Huawei Device Co., Ltd.
2c2b37d2cSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
3c2b37d2cSopenharmony_ci# you may not use this file except in compliance with the License.
4c2b37d2cSopenharmony_ci# You may obtain a copy of the License at
5c2b37d2cSopenharmony_ci#
6c2b37d2cSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
7c2b37d2cSopenharmony_ci#
8c2b37d2cSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
9c2b37d2cSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
10c2b37d2cSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11c2b37d2cSopenharmony_ci# See the License for the specific language governing permissions and
12c2b37d2cSopenharmony_ci# limitations under the License.
13c2b37d2cSopenharmony_ci
14c2b37d2cSopenharmony_ciimport("../../../../os_account.gni")
15c2b37d2cSopenharmony_ci
16c2b37d2cSopenharmony_ci#####################hydra-fuzz###################
17c2b37d2cSopenharmony_ciimport("//build/config/features.gni")
18c2b37d2cSopenharmony_ciimport("//build/test.gni")
19c2b37d2cSopenharmony_ci
20c2b37d2cSopenharmony_ci##############################fuzztest##########################################
21c2b37d2cSopenharmony_ciohos_fuzztest("SetSpecificOsAccountConstraintsFuzzTest") {
22c2b37d2cSopenharmony_ci  module_out_path = fuzz_output_path
23c2b37d2cSopenharmony_ci  fuzz_config_file = "${os_account_path}/test/fuzztest/osaccount/setspecificosaccountconstraints_fuzzer"
24c2b37d2cSopenharmony_ci  include_dirs = [ "${os_account_path}/test/fuzztest/osaccount/common" ]
25c2b37d2cSopenharmony_ci  cflags = [
26c2b37d2cSopenharmony_ci    "-g",
27c2b37d2cSopenharmony_ci    "-O0",
28c2b37d2cSopenharmony_ci    "-Wno-unused-variable",
29c2b37d2cSopenharmony_ci    "-fno-omit-frame-pointer",
30c2b37d2cSopenharmony_ci  ]
31c2b37d2cSopenharmony_ci  sources = [ "setspecificosaccountconstraints_fuzzer.cpp" ]
32c2b37d2cSopenharmony_ci
33c2b37d2cSopenharmony_ci  deps = [
34c2b37d2cSopenharmony_ci    "${common_path}:libaccount_common",
35c2b37d2cSopenharmony_ci    "${os_account_innerkits_native_path}:os_account_innerkits",
36c2b37d2cSopenharmony_ci  ]
37c2b37d2cSopenharmony_ci
38c2b37d2cSopenharmony_ci  external_deps = [
39c2b37d2cSopenharmony_ci    "c_utils:utils",
40c2b37d2cSopenharmony_ci    "hilog:libhilog",
41c2b37d2cSopenharmony_ci  ]
42c2b37d2cSopenharmony_ci
43c2b37d2cSopenharmony_ci  defines = [
44c2b37d2cSopenharmony_ci    "ACCOUNT_LOG_TAG = \"OsAccountFuzzTest\"",
45c2b37d2cSopenharmony_ci    "LOG_DOMAIN = 0xD001B00",
46c2b37d2cSopenharmony_ci  ]
47c2b37d2cSopenharmony_ci}
48