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