1# Copyright (c) 2024 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 14#####################hydra-fuzz################### 15import("//build/config/features.gni") 16import("//build/test.gni") 17module_output_path = "graphic_2d/graphic_2d" 18 19##############################fuzztest########################################## 20ohos_fuzztest("RSTransactionIpcFuzzTest") { 21 module_out_path = module_output_path 22 fuzz_config_file = 23 "../../../../../render/render/fuzztest/rstransactionipc_fuzzer" 24 include_dirs = [ 25 "../../../../../rosen/modules/platform/ipc_core", 26 "../../../../../rosen/modules/platform", 27 "../../../../../modules/hyper_graphic_manager/core/config", 28 "../../../../../modules/render_service/core", 29 "../../../../../modules/render_service_base/src", 30 "../../../../../test/include", 31 ] 32 deps = [ 33 "../../../../../modules/2d_graphics:2d_graphics", 34 "../../../../../modules/composer:libcomposer", 35 "../../../../../modules/render_service:librender_service", 36 "../../../../../modules/render_service_base:librender_service_base", 37 "../../../../../modules/render_service_client:librender_service_client", 38 ] 39 40 cflags = [ 41 "-g", 42 "-O0", 43 "-Wno-unused-variable", 44 "-fno-omit-frame-pointer", 45 "-Dprivate=public", 46 "-Dprotected=public", 47 ] 48 49 sources = [ "rstransactionipc_fuzzer.cpp" ] 50 51 external_deps = [ 52 "ability_base:base", 53 "ability_base:want", 54 "ability_runtime:abilitykit_native", 55 "ability_runtime:app_manager", 56 "c_utils:utils", 57 "common_event_service:cesfwk_core", 58 "common_event_service:cesfwk_innerkits", 59 "hilog:libhilog", 60 "ipc:ipc_core", 61 "safwk:system_ability_fwk", 62 "samgr:samgr_proxy", 63 ] 64 65 if (defined(global_parts_info) && defined(global_parts_info.sensors_sensor)) { 66 external_deps += [ "sensor:sensor_interface_native" ] 67 } 68} 69 70############################################################################### 71group("fuzztest") { 72 testonly = true 73 deps = [] 74 deps += [ 75 # deps file 76 ":RSTransactionIpcFuzzTest", 77 ] 78} 79############################################################################### 80