196279301Sopenharmony_ci# Copyright (c) 2022-2023 Huawei Device Co., Ltd. 296279301Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 396279301Sopenharmony_ci# you may not use this file except in compliance with the License. 496279301Sopenharmony_ci# You may obtain a copy of the License at 596279301Sopenharmony_ci# 696279301Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 796279301Sopenharmony_ci# 896279301Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 996279301Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 1096279301Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1196279301Sopenharmony_ci# See the License for the specific language governing permissions and 1296279301Sopenharmony_ci# limitations under the License. 1396279301Sopenharmony_ci 1496279301Sopenharmony_ci#####################hydra-fuzz################### 1596279301Sopenharmony_ciimport("//base/notification/distributed_notification_service/notification.gni") 1696279301Sopenharmony_ciimport("//build/config/features.gni") 1796279301Sopenharmony_ciimport("//build/test.gni") 1896279301Sopenharmony_ci 1996279301Sopenharmony_ci##############################fuzztest########################################## 2096279301Sopenharmony_ciohos_fuzztest("AnsSubscriberStubFuzzTest") { 2196279301Sopenharmony_ci module_out_path = service_fuzz_test_path 2296279301Sopenharmony_ci fuzz_config_file = "${component_path}/test/fuzztest/anssubscriberstub_fuzzer" 2396279301Sopenharmony_ci 2496279301Sopenharmony_ci include_dirs = [ "${component_path}/test/fuzztest/fuzz_common_base" ] 2596279301Sopenharmony_ci cflags = [ 2696279301Sopenharmony_ci "-g", 2796279301Sopenharmony_ci "-O0", 2896279301Sopenharmony_ci "-Wno-unused-variable", 2996279301Sopenharmony_ci "-fno-omit-frame-pointer", 3096279301Sopenharmony_ci ] 3196279301Sopenharmony_ci sources = [ "anssubscriberstub_fuzzer.cpp" ] 3296279301Sopenharmony_ci 3396279301Sopenharmony_ci deps = [ 3496279301Sopenharmony_ci "${component_path}/test/fuzztest/fuzz_common_base:fuzz_common_base", 3596279301Sopenharmony_ci "${frameworks_module_ans_path}:ans_innerkits", 3696279301Sopenharmony_ci ] 3796279301Sopenharmony_ci 3896279301Sopenharmony_ci external_deps = [ 3996279301Sopenharmony_ci "ability_base:want", 4096279301Sopenharmony_ci "ability_base:zuri", 4196279301Sopenharmony_ci "c_utils:utils", 4296279301Sopenharmony_ci "hilog:libhilog", 4396279301Sopenharmony_ci "image_framework:image_native", 4496279301Sopenharmony_ci "ipc:ipc_single", 4596279301Sopenharmony_ci "relational_store:native_rdb", 4696279301Sopenharmony_ci ] 4796279301Sopenharmony_ci} 4896279301Sopenharmony_ci 4996279301Sopenharmony_ci############################################################################### 5096279301Sopenharmony_cigroup("fuzztest") { 5196279301Sopenharmony_ci testonly = true 5296279301Sopenharmony_ci deps = [ ":AnsSubscriberStubFuzzTest" ] 5396279301Sopenharmony_ci} 5496279301Sopenharmony_ci############################################################################### 55