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("CheckOAuthTokenVisibilityFuzzTest") { 22c2b37d2cSopenharmony_ci module_out_path = fuzz_output_path 23c2b37d2cSopenharmony_ci 24c2b37d2cSopenharmony_ci fuzz_config_file = "${os_account_path}/test/fuzztest/appaccount/checkoauthtokenvisibility_fuzzer" 25c2b37d2cSopenharmony_ci include_dirs = [ "${os_account_path}/test/fuzztest/appaccount/common" ] 26c2b37d2cSopenharmony_ci cflags = [ 27c2b37d2cSopenharmony_ci "-g", 28c2b37d2cSopenharmony_ci "-O0", 29c2b37d2cSopenharmony_ci "-Wno-unused-variable", 30c2b37d2cSopenharmony_ci "-fno-omit-frame-pointer", 31c2b37d2cSopenharmony_ci ] 32c2b37d2cSopenharmony_ci sources = [ "checkoauthtokenvisibility_fuzzer.cpp" ] 33c2b37d2cSopenharmony_ci 34c2b37d2cSopenharmony_ci deps = [ 35c2b37d2cSopenharmony_ci "${app_account_innerkits_native_path}:app_account_innerkits", 36c2b37d2cSopenharmony_ci "${common_path}:libaccount_common", 37c2b37d2cSopenharmony_ci ] 38c2b37d2cSopenharmony_ci 39c2b37d2cSopenharmony_ci external_deps = [ 40c2b37d2cSopenharmony_ci "c_utils:utils", 41c2b37d2cSopenharmony_ci "hilog:libhilog", 42c2b37d2cSopenharmony_ci "ipc:ipc_single", 43c2b37d2cSopenharmony_ci ] 44c2b37d2cSopenharmony_ci 45c2b37d2cSopenharmony_ci defines = [ 46c2b37d2cSopenharmony_ci "ACCOUNT_LOG_TAG = \"AppAccountFuzzTest\"", 47c2b37d2cSopenharmony_ci "LOG_DOMAIN = 0xD001B00", 48c2b37d2cSopenharmony_ci ] 49c2b37d2cSopenharmony_ci} 50