| OLD | NEW |
| 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 1 # Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. |
| 2 # | 2 # |
| 3 # Use of this source code is governed by a BSD-style license | 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 | 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 | 5 # tree. An additional intellectual property rights grant can be found |
| 6 # in the file PATENTS. All contributing project authors may | 6 # in the file PATENTS. All contributing project authors may |
| 7 # be found in the AUTHORS file in the root of the source tree. | 7 # be found in the AUTHORS file in the root of the source tree. |
| 8 | 8 |
| 9 import("//build/config/features.gni") | 9 import("//build/config/features.gni") |
| 10 import("webrtc_fuzzer.gni") | 10 import("//testing/test.gni") |
| 11 | 11 |
| 12 static_library("webrtc_fuzzer_main") { | 12 static_library("webrtc_fuzzer_main") { |
| 13 public_configs = [ "../..:common_inherited_config" ] | 13 public_configs = [ "../..:common_inherited_config" ] |
| 14 sources = [ | 14 sources = [ |
| 15 "webrtc_fuzzer_main.cc", | 15 "webrtc_fuzzer_main.cc", |
| 16 ] | 16 ] |
| 17 deps = [ | 17 deps = [ |
| 18 "../../system_wrappers:field_trial_default", | 18 "../../system_wrappers:field_trial_default", |
| 19 "../../system_wrappers:metrics_default", | 19 "../../system_wrappers:metrics_default", |
| 20 "//testing/libfuzzer:libfuzzer_main", | 20 "//testing/libfuzzer:libfuzzer_main", |
| 21 ] | 21 ] |
| 22 } | 22 } |
| 23 | 23 |
| 24 webrtc_fuzzer_test("vp9_depacketizer_fuzzer") { | 24 test("vp9_depacketizer_fuzzer") { |
| 25 sources = [ | 25 sources = [ |
| 26 "vp9_depacketizer_fuzzer.cc", | 26 "vp9_depacketizer_fuzzer.cc", |
| 27 ] | 27 ] |
| 28 deps = [ | 28 deps = [ |
| 29 ":webrtc_fuzzer_main", |
| 29 "../../modules/rtp_rtcp", | 30 "../../modules/rtp_rtcp", |
| 30 ] | 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 } |
| 31 } | 37 } |
| 32 | 38 |
| 33 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") { | 39 test("vp8_qp_parser_fuzzer") { |
| 34 sources = [ | 40 sources = [ |
| 35 "vp8_qp_parser_fuzzer.cc", | 41 "vp8_qp_parser_fuzzer.cc", |
| 36 ] | 42 ] |
| 37 deps = [ | 43 deps = [ |
| 44 ":webrtc_fuzzer_main", |
| 38 "../../modules/video_coding/", | 45 "../../modules/video_coding/", |
| 39 ] | 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 } |
| 40 } | 53 } |
| 41 | 54 |
| 42 webrtc_fuzzer_test("producer_fec_fuzzer") { | 55 test("producer_fec_fuzzer") { |
| 43 sources = [ | 56 sources = [ |
| 44 "producer_fec_fuzzer.cc", | 57 "producer_fec_fuzzer.cc", |
| 45 ] | 58 ] |
| 46 deps = [ | 59 deps = [ |
| 60 ":webrtc_fuzzer_main", |
| 47 "../../modules/rtp_rtcp/", | 61 "../../modules/rtp_rtcp/", |
| 48 ] | 62 ] |
| 63 |
| 64 if (is_clang) { |
| 65 # Suppress warnings from Chrome's Clang plugins. |
| 66 # See http://code.google.com/p/webrtc/issues/detail?id=163 for details. |
| 67 configs -= [ "//build/config/clang:find_bad_constructs" ] |
| 68 } |
| 49 } | 69 } |
| 50 | 70 |
| 51 source_set("audio_decoder_fuzzer") { | 71 source_set("audio_decoder_fuzzer") { |
| 52 sources = [ | 72 sources = [ |
| 53 "audio_decoder_fuzzer.cc", | 73 "audio_decoder_fuzzer.cc", |
| 54 "audio_decoder_fuzzer.h", | 74 "audio_decoder_fuzzer.h", |
| 55 ] | 75 ] |
| 76 deps = [ |
| 77 ":webrtc_fuzzer_main", |
| 78 ] |
| 56 } | 79 } |
| 57 | 80 |
| 58 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") { | 81 test("audio_decoder_ilbc_fuzzer") { |
| 59 sources = [ | 82 sources = [ |
| 60 "audio_decoder_ilbc_fuzzer.cc", | 83 "audio_decoder_ilbc_fuzzer.cc", |
| 61 ] | 84 ] |
| 62 deps = [ | 85 deps = [ |
| 63 ":audio_decoder_fuzzer", | 86 ":audio_decoder_fuzzer", |
| 64 "../../modules/audio_coding:ilbc", | 87 "../../modules/audio_coding:ilbc", |
| 65 ] | 88 ] |
| 66 } | 89 } |
| 67 | 90 |
| 68 webrtc_fuzzer_test("audio_decoder_isac_fuzzer") { | 91 test("audio_decoder_isac_fuzzer") { |
| 69 sources = [ | 92 sources = [ |
| 70 "audio_decoder_isac_fuzzer.cc", | 93 "audio_decoder_isac_fuzzer.cc", |
| 71 ] | 94 ] |
| 72 deps = [ | 95 deps = [ |
| 73 ":audio_decoder_fuzzer", | 96 ":audio_decoder_fuzzer", |
| 74 "../../modules/audio_coding:isac", | 97 "../../modules/audio_coding:isac", |
| 75 ] | 98 ] |
| 76 } | 99 } |
| 77 | 100 |
| 78 webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") { | 101 test("audio_decoder_isacfix_fuzzer") { |
| 79 sources = [ | 102 sources = [ |
| 80 "audio_decoder_isacfix_fuzzer.cc", | 103 "audio_decoder_isacfix_fuzzer.cc", |
| 81 ] | 104 ] |
| 82 deps = [ | 105 deps = [ |
| 83 ":audio_decoder_fuzzer", | 106 ":audio_decoder_fuzzer", |
| 84 "../../modules/audio_coding:isac_fix", | 107 "../../modules/audio_coding:isac_fix", |
| 85 ] | 108 ] |
| 86 } | 109 } |
| 87 | 110 |
| 88 webrtc_fuzzer_test("audio_decoder_opus_fuzzer") { | 111 test("audio_decoder_opus_fuzzer") { |
| 89 sources = [ | 112 sources = [ |
| 90 "audio_decoder_opus_fuzzer.cc", | 113 "audio_decoder_opus_fuzzer.cc", |
| 91 ] | 114 ] |
| 92 deps = [ | 115 deps = [ |
| 93 ":audio_decoder_fuzzer", | 116 ":audio_decoder_fuzzer", |
| 94 "../../modules/audio_coding:webrtc_opus", | 117 "../../modules/audio_coding:webrtc_opus", |
| 95 ] | 118 ] |
| 96 } | 119 } |
| OLD | NEW |