• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2024 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("../../test.gni")
15
16module_output_path = "previewer/util"
17
18group("params_parse_fuzztest") {
19  testonly = true
20  deps = [ ":ParamsParseFuzzTest" ]
21}
22
23ide_fuzztest("ParamsParseFuzzTest") {
24  testonly = true
25  part_name = "previewer"
26  subsystem_name = "ide"
27  module_out_path = module_output_path
28  output_name = "ParamsParseFuzzTest"
29  sources = [
30    "$ide_previewer_path/test/mock/MockGlobalResult.cpp",
31    "$ide_previewer_path/test/mock/util/MockLocalSocket.cpp",
32    "$ide_previewer_path/util/CommandParser.cpp",
33    "$ide_previewer_path/util/FileSystem.cpp",
34    "$ide_previewer_path/util/JsonReader.cpp",
35    "$ide_previewer_path/util/PreviewerEngineLog.cpp",
36    "$ide_previewer_path/util/TimeTool.cpp",
37    "$ide_previewer_path/util/TraceTool.cpp",
38    "$ide_previewer_path/util/unix/LocalDate.cpp",
39    "$ide_previewer_path/util/unix/NativeFileSystem.cpp",
40    "../main.cpp",
41    "ParamsParseFuzzer.cpp",
42  ]
43  include_dirs = [
44    "../",
45    "$ide_previewer_path/test/mock",
46    "$ide_previewer_path/util",
47    "$ide_previewer_path/util/linux",
48    "$ide_previewer_path/util/unix",
49    "//third_party/cJSON",
50    "//third_party/bounds_checking_function/include",
51  ]
52  deps = [
53    "//third_party/bounds_checking_function:libsec_static",
54    "//third_party/cJSON:cjson_static",
55  ]
56  libs = []
57  cflags = []
58  cflags_cc = []
59  ldflags = []
60}
61