blob: 07eea2795e178c2f2ddc6860ac617c2e65c629bb [file] [log] [blame]
Peter Boström62e9bda2015-11-23 15:12:06 +01001# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
2#
3# Use of this source code is governed by a BSD-style license
4# that can be found in the LICENSE file in the root of the source
5# tree. An additional intellectual property rights grant can be found
6# in the file PATENTS. All contributing project authors may
7# be found in the AUTHORS file in the root of the source tree.
8
9import("//build/config/features.gni")
10import("//testing/test.gni")
11
12static_library("webrtc_fuzzer_main") {
Henrik Lundinfe32a762015-12-08 11:27:27 +010013 public_configs = [ "../..:common_inherited_config" ]
Peter Boström62e9bda2015-11-23 15:12:06 +010014 sources = [
15 "webrtc_fuzzer_main.cc",
16 ]
17 deps = [
Peter Boström89d658f2015-11-25 21:58:36 +010018 "../../system_wrappers:field_trial_default",
Peter Boström871c4192015-11-26 14:52:23 +010019 "../../system_wrappers:metrics_default",
Peter Boström62e9bda2015-11-23 15:12:06 +010020 "//testing/libfuzzer:libfuzzer_main",
21 ]
22}
23
24test("vp9_depacketizer_fuzzer") {
25 sources = [
26 "vp9_depacketizer_fuzzer.cc",
27 ]
28 deps = [
29 ":webrtc_fuzzer_main",
30 "../../modules/rtp_rtcp",
31 ]
32 if (is_clang) {
33 # Suppress warnings from Chrome's Clang plugins.
34 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
35 configs -= [ "//build/config/clang:find_bad_constructs" ]
36 }
37}
Peter Boström871c4192015-11-26 14:52:23 +010038
39test("vp8_qp_parser_fuzzer") {
40 sources = [
41 "vp8_qp_parser_fuzzer.cc",
42 ]
43 deps = [
44 ":webrtc_fuzzer_main",
45 "../../modules/video_coding/",
46 ]
47
48 if (is_clang) {
49 # Suppress warnings from Chrome's Clang plugins.
50 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
51 configs -= [ "//build/config/clang:find_bad_constructs" ]
52 }
53}
Henrik Lundinfe32a762015-12-08 11:27:27 +010054
55source_set("audio_decoder_fuzzer") {
56 sources = [
57 "audio_decoder_fuzzer.cc",
58 "audio_decoder_fuzzer.h",
59 ]
60 deps = [
61 ":webrtc_fuzzer_main",
62 ]
63}
64
65test("audio_decoder_ilbc_fuzzer") {
66 sources = [
67 "audio_decoder_ilbc_fuzzer.cc",
68 ]
69 deps = [
70 ":audio_decoder_fuzzer",
71 "../../modules/audio_coding:ilbc",
72 ]
73}
74
75test("audio_decoder_isac_fuzzer") {
76 sources = [
77 "audio_decoder_isac_fuzzer.cc",
78 ]
79 deps = [
80 ":audio_decoder_fuzzer",
81 "../../modules/audio_coding:isac",
82 ]
83}
84
85test("audio_decoder_isacfix_fuzzer") {
86 sources = [
87 "audio_decoder_isacfix_fuzzer.cc",
88 ]
89 deps = [
90 ":audio_decoder_fuzzer",
91 "../../modules/audio_coding:isac_fix",
92 ]
93}
94
95test("audio_decoder_opus_fuzzer") {
96 sources = [
97 "audio_decoder_opus_fuzzer.cc",
98 ]
99 deps = [
100 ":audio_decoder_fuzzer",
101 "../../modules/audio_coding:webrtc_opus",
102 ]
103}