1# Copyright (c) 2023 Huawei Device Co., Ltd. 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##############################hydra-fuzz######################################## 14import("//build/config/features.gni") 15import("//build/test.gni") 16import("//foundation/distributeddatamgr/datamgr_service/datamgr_service.gni") 17 18##############################fuzztest########################################## 19ohos_fuzztest("RdbResultSetStubFuzzTest") { 20 module_out_path = "datamgr_service/datamgr_service" 21 22 include_dirs = [ 23 "${data_service_path}/adapter/include", 24 "${data_service_path}/app/src", 25 "${data_service_path}/framework/include", 26 "${data_service_path}/service/rdb", 27 "${data_service_path}/service/common", 28 ] 29 30 fuzz_config_file = 31 "${data_service_path}/service/test/fuzztest/rdbresultsetstub_fuzzer" 32 33 cflags = [ 34 "-g", 35 "-O0", 36 "-Wno-unused-variable", 37 "-fno-omit-frame-pointer", 38 ] 39 40 sources = [ 41 "${data_service_path}/service/common/value_proxy.cpp", 42 "${data_service_path}/service/rdb/rdb_result_set_impl.cpp", 43 "${data_service_path}/service/rdb/rdb_result_set_stub.cpp", 44 "rdbresultsetstub_fuzzer.cpp", 45 ] 46 47 deps = [ 48 "${data_service_path}/adapter/account:distributeddata_account", 49 "${data_service_path}/adapter/utils:distributeddata_utils", 50 "${data_service_path}/framework:distributeddatasvcfwk", 51 ] 52 53 external_deps = [ 54 "ability_base:want", 55 "ability_base:zuri", 56 "ability_runtime:ability_manager", 57 "ability_runtime:dataobs_manager", 58 "access_token:libaccesstoken_sdk", 59 "access_token:libtokenid_sdk", 60 "c_utils:utils", 61 "device_auth:deviceauth_sdk", 62 "device_manager:devicemanagersdk", 63 "hilog:libhilog", 64 "hisysevent:libhisysevent", 65 "huks:libhukssdk", 66 "ipc:ipc_core", 67 "kv_store:distributeddata_inner", 68 "kv_store:distributeddata_mgr", 69 "kv_store:distributeddb", 70 "relational_store:native_rdb", 71 ] 72} 73 74############################################################################### 75group("fuzztest") { 76 testonly = true 77 78 deps = [ ":RdbResultSetStubFuzzTest" ] 79} 80############################################################################### 81