17c804472Sopenharmony_ci# Copyright (c) 2024 Huawei Device Co., Ltd. 27c804472Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License"); 37c804472Sopenharmony_ci# you may not use this file except in compliance with the License. 47c804472Sopenharmony_ci# You may obtain a copy of the License at 57c804472Sopenharmony_ci# 67c804472Sopenharmony_ci# http://www.apache.org/licenses/LICENSE-2.0 77c804472Sopenharmony_ci# 87c804472Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software 97c804472Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS, 107c804472Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 117c804472Sopenharmony_ci# See the License for the specific language governing permissions and 127c804472Sopenharmony_ci# limitations under the License. 137c804472Sopenharmony_ci 147c804472Sopenharmony_ciimport("../../test.gni") 157c804472Sopenharmony_ci 167c804472Sopenharmony_cimodule_output_path = "previewer/util" 177c804472Sopenharmony_ci 187c804472Sopenharmony_cigroup("params_parse_fuzztest") { 197c804472Sopenharmony_ci testonly = true 207c804472Sopenharmony_ci deps = [ ":ParamsParseFuzzTest" ] 217c804472Sopenharmony_ci} 227c804472Sopenharmony_ci 237c804472Sopenharmony_ciide_fuzztest("ParamsParseFuzzTest") { 247c804472Sopenharmony_ci testonly = true 257c804472Sopenharmony_ci part_name = "previewer" 267c804472Sopenharmony_ci subsystem_name = "ide" 277c804472Sopenharmony_ci module_out_path = module_output_path 287c804472Sopenharmony_ci output_name = "ParamsParseFuzzTest" 297c804472Sopenharmony_ci sources = [ 307c804472Sopenharmony_ci "$ide_previewer_path/test/mock/MockGlobalResult.cpp", 317c804472Sopenharmony_ci "$ide_previewer_path/test/mock/util/MockLocalSocket.cpp", 327c804472Sopenharmony_ci "$ide_previewer_path/util/CommandParser.cpp", 337c804472Sopenharmony_ci "$ide_previewer_path/util/FileSystem.cpp", 347c804472Sopenharmony_ci "$ide_previewer_path/util/JsonReader.cpp", 357c804472Sopenharmony_ci "$ide_previewer_path/util/PreviewerEngineLog.cpp", 367c804472Sopenharmony_ci "$ide_previewer_path/util/TimeTool.cpp", 377c804472Sopenharmony_ci "$ide_previewer_path/util/TraceTool.cpp", 387c804472Sopenharmony_ci "$ide_previewer_path/util/unix/LocalDate.cpp", 397c804472Sopenharmony_ci "$ide_previewer_path/util/unix/NativeFileSystem.cpp", 407c804472Sopenharmony_ci "../main.cpp", 417c804472Sopenharmony_ci "ParamsParseFuzzer.cpp", 427c804472Sopenharmony_ci ] 437c804472Sopenharmony_ci include_dirs = [ 447c804472Sopenharmony_ci "../", 457c804472Sopenharmony_ci "$ide_previewer_path/test/mock", 467c804472Sopenharmony_ci "$ide_previewer_path/util", 477c804472Sopenharmony_ci "$ide_previewer_path/util/linux", 487c804472Sopenharmony_ci "$ide_previewer_path/util/unix", 497c804472Sopenharmony_ci "//third_party/cJSON", 507c804472Sopenharmony_ci "//third_party/bounds_checking_function/include", 517c804472Sopenharmony_ci ] 527c804472Sopenharmony_ci deps = [ 537c804472Sopenharmony_ci "//third_party/bounds_checking_function:libsec_static", 547c804472Sopenharmony_ci "//third_party/cJSON:cjson_static", 557c804472Sopenharmony_ci ] 567c804472Sopenharmony_ci libs = [] 577c804472Sopenharmony_ci cflags = [] 587c804472Sopenharmony_ci cflags_cc = [] 597c804472Sopenharmony_ci ldflags = [] 607c804472Sopenharmony_ci} 61