10826e83eSopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 20826e83eSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 30826e83eSopenharmony_ci# you may not use this file except in compliance with the License. 40826e83eSopenharmony_ci# You may obtain a copy of the License at 50826e83eSopenharmony_ci# 60826e83eSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 70826e83eSopenharmony_ci# 80826e83eSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 90826e83eSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 100826e83eSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 110826e83eSopenharmony_ci# See the License for the specific language governing permissions and 120826e83eSopenharmony_ci# limitations under the License. 130826e83eSopenharmony_ci 140826e83eSopenharmony_ci#####################hydra-fuzz################### 150826e83eSopenharmony_ciimport("//base/web/webview/web_aafwk.gni") 160826e83eSopenharmony_ciimport("//build/config/features.gni") 170826e83eSopenharmony_ciimport("//build/test.gni") 180826e83eSopenharmony_ci 190826e83eSopenharmony_ci##############################fuzztest########################################## 200826e83eSopenharmony_ciohos_fuzztest("EnterpriseDeviceManagementAdapterFuzzTest") { 210826e83eSopenharmony_ci module_out_path = webview_fuzz_test_path 220826e83eSopenharmony_ci fuzz_config_file = "$webview_path/test/fuzztest/ohos_adapter/enterprisedevicemanagementadapter_fuzzer" 230826e83eSopenharmony_ci include_dirs = [ 240826e83eSopenharmony_ci "$webview_path/ohos_adapter/enterprise_device_management_adapter/include", 250826e83eSopenharmony_ci "$webview_path/test/fuzztest", 260826e83eSopenharmony_ci ] 270826e83eSopenharmony_ci cflags = [ 280826e83eSopenharmony_ci "-g", 290826e83eSopenharmony_ci "-O0", 300826e83eSopenharmony_ci "-Wno-unused-variable", 310826e83eSopenharmony_ci "-fno-omit-frame-pointer", 320826e83eSopenharmony_ci ] 330826e83eSopenharmony_ci sources = [ "enterprise_device_management_adapter_impl_fuzzer.cpp" ] 340826e83eSopenharmony_ci deps = [ "$webview_path/ohos_adapter:nweb_ohos_adapter" ] 350826e83eSopenharmony_ci 360826e83eSopenharmony_ci external_deps = [ 370826e83eSopenharmony_ci "ability_base:base", 380826e83eSopenharmony_ci "ability_base:want", 390826e83eSopenharmony_ci "c_utils:utils", 400826e83eSopenharmony_ci "image_framework:image_native", 410826e83eSopenharmony_ci "pasteboard:pasteboard_client", 420826e83eSopenharmony_ci ] 430826e83eSopenharmony_ci} 440826e83eSopenharmony_ci 450826e83eSopenharmony_ci############################################################################### 460826e83eSopenharmony_cigroup("fuzztest") { 470826e83eSopenharmony_ci testonly = true 480826e83eSopenharmony_ci deps = [] 490826e83eSopenharmony_ci deps += [ 500826e83eSopenharmony_ci # deps file 510826e83eSopenharmony_ci ":EnterpriseDeviceManagementAdapterFuzzTest", 520826e83eSopenharmony_ci ] 530826e83eSopenharmony_ci} 54