12498b56bSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd. 22498b56bSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 32498b56bSopenharmony_ci# you may not use this file except in compliance with the License. 42498b56bSopenharmony_ci# You may obtain a copy of the License at 52498b56bSopenharmony_ci# 62498b56bSopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 72498b56bSopenharmony_ci# 82498b56bSopenharmony_ci# Unless required by applicable law or agreed to in writing, software 92498b56bSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 102498b56bSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 112498b56bSopenharmony_ci# See the License for the specific language governing permissions and 122498b56bSopenharmony_ci# limitations under the License. 132498b56bSopenharmony_ci 142498b56bSopenharmony_ciimport("//build/config/features.gni") 152498b56bSopenharmony_ciimport("//build/test.gni") 162498b56bSopenharmony_cimodule_output_path = "hilog/hilog" 172498b56bSopenharmony_ci 182498b56bSopenharmony_ciohos_fuzztest("HiLogServerFuzzTest") { 192498b56bSopenharmony_ci module_out_path = module_output_path 202498b56bSopenharmony_ci 212498b56bSopenharmony_ci fuzz_config_file = "../hilogserver_fuzzer" 222498b56bSopenharmony_ci 232498b56bSopenharmony_ci include_dirs = [ 242498b56bSopenharmony_ci "../../../services/hilogd/include", 252498b56bSopenharmony_ci "../../../interfaces/native/innerkits/include", 262498b56bSopenharmony_ci ] 272498b56bSopenharmony_ci 282498b56bSopenharmony_ci cflags = [ 292498b56bSopenharmony_ci "-g", 302498b56bSopenharmony_ci "-O0", 312498b56bSopenharmony_ci "-Wno-unused-variable", 322498b56bSopenharmony_ci "-fno-omit-frame-pointer", 332498b56bSopenharmony_ci ] 342498b56bSopenharmony_ci 352498b56bSopenharmony_ci sources = [ 362498b56bSopenharmony_ci "../../../services/hilogd/flow_control.cpp", 372498b56bSopenharmony_ci "../../../services/hilogd/log_buffer.cpp", 382498b56bSopenharmony_ci "../../../services/hilogd/log_collector.cpp", 392498b56bSopenharmony_ci "../../../services/hilogd/log_domains.cpp", 402498b56bSopenharmony_ci "../../../services/hilogd/log_stats.cpp", 412498b56bSopenharmony_ci "hilogserver_fuzzer.cpp", 422498b56bSopenharmony_ci ] 432498b56bSopenharmony_ci configs = [ "../../../frameworks/libhilog:libhilog_config" ] 442498b56bSopenharmony_ci deps = [ "../../../interfaces/native/innerkits:libhilog" ] 452498b56bSopenharmony_ci external_deps = [ 462498b56bSopenharmony_ci "bounds_checking_function:libsec_shared", 472498b56bSopenharmony_ci "init:libbegetutil", 482498b56bSopenharmony_ci "zlib:shared_libz", 492498b56bSopenharmony_ci ] 502498b56bSopenharmony_ci part_name = "hilog" 512498b56bSopenharmony_ci subsystem_name = "hiviewdfx" 522498b56bSopenharmony_ci} 53