1# Copyright (c) 2022 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 14import("//build/config/features.gni") 15import("//build/test.gni") 16import("//foundation/ability/ability_runtime/ability_runtime.gni") 17 18#####################hydra-fuzz################### 19import("//foundation/arkui/ace_engine/ace_config.gni") 20module_output_path = "arkui/ui_service" 21 22##############################fuzztest########################################## 23ohos_fuzztest("UiServiceFuzzTest") { 24 module_out_path = module_output_path 25 fuzz_config_file = 26 "//foundation/arkui/ace_engine/test/fuzztest/uiservice_fuzzer" 27 include_dirs = [] 28 cflags = [ 29 "-g", 30 "-O0", 31 "-Wno-unused-variable", 32 "-fno-omit-frame-pointer", 33 ] 34 sources = [ "uiservice_fuzzer.cpp" ] 35 36 deps = [ 37 "//foundation/arkui/ace_engine/interfaces/inner_api/ui_service_manager:ui_service_mgr", 38 "//foundation/systemabilitymgr/samgr/interfaces/innerkits/samgr_proxy:samgr_proxy", 39 "//foundation/window/window_manager/utils:libwmutil", 40 "//foundation/window/window_manager/wm:libwm", 41 "//third_party/icu/icu4c:shared_icui18n", 42 "//third_party/icu/icu4c:shared_icuuc", 43 ] 44 external_deps = [ 45 "ability_base:want", 46 "ability_runtime:ability_manager", 47 "bundle_framework:appexecfwk_base", 48 "c_utils:utils", 49 "eventhandler:libeventhandler", 50 "hiviewdfx_hilog_native:libhilog", 51 "input:libmmi-client", 52 "ipc:ipc_core", 53 "window_manager:libdm", 54 ] 55} 56 57############################################################################### 58group("fuzztest") { 59 testonly = true 60 deps = [] 61 deps += [ 62 # deps file 63 ":UiServiceFuzzTest", 64 ] 65} 66############################################################################### 67