1# Copyright (c) Huawei Technologies Co., Ltd. 2021. All rights reserved. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14#####################hydra-fuzz################### 15import("//build/test.gni") 16import("../../../../../base/config.gni") 17 18##############################fuzztest########################################## 19ohos_fuzztest("ProfilerFetchDataFuzzTest") { 20 module_out_path = hiprofiler_fuzz_output_path 21 fuzz_config_file = "${OHOS_PROFILER_DIR}/device/services/profiler_service/test/fuzztest/profilerfetchdata_fuzzer" 22 include_dirs = [ 23 "../../../include", 24 "../../../../plugin_service/include", 25 "${OHOS_PROFILER_DIR}/interfaces/kits", 26 ] 27 cflags = [ 28 "-g", 29 "-O0", 30 "-Wno-unused-variable", 31 "-fno-omit-frame-pointer", 32 "-Dprivate=public", 33 ] 34 sources = [ "profilerfetchdata_fuzzer.cpp" ] 35 deps = [ 36 "${OHOS_PROFILER_DIR}/protos/services:proto_services_cpp", 37 "../../..:profiler_service", 38 "../../../../plugin_service:hiprofiler_plugin_service", 39 ] 40 external_deps = [ 41 "abseil-cpp:absl_sync", 42 "bounds_checking_function:libsec_shared", 43 "c_utils:utils", 44 "grpc:grpc", 45 "grpc:grpcxx", 46 "hilog:libhilog_base", 47 "openssl:libcrypto_shared", 48 "protobuf:protobuf_lite", 49 ] 50} 51 52############################################################################### 53group("fuzztest") { 54 testonly = true 55 deps = [] 56 deps += [ 57 # deps file 58 ":ProfilerFetchDataFuzzTest", 59 ] 60} 61############################################################################### 62