13c3173acSopenharmony_ci# Copyright (c) 2023 Huawei Device Co., Ltd.
23c3173acSopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
33c3173acSopenharmony_ci# you may not use this file except in compliance with the License.
43c3173acSopenharmony_ci# You may obtain a copy of the License at
53c3173acSopenharmony_ci#
63c3173acSopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
73c3173acSopenharmony_ci#
83c3173acSopenharmony_ci# Unless required by applicable law or agreed to in writing, software
93c3173acSopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
103c3173acSopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
113c3173acSopenharmony_ci# See the License for the specific language governing permissions and
123c3173acSopenharmony_ci# limitations under the License.
133c3173acSopenharmony_ci
143c3173acSopenharmony_ciimport("//build/config/features.gni")
153c3173acSopenharmony_ciimport("//build/test.gni")
163c3173acSopenharmony_ci
173c3173acSopenharmony_ciohos_fuzztest("ConcurrentFuzzTest") {
183c3173acSopenharmony_ci  module_out_path = "qos_manager/qos_manager/"
193c3173acSopenharmony_ci  fuzz_config_file = "../../../test/fuzztest/concurrent_fuzzer"
203c3173acSopenharmony_ci  include_dirs = [
213c3173acSopenharmony_ci    "../../../include/",
223c3173acSopenharmony_ci    "../../../interfaces/inner_api/",
233c3173acSopenharmony_ci    "../../../frameworks/concurrent_task_client/include/",
243c3173acSopenharmony_ci    "../../../services/include/",
253c3173acSopenharmony_ci  ]
263c3173acSopenharmony_ci  cflags = [
273c3173acSopenharmony_ci    "-g",
283c3173acSopenharmony_ci    "-O0",
293c3173acSopenharmony_ci    "-Wno-unused-variable",
303c3173acSopenharmony_ci    "-fno-omit-frame-pointer",
313c3173acSopenharmony_ci  ]
323c3173acSopenharmony_ci  sources = [ "concurrent_fuzzer.cpp" ]
333c3173acSopenharmony_ci  defines = []
343c3173acSopenharmony_ci  deps = [
353c3173acSopenharmony_ci    "../../../frameworks/concurrent_task_client:concurrent_task_client",
363c3173acSopenharmony_ci    "../../../qos:qos",
373c3173acSopenharmony_ci    "../../../services:concurrentsvc",
383c3173acSopenharmony_ci  ]
393c3173acSopenharmony_ci  external_deps = [
403c3173acSopenharmony_ci    "access_token:libaccesstoken_sdk",
413c3173acSopenharmony_ci    "c_utils:utils",
423c3173acSopenharmony_ci    "frame_aware_sched:rtg_interface",
433c3173acSopenharmony_ci    "hilog:libhilog",
443c3173acSopenharmony_ci    "hitrace:hitrace_meter",
453c3173acSopenharmony_ci    "init:libbegetutil",
463c3173acSopenharmony_ci    "ipc:ipc_single",
473c3173acSopenharmony_ci    "safwk:system_ability_fwk",
483c3173acSopenharmony_ci    "samgr:samgr_proxy",
493c3173acSopenharmony_ci  ]
503c3173acSopenharmony_ci}
51