• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2021 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.
13import("//build/config/features.gni")
14import("//build/test.gni")
15import("//build/test.gni")
16import("//drivers/adapter/uhdf2/uhdf.gni")
17import("//drivers/peripheral/audio/audio.gni")
18
19module_output_path = "hdf/audio"
20
21#############hdf_audio_hdi_getalladapters_fuzzer###################
22ohos_fuzztest("hdf_audio_hdi_getalladapters_fuzzer") {
23  module_out_path = module_output_path
24
25  include_dirs = []
26  cflags = [
27    "-g",
28    "-O0",
29    "-Wno-unused-variable",
30    "-fno-omit-frame-pointer",
31  ]
32
33  sources = [
34    "../../../common/src/audio_hdi_fuzzer_common.cpp",
35    "audio_hdi_getalladapters_fuzzer.cpp",
36  ]
37  include_dirs = [
38    "//drivers/peripheral/audio/interfaces/include",
39    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
40    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
41    "//drivers/framework/include/core",
42    "//drivers/framework/include/utils",
43    "//drivers/framework/include/osal",
44    "//drivers/framework/ability/sbuf/include",
45    "//drivers/framework/utils/include",
46    "//drivers/framework/include",
47    "//drivers/framework/core/sec/include",
48    "//drivers/framework/core/shared/include",
49    "//drivers/framework/core/host/include",
50    "//drivers/framework/core/manager/include",
51    "//drivers/framework/core/common/include/host/",
52    "//third_party/bounds_checking_function/include",
53    "//drivers/adapter/khdf/liteos/osal/include",
54    "//drivers/adapter/uhdf2/shared/include",
55    "//drivers/adapter/uhdf2/include/hdi/",
56    "//drivers/peripheral/audio/test/fuzztest/common/include",
57  ]
58  defines = []
59  if (enable_audio_adm_so) {
60    defines += [ "AUDIO_ADM_SO" ]
61  }
62  if (enable_audio_adm_service) {
63    defines += [ "AUDIO_ADM_SERVICE" ]
64  }
65}
66
67#############hdf_audio_hdi_loadadapter_manager_fuzzer###################
68ohos_fuzztest("hdf_audio_hdi_loadadapter_manager_fuzzer") {
69  module_out_path = module_output_path
70
71  include_dirs = []
72  cflags = [
73    "-g",
74    "-O0",
75    "-Wno-unused-variable",
76    "-fno-omit-frame-pointer",
77  ]
78
79  sources = [
80    "../../../common/src/audio_hdi_fuzzer_common.cpp",
81    "audio_hdi_loadadapter_manager_fuzzer.cpp",
82  ]
83  include_dirs = [
84    "//drivers/peripheral/audio/interfaces/include",
85    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
86    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
87    "//drivers/framework/include/core",
88    "//drivers/framework/include/utils",
89    "//drivers/framework/include/osal",
90    "//drivers/framework/ability/sbuf/include",
91    "//drivers/framework/utils/include",
92    "//drivers/framework/include",
93    "//drivers/framework/core/sec/include",
94    "//drivers/framework/core/shared/include",
95    "//drivers/framework/core/host/include",
96    "//drivers/framework/core/manager/include",
97    "//drivers/framework/core/common/include/host/",
98    "//third_party/bounds_checking_function/include",
99    "//drivers/adapter/khdf/liteos/osal/include",
100    "//drivers/adapter/uhdf2/shared/include",
101    "//drivers/adapter/uhdf2/include/hdi/",
102    "//drivers/peripheral/audio/test/fuzztest/common/include",
103  ]
104  defines = []
105  if (enable_audio_adm_so) {
106    defines += [ "AUDIO_ADM_SO" ]
107  }
108  if (enable_audio_adm_service) {
109    defines += [ "AUDIO_ADM_SERVICE" ]
110  }
111}
112
113#############hdf_audio_hdi_loadadapter_desc_fuzzer###################
114ohos_fuzztest("hdf_audio_hdi_loadadapter_desc_fuzzer") {
115  module_out_path = module_output_path
116
117  include_dirs = []
118  cflags = [
119    "-g",
120    "-O0",
121    "-Wno-unused-variable",
122    "-fno-omit-frame-pointer",
123  ]
124
125  sources = [
126    "../../../common/src/audio_hdi_fuzzer_common.cpp",
127    "audio_hdi_loadadapter_desc_fuzzer.cpp",
128  ]
129  include_dirs = [
130    "//drivers/peripheral/audio/interfaces/include",
131    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
132    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
133    "//drivers/framework/include/core",
134    "//drivers/framework/include/utils",
135    "//drivers/framework/include/osal",
136    "//drivers/framework/ability/sbuf/include",
137    "//drivers/framework/utils/include",
138    "//drivers/framework/include",
139    "//drivers/framework/core/sec/include",
140    "//drivers/framework/core/shared/include",
141    "//drivers/framework/core/host/include",
142    "//drivers/framework/core/manager/include",
143    "//drivers/framework/core/common/include/host/",
144    "//third_party/bounds_checking_function/include",
145    "//drivers/adapter/khdf/liteos/osal/include",
146    "//drivers/adapter/uhdf2/shared/include",
147    "//drivers/adapter/uhdf2/include/hdi/",
148    "//drivers/peripheral/audio/test/fuzztest/common/include",
149  ]
150  defines = []
151  if (enable_audio_adm_so) {
152    defines += [ "AUDIO_ADM_SO" ]
153  }
154  if (enable_audio_adm_service) {
155    defines += [ "AUDIO_ADM_SERVICE" ]
156  }
157}
158
159#############hdf_audio_hdi_unloadadapter_manager_fuzzer###################
160ohos_fuzztest("hdf_audio_hdi_unloadadapter_manager_fuzzer") {
161  module_out_path = module_output_path
162
163  include_dirs = []
164  cflags = [
165    "-g",
166    "-O0",
167    "-Wno-unused-variable",
168    "-fno-omit-frame-pointer",
169  ]
170
171  sources = [
172    "../../../common/src/audio_hdi_fuzzer_common.cpp",
173    "audio_hdi_unloadadapter_manager_fuzzer.cpp",
174  ]
175  include_dirs = [
176    "//drivers/peripheral/audio/interfaces/include",
177    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
178    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
179    "//drivers/framework/include/core",
180    "//drivers/framework/include/utils",
181    "//drivers/framework/include/osal",
182    "//drivers/framework/ability/sbuf/include",
183    "//drivers/framework/utils/include",
184    "//drivers/framework/include",
185    "//drivers/framework/core/sec/include",
186    "//drivers/framework/core/shared/include",
187    "//drivers/framework/core/host/include",
188    "//drivers/framework/core/manager/include",
189    "//drivers/framework/core/common/include/host/",
190    "//third_party/bounds_checking_function/include",
191    "//drivers/adapter/khdf/liteos/osal/include",
192    "//drivers/adapter/uhdf2/shared/include",
193    "//drivers/adapter/uhdf2/include/hdi/",
194    "//drivers/peripheral/audio/test/fuzztest/common/include",
195  ]
196  defines = []
197  if (enable_audio_adm_so) {
198    defines += [ "AUDIO_ADM_SO" ]
199  }
200  if (enable_audio_adm_service) {
201    defines += [ "AUDIO_ADM_SERVICE" ]
202  }
203}
204
205#############hdf_audio_hdi_unloadadapter_adapter_fuzzer###################
206ohos_fuzztest("hdf_audio_hdi_unloadadapter_adapter_fuzzer") {
207  module_out_path = module_output_path
208
209  include_dirs = []
210  cflags = [
211    "-g",
212    "-O0",
213    "-Wno-unused-variable",
214    "-fno-omit-frame-pointer",
215  ]
216
217  sources = [
218    "../../../common/src/audio_hdi_fuzzer_common.cpp",
219    "audio_hdi_unloadadapter_adapter_fuzzer.cpp",
220  ]
221  include_dirs = [
222    "//drivers/peripheral/audio/interfaces/include",
223    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
224    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
225    "//drivers/framework/include/core",
226    "//drivers/framework/include/utils",
227    "//drivers/framework/include/osal",
228    "//drivers/framework/ability/sbuf/include",
229    "//drivers/framework/utils/include",
230    "//drivers/framework/include",
231    "//drivers/framework/core/sec/include",
232    "//drivers/framework/core/shared/include",
233    "//drivers/framework/core/host/include",
234    "//drivers/framework/core/manager/include",
235    "//drivers/framework/core/common/include/host/",
236    "//third_party/bounds_checking_function/include",
237    "//drivers/adapter/khdf/liteos/osal/include",
238    "//drivers/adapter/uhdf2/shared/include",
239    "//drivers/adapter/uhdf2/include/hdi/",
240    "//drivers/peripheral/audio/test/fuzztest/common/include",
241  ]
242  defines = []
243  if (enable_audio_adm_so) {
244    defines += [ "AUDIO_ADM_SO" ]
245  }
246  if (enable_audio_adm_service) {
247    defines += [ "AUDIO_ADM_SERVICE" ]
248  }
249}
250
251#############hdf_audio_hdi_unloadadapter_adapter_fuzzer###################
252ohos_fuzztest("hdf_audio_hdi_initallports_fuzzer") {
253  module_out_path = module_output_path
254
255  include_dirs = []
256  cflags = [
257    "-g",
258    "-O0",
259    "-Wno-unused-variable",
260    "-fno-omit-frame-pointer",
261  ]
262
263  sources = [
264    "../../../common/src/audio_hdi_fuzzer_common.cpp",
265    "audio_hdi_initallports_fuzzer.cpp",
266  ]
267  include_dirs = [
268    "//drivers/peripheral/audio/interfaces/include",
269    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
270    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
271    "//drivers/framework/include/core",
272    "//drivers/framework/include/utils",
273    "//drivers/framework/include/osal",
274    "//drivers/framework/ability/sbuf/include",
275    "//drivers/framework/utils/include",
276    "//drivers/framework/include",
277    "//drivers/framework/core/sec/include",
278    "//drivers/framework/core/shared/include",
279    "//drivers/framework/core/host/include",
280    "//drivers/framework/core/manager/include",
281    "//drivers/framework/core/common/include/host/",
282    "//third_party/bounds_checking_function/include",
283    "//drivers/adapter/khdf/liteos/osal/include",
284    "//drivers/adapter/uhdf2/shared/include",
285    "//drivers/adapter/uhdf2/include/hdi/",
286    "//drivers/peripheral/audio/test/fuzztest/common/include",
287  ]
288  defines = []
289  if (enable_audio_adm_so) {
290    defines += [ "AUDIO_ADM_SO" ]
291  }
292  if (enable_audio_adm_service) {
293    defines += [ "AUDIO_ADM_SERVICE" ]
294  }
295}
296
297#############hdf_audio_hdi_createrender_adater_fuzzer###################
298ohos_fuzztest("hdf_audio_hdi_createrender_adater_fuzzer") {
299  module_out_path = module_output_path
300
301  include_dirs = []
302  cflags = [
303    "-g",
304    "-O0",
305    "-Wno-unused-variable",
306    "-fno-omit-frame-pointer",
307  ]
308
309  sources = [
310    "../../../common/src/audio_hdi_fuzzer_common.cpp",
311    "audio_hdi_createrender_adapter_fuzzer.cpp",
312  ]
313  include_dirs = [
314    "//drivers/peripheral/audio/interfaces/include",
315    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
316    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
317    "//drivers/framework/include/core",
318    "//drivers/framework/include/utils",
319    "//drivers/framework/include/osal",
320    "//drivers/framework/ability/sbuf/include",
321    "//drivers/framework/utils/include",
322    "//drivers/framework/include",
323    "//drivers/framework/core/sec/include",
324    "//drivers/framework/core/shared/include",
325    "//drivers/framework/core/host/include",
326    "//drivers/framework/core/manager/include",
327    "//drivers/framework/core/common/include/host/",
328    "//third_party/bounds_checking_function/include",
329    "//drivers/adapter/khdf/liteos/osal/include",
330    "//drivers/adapter/uhdf2/shared/include",
331    "//drivers/adapter/uhdf2/include/hdi/",
332    "//drivers/peripheral/audio/test/fuzztest/common/include",
333  ]
334  defines = []
335  if (enable_audio_adm_so) {
336    defines += [ "AUDIO_ADM_SO" ]
337  }
338  if (enable_audio_adm_service) {
339    defines += [ "AUDIO_ADM_SERVICE" ]
340  }
341}
342
343#############hdf_audio_hdi_createrender_desc_fuzzer###################
344ohos_fuzztest("hdf_audio_hdi_createrender_desc_fuzzer") {
345  module_out_path = module_output_path
346
347  include_dirs = []
348  cflags = [
349    "-g",
350    "-O0",
351    "-Wno-unused-variable",
352    "-fno-omit-frame-pointer",
353  ]
354
355  sources = [
356    "../../../common/src/audio_hdi_fuzzer_common.cpp",
357    "audio_hdi_createrender_desc_fuzzer.cpp",
358  ]
359  include_dirs = [
360    "//drivers/peripheral/audio/interfaces/include",
361    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
362    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
363    "//drivers/framework/include/core",
364    "//drivers/framework/include/utils",
365    "//drivers/framework/include/osal",
366    "//drivers/framework/ability/sbuf/include",
367    "//drivers/framework/utils/include",
368    "//drivers/framework/include",
369    "//drivers/framework/core/sec/include",
370    "//drivers/framework/core/shared/include",
371    "//drivers/framework/core/host/include",
372    "//drivers/framework/core/manager/include",
373    "//drivers/framework/core/common/include/host/",
374    "//third_party/bounds_checking_function/include",
375    "//drivers/adapter/khdf/liteos/osal/include",
376    "//drivers/adapter/uhdf2/shared/include",
377    "//drivers/adapter/uhdf2/include/hdi/",
378    "//drivers/peripheral/audio/test/fuzztest/common/include",
379  ]
380  defines = []
381  if (enable_audio_adm_so) {
382    defines += [ "AUDIO_ADM_SO" ]
383  }
384  if (enable_audio_adm_service) {
385    defines += [ "AUDIO_ADM_SERVICE" ]
386  }
387}
388
389#############hdf_audio_hdi_createrender_attrs_fuzzer###################
390ohos_fuzztest("hdf_audio_hdi_createrender_attrs_fuzzer") {
391  module_out_path = module_output_path
392
393  include_dirs = []
394  cflags = [
395    "-g",
396    "-O0",
397    "-Wno-unused-variable",
398    "-fno-omit-frame-pointer",
399  ]
400
401  sources = [
402    "../../../common/src/audio_hdi_fuzzer_common.cpp",
403    "audio_hdi_createrender_attrs_fuzzer.cpp",
404  ]
405  include_dirs = [
406    "//drivers/peripheral/audio/interfaces/include",
407    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
408    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
409    "//drivers/framework/include/core",
410    "//drivers/framework/include/utils",
411    "//drivers/framework/include/osal",
412    "//drivers/framework/ability/sbuf/include",
413    "//drivers/framework/utils/include",
414    "//drivers/framework/include",
415    "//drivers/framework/core/sec/include",
416    "//drivers/framework/core/shared/include",
417    "//drivers/framework/core/host/include",
418    "//drivers/framework/core/manager/include",
419    "//drivers/framework/core/common/include/host/",
420    "//third_party/bounds_checking_function/include",
421    "//drivers/adapter/khdf/liteos/osal/include",
422    "//drivers/adapter/uhdf2/shared/include",
423    "//drivers/adapter/uhdf2/include/hdi/",
424    "//drivers/peripheral/audio/test/fuzztest/common/include",
425  ]
426  defines = []
427  if (enable_audio_adm_so) {
428    defines += [ "AUDIO_ADM_SO" ]
429  }
430  if (enable_audio_adm_service) {
431    defines += [ "AUDIO_ADM_SERVICE" ]
432  }
433}
434
435#############hdf_audio_hdi_destroyrender_adapter_fuzzer###################
436ohos_fuzztest("hdf_audio_hdi_destroyrender_adapter_fuzzer") {
437  module_out_path = module_output_path
438
439  include_dirs = []
440  cflags = [
441    "-g",
442    "-O0",
443    "-Wno-unused-variable",
444    "-fno-omit-frame-pointer",
445  ]
446
447  sources = [
448    "../../../common/src/audio_hdi_fuzzer_common.cpp",
449    "audio_hdi_destroyrender_adapter_fuzzer.cpp",
450  ]
451  include_dirs = [
452    "//drivers/peripheral/audio/interfaces/include",
453    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
454    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
455    "//drivers/framework/include/core",
456    "//drivers/framework/include/utils",
457    "//drivers/framework/include/osal",
458    "//drivers/framework/ability/sbuf/include",
459    "//drivers/framework/utils/include",
460    "//drivers/framework/include",
461    "//drivers/framework/core/sec/include",
462    "//drivers/framework/core/shared/include",
463    "//drivers/framework/core/host/include",
464    "//drivers/framework/core/manager/include",
465    "//drivers/framework/core/common/include/host/",
466    "//third_party/bounds_checking_function/include",
467    "//drivers/adapter/khdf/liteos/osal/include",
468    "//drivers/adapter/uhdf2/shared/include",
469    "//drivers/adapter/uhdf2/include/hdi/",
470    "//drivers/peripheral/audio/test/fuzztest/common/include",
471  ]
472  defines = []
473  if (enable_audio_adm_so) {
474    defines += [ "AUDIO_ADM_SO" ]
475  }
476  if (enable_audio_adm_service) {
477    defines += [ "AUDIO_ADM_SERVICE" ]
478  }
479}
480
481#############hdf_audio_hdi_destroyrender_render_fuzzer###################
482ohos_fuzztest("hdf_audio_hdi_destroyrender_render_fuzzer") {
483  module_out_path = module_output_path
484
485  include_dirs = []
486  cflags = [
487    "-g",
488    "-O0",
489    "-Wno-unused-variable",
490    "-fno-omit-frame-pointer",
491  ]
492
493  sources = [
494    "../../../common/src/audio_hdi_fuzzer_common.cpp",
495    "audio_hdi_destroyrender_render_fuzzer.cpp",
496  ]
497  include_dirs = [
498    "//drivers/peripheral/audio/interfaces/include",
499    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
500    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
501    "//drivers/framework/include/core",
502    "//drivers/framework/include/utils",
503    "//drivers/framework/include/osal",
504    "//drivers/framework/ability/sbuf/include",
505    "//drivers/framework/utils/include",
506    "//drivers/framework/include",
507    "//drivers/framework/core/sec/include",
508    "//drivers/framework/core/shared/include",
509    "//drivers/framework/core/host/include",
510    "//drivers/framework/core/manager/include",
511    "//drivers/framework/core/common/include/host/",
512    "//third_party/bounds_checking_function/include",
513    "//drivers/adapter/khdf/liteos/osal/include",
514    "//drivers/adapter/uhdf2/shared/include",
515    "//drivers/adapter/uhdf2/include/hdi/",
516    "//drivers/peripheral/audio/test/fuzztest/common/include",
517  ]
518  defines = []
519  if (enable_audio_adm_so) {
520    defines += [ "AUDIO_ADM_SO" ]
521  }
522  if (enable_audio_adm_service) {
523    defines += [ "AUDIO_ADM_SERVICE" ]
524  }
525}
526
527#############hdf_audio_hdi_createcapture_adater_fuzzer###################
528ohos_fuzztest("hdf_audio_hdi_createcapture_adater_fuzzer") {
529  module_out_path = module_output_path
530
531  include_dirs = []
532  cflags = [
533    "-g",
534    "-O0",
535    "-Wno-unused-variable",
536    "-fno-omit-frame-pointer",
537  ]
538
539  sources = [
540    "../../../common/src/audio_hdi_fuzzer_common.cpp",
541    "audio_hdi_createcapture_adapter_fuzzer.cpp",
542  ]
543  include_dirs = [
544    "//drivers/peripheral/audio/interfaces/include",
545    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
546    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
547    "//drivers/framework/include/core",
548    "//drivers/framework/include/utils",
549    "//drivers/framework/include/osal",
550    "//drivers/framework/ability/sbuf/include",
551    "//drivers/framework/utils/include",
552    "//drivers/framework/include",
553    "//drivers/framework/core/sec/include",
554    "//drivers/framework/core/shared/include",
555    "//drivers/framework/core/host/include",
556    "//drivers/framework/core/manager/include",
557    "//drivers/framework/core/common/include/host/",
558    "//third_party/bounds_checking_function/include",
559    "//drivers/adapter/khdf/liteos/osal/include",
560    "//drivers/adapter/uhdf2/shared/include",
561    "//drivers/adapter/uhdf2/include/hdi/",
562    "//drivers/peripheral/audio/test/fuzztest/common/include",
563  ]
564  defines = []
565  if (enable_audio_adm_so) {
566    defines += [ "AUDIO_ADM_SO" ]
567  }
568  if (enable_audio_adm_service) {
569    defines += [ "AUDIO_ADM_SERVICE" ]
570  }
571}
572
573#############hdf_audio_hdi_createcapture_desc_fuzzer###################
574ohos_fuzztest("hdf_audio_hdi_createcapture_desc_fuzzer") {
575  module_out_path = module_output_path
576
577  include_dirs = []
578  cflags = [
579    "-g",
580    "-O0",
581    "-Wno-unused-variable",
582    "-fno-omit-frame-pointer",
583  ]
584
585  sources = [
586    "../../../common/src/audio_hdi_fuzzer_common.cpp",
587    "audio_hdi_createcapture_desc_fuzzer.cpp",
588  ]
589  include_dirs = [
590    "//drivers/peripheral/audio/interfaces/include",
591    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
592    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
593    "//drivers/framework/include/core",
594    "//drivers/framework/include/utils",
595    "//drivers/framework/include/osal",
596    "//drivers/framework/ability/sbuf/include",
597    "//drivers/framework/utils/include",
598    "//drivers/framework/include",
599    "//drivers/framework/core/sec/include",
600    "//drivers/framework/core/shared/include",
601    "//drivers/framework/core/host/include",
602    "//drivers/framework/core/manager/include",
603    "//drivers/framework/core/common/include/host/",
604    "//third_party/bounds_checking_function/include",
605    "//drivers/adapter/khdf/liteos/osal/include",
606    "//drivers/adapter/uhdf2/shared/include",
607    "//drivers/adapter/uhdf2/include/hdi/",
608    "//drivers/peripheral/audio/test/fuzztest/common/include",
609  ]
610  defines = []
611  if (enable_audio_adm_so) {
612    defines += [ "AUDIO_ADM_SO" ]
613  }
614  if (enable_audio_adm_service) {
615    defines += [ "AUDIO_ADM_SERVICE" ]
616  }
617}
618
619#############hdf_audio_hdi_createcapture_attrs_fuzzer###################
620ohos_fuzztest("hdf_audio_hdi_createcapture_attrs_fuzzer") {
621  module_out_path = module_output_path
622
623  include_dirs = []
624  cflags = [
625    "-g",
626    "-O0",
627    "-Wno-unused-variable",
628    "-fno-omit-frame-pointer",
629  ]
630
631  sources = [
632    "../../../common/src/audio_hdi_fuzzer_common.cpp",
633    "audio_hdi_createcapture_attrs_fuzzer.cpp",
634  ]
635  include_dirs = [
636    "//drivers/peripheral/audio/interfaces/include",
637    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
638    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
639    "//drivers/framework/include/core",
640    "//drivers/framework/include/utils",
641    "//drivers/framework/include/osal",
642    "//drivers/framework/ability/sbuf/include",
643    "//drivers/framework/utils/include",
644    "//drivers/framework/include",
645    "//drivers/framework/core/sec/include",
646    "//drivers/framework/core/shared/include",
647    "//drivers/framework/core/host/include",
648    "//drivers/framework/core/manager/include",
649    "//drivers/framework/core/common/include/host/",
650    "//third_party/bounds_checking_function/include",
651    "//drivers/adapter/khdf/liteos/osal/include",
652    "//drivers/adapter/uhdf2/shared/include",
653    "//drivers/adapter/uhdf2/include/hdi/",
654    "//drivers/peripheral/audio/test/fuzztest/common/include",
655  ]
656  defines = []
657  if (enable_audio_adm_so) {
658    defines += [ "AUDIO_ADM_SO" ]
659  }
660  if (enable_audio_adm_service) {
661    defines += [ "AUDIO_ADM_SERVICE" ]
662  }
663}
664
665#############hdf_audio_hdi_destroycapture_adapter_fuzzer###################
666ohos_fuzztest("hdf_audio_hdi_destroycapture_adapter_fuzzer") {
667  module_out_path = module_output_path
668
669  include_dirs = []
670  cflags = [
671    "-g",
672    "-O0",
673    "-Wno-unused-variable",
674    "-fno-omit-frame-pointer",
675  ]
676
677  sources = [
678    "../../../common/src/audio_hdi_fuzzer_common.cpp",
679    "audio_hdi_destroycapture_adapter_fuzzer.cpp",
680  ]
681  include_dirs = [
682    "//drivers/peripheral/audio/interfaces/include",
683    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
684    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
685    "//drivers/framework/include/core",
686    "//drivers/framework/include/utils",
687    "//drivers/framework/include/osal",
688    "//drivers/framework/ability/sbuf/include",
689    "//drivers/framework/utils/include",
690    "//drivers/framework/include",
691    "//drivers/framework/core/sec/include",
692    "//drivers/framework/core/shared/include",
693    "//drivers/framework/core/host/include",
694    "//drivers/framework/core/manager/include",
695    "//drivers/framework/core/common/include/host/",
696    "//third_party/bounds_checking_function/include",
697    "//drivers/adapter/khdf/liteos/osal/include",
698    "//drivers/adapter/uhdf2/shared/include",
699    "//drivers/adapter/uhdf2/include/hdi/",
700    "//drivers/peripheral/audio/test/fuzztest/common/include",
701  ]
702  defines = []
703  if (enable_audio_adm_so) {
704    defines += [ "AUDIO_ADM_SO" ]
705  }
706  if (enable_audio_adm_service) {
707    defines += [ "AUDIO_ADM_SERVICE" ]
708  }
709}
710
711#############hdf_audio_hdi_destroycapture_capture_fuzzer###################
712ohos_fuzztest("hdf_audio_hdi_destroycapture_capture_fuzzer") {
713  module_out_path = module_output_path
714
715  include_dirs = []
716  cflags = [
717    "-g",
718    "-O0",
719    "-Wno-unused-variable",
720    "-fno-omit-frame-pointer",
721  ]
722
723  sources = [
724    "../../../common/src/audio_hdi_fuzzer_common.cpp",
725    "audio_hdi_destroycapture_capture_fuzzer.cpp",
726  ]
727  include_dirs = [
728    "//drivers/peripheral/audio/interfaces/include",
729    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
730    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
731    "//drivers/framework/include/core",
732    "//drivers/framework/include/utils",
733    "//drivers/framework/include/osal",
734    "//drivers/framework/ability/sbuf/include",
735    "//drivers/framework/utils/include",
736    "//drivers/framework/include",
737    "//drivers/framework/core/sec/include",
738    "//drivers/framework/core/shared/include",
739    "//drivers/framework/core/host/include",
740    "//drivers/framework/core/manager/include",
741    "//drivers/framework/core/common/include/host/",
742    "//third_party/bounds_checking_function/include",
743    "//drivers/adapter/khdf/liteos/osal/include",
744    "//drivers/adapter/uhdf2/shared/include",
745    "//drivers/adapter/uhdf2/include/hdi/",
746    "//drivers/peripheral/audio/test/fuzztest/common/include",
747  ]
748  defines = []
749  if (enable_audio_adm_so) {
750    defines += [ "AUDIO_ADM_SO" ]
751  }
752  if (enable_audio_adm_service) {
753    defines += [ "AUDIO_ADM_SERVICE" ]
754  }
755}
756
757#############hdf_audio_hdi_getportcapability_adapter_fuzzer###################
758ohos_fuzztest("hdf_audio_hdi_getportcapability_adapter_fuzzer") {
759  module_out_path = module_output_path
760
761  include_dirs = []
762  cflags = [
763    "-g",
764    "-O0",
765    "-Wno-unused-variable",
766    "-fno-omit-frame-pointer",
767  ]
768
769  sources = [
770    "../../../common/src/audio_hdi_fuzzer_common.cpp",
771    "audio_hdi_getportcapability_adapter_fuzzer.cpp",
772  ]
773  include_dirs = [
774    "//drivers/peripheral/audio/interfaces/include",
775    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
776    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
777    "//drivers/framework/include/core",
778    "//drivers/framework/include/utils",
779    "//drivers/framework/include/osal",
780    "//drivers/framework/ability/sbuf/include",
781    "//drivers/framework/utils/include",
782    "//drivers/framework/include",
783    "//drivers/framework/core/sec/include",
784    "//drivers/framework/core/shared/include",
785    "//drivers/framework/core/host/include",
786    "//drivers/framework/core/manager/include",
787    "//drivers/framework/core/common/include/host/",
788    "//third_party/bounds_checking_function/include",
789    "//drivers/adapter/khdf/liteos/osal/include",
790    "//drivers/adapter/uhdf2/shared/include",
791    "//drivers/adapter/uhdf2/include/hdi/",
792    "//drivers/peripheral/audio/test/fuzztest/common/include",
793  ]
794  defines = []
795  if (enable_audio_adm_so) {
796    defines += [ "AUDIO_ADM_SO" ]
797  }
798  if (enable_audio_adm_service) {
799    defines += [ "AUDIO_ADM_SERVICE" ]
800  }
801}
802
803#############hdf_audio_hdi_setpassthroughmode_adapter_fuzzer###################
804ohos_fuzztest("hdf_audio_hdi_setpassthroughmode_adapter_fuzzer") {
805  module_out_path = module_output_path
806
807  include_dirs = []
808  cflags = [
809    "-g",
810    "-O0",
811    "-Wno-unused-variable",
812    "-fno-omit-frame-pointer",
813  ]
814
815  sources = [
816    "../../../common/src/audio_hdi_fuzzer_common.cpp",
817    "audio_hdi_setpassthroughmode_adapter_fuzzer.cpp",
818  ]
819  include_dirs = [
820    "//drivers/peripheral/audio/interfaces/include",
821    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
822    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
823    "//drivers/framework/include/core",
824    "//drivers/framework/include/utils",
825    "//drivers/framework/include/osal",
826    "//drivers/framework/ability/sbuf/include",
827    "//drivers/framework/utils/include",
828    "//drivers/framework/include",
829    "//drivers/framework/core/sec/include",
830    "//drivers/framework/core/shared/include",
831    "//drivers/framework/core/host/include",
832    "//drivers/framework/core/manager/include",
833    "//drivers/framework/core/common/include/host/",
834    "//third_party/bounds_checking_function/include",
835    "//drivers/adapter/khdf/liteos/osal/include",
836    "//drivers/adapter/uhdf2/shared/include",
837    "//drivers/adapter/uhdf2/include/hdi/",
838    "//drivers/peripheral/audio/test/fuzztest/common/include",
839  ]
840  defines = []
841  if (enable_audio_adm_so) {
842    defines += [ "AUDIO_ADM_SO" ]
843  }
844  if (enable_audio_adm_service) {
845    defines += [ "AUDIO_ADM_SERVICE" ]
846  }
847}
848
849#############hdf_audio_hdi_getpassthroughmode_adapter_fuzzer###################
850ohos_fuzztest("hdf_audio_hdi_getpassthroughmode_adapter_fuzzer") {
851  module_out_path = module_output_path
852
853  include_dirs = []
854  cflags = [
855    "-g",
856    "-O0",
857    "-Wno-unused-variable",
858    "-fno-omit-frame-pointer",
859  ]
860
861  sources = [
862    "../../../common/src/audio_hdi_fuzzer_common.cpp",
863    "audio_hdi_getpassthroughmode_adapter_fuzzer.cpp",
864  ]
865  include_dirs = [
866    "//drivers/peripheral/audio/interfaces/include",
867    "//drivers/peripheral/audio/hal/hdi_passthrough/include",
868    "//drivers/peripheral/audio/hal/hdi_binder/proxy/include",
869    "//drivers/framework/include/core",
870    "//drivers/framework/include/utils",
871    "//drivers/framework/include/osal",
872    "//drivers/framework/ability/sbuf/include",
873    "//drivers/framework/utils/include",
874    "//drivers/framework/include",
875    "//drivers/framework/core/sec/include",
876    "//drivers/framework/core/shared/include",
877    "//drivers/framework/core/host/include",
878    "//drivers/framework/core/manager/include",
879    "//drivers/framework/core/common/include/host/",
880    "//third_party/bounds_checking_function/include",
881    "//drivers/adapter/khdf/liteos/osal/include",
882    "//drivers/adapter/uhdf2/shared/include",
883    "//drivers/adapter/uhdf2/include/hdi/",
884    "//drivers/peripheral/audio/test/fuzztest/common/include",
885  ]
886  defines = []
887  if (enable_audio_adm_so) {
888    defines += [ "AUDIO_ADM_SO" ]
889  }
890  if (enable_audio_adm_service) {
891    defines += [ "AUDIO_ADM_SERVICE" ]
892  }
893}
894