13f4cbf05Sopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 23f4cbf05Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 33f4cbf05Sopenharmony_ci# you may not use this file except in compliance with the License. 43f4cbf05Sopenharmony_ci# You may obtain a copy of the License at 53f4cbf05Sopenharmony_ci# 63f4cbf05Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 73f4cbf05Sopenharmony_ci# 83f4cbf05Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 93f4cbf05Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 103f4cbf05Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 113f4cbf05Sopenharmony_ci# See the License for the specific language governing permissions and 123f4cbf05Sopenharmony_ci# limitations under the License. 133f4cbf05Sopenharmony_ciimport("//build/test.gni") 143f4cbf05Sopenharmony_ci 153f4cbf05Sopenharmony_ci##############################fuzztest########################################## 163f4cbf05Sopenharmony_ciohos_fuzztest("ParcelFuzzTest") { 173f4cbf05Sopenharmony_ci module_out_path = "c_utils/c_utils" 183f4cbf05Sopenharmony_ci fuzz_config_file = "." 193f4cbf05Sopenharmony_ci include_dirs = [ "../" ] 203f4cbf05Sopenharmony_ci cflags = [ 213f4cbf05Sopenharmony_ci "-g", 223f4cbf05Sopenharmony_ci "-O0", 233f4cbf05Sopenharmony_ci "-Wno-unused-variable", 243f4cbf05Sopenharmony_ci "-fno-omit-frame-pointer", 253f4cbf05Sopenharmony_ci ] 263f4cbf05Sopenharmony_ci defines = [ "DEBUG_FUZZ" ] 273f4cbf05Sopenharmony_ci external_deps = [ 283f4cbf05Sopenharmony_ci "c_utils:utils", 293f4cbf05Sopenharmony_ci "hilog:libhilog_base", 303f4cbf05Sopenharmony_ci ] 313f4cbf05Sopenharmony_ci sources = [ "parcel_fuzzer.cpp" ] 323f4cbf05Sopenharmony_ci} 333f4cbf05Sopenharmony_ci############################################################################### 34