Home | History | Annotate | Download | only in fuzzers
      1 # 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 
      9 import("//build/config/features.gni")
     10 import("webrtc_fuzzer.gni")
     11 
     12 static_library("webrtc_fuzzer_main") {
     13   public_configs = [ "../..:common_inherited_config" ]
     14   sources = [
     15     "webrtc_fuzzer_main.cc",
     16   ]
     17   deps = [
     18     "../../system_wrappers:field_trial_default",
     19     "../../system_wrappers:metrics_default",
     20     "//testing/libfuzzer:libfuzzer_main",
     21   ]
     22 }
     23 
     24 webrtc_fuzzer_test("h264_depacketizer_fuzzer") {
     25   sources = [
     26     "h264_depacketizer_fuzzer.cc",
     27   ]
     28   deps = [
     29     "../../modules/rtp_rtcp",
     30   ]
     31 }
     32 
     33 webrtc_fuzzer_test("vp8_depacketizer_fuzzer") {
     34   sources = [
     35     "vp8_depacketizer_fuzzer.cc",
     36   ]
     37   deps = [
     38     "../../modules/rtp_rtcp",
     39   ]
     40 }
     41 
     42 webrtc_fuzzer_test("vp9_depacketizer_fuzzer") {
     43   sources = [
     44     "vp9_depacketizer_fuzzer.cc",
     45   ]
     46   deps = [
     47     "../../modules/rtp_rtcp",
     48   ]
     49 }
     50 
     51 webrtc_fuzzer_test("vp8_qp_parser_fuzzer") {
     52   sources = [
     53     "vp8_qp_parser_fuzzer.cc",
     54   ]
     55   deps = [
     56     "../../modules/video_coding/",
     57   ]
     58 }
     59 
     60 webrtc_fuzzer_test("producer_fec_fuzzer") {
     61   sources = [
     62     "producer_fec_fuzzer.cc",
     63   ]
     64   deps = [
     65     "../../modules/rtp_rtcp/",
     66   ]
     67 }
     68 
     69 source_set("audio_decoder_fuzzer") {
     70   public_configs = [ "../..:common_inherited_config" ]
     71   sources = [
     72     "audio_decoder_fuzzer.cc",
     73     "audio_decoder_fuzzer.h",
     74   ]
     75 }
     76 
     77 webrtc_fuzzer_test("audio_decoder_ilbc_fuzzer") {
     78   sources = [
     79     "audio_decoder_ilbc_fuzzer.cc",
     80   ]
     81   deps = [
     82     ":audio_decoder_fuzzer",
     83     "../../modules/audio_coding:ilbc",
     84   ]
     85 }
     86 
     87 webrtc_fuzzer_test("audio_decoder_isac_fuzzer") {
     88   sources = [
     89     "audio_decoder_isac_fuzzer.cc",
     90   ]
     91   deps = [
     92     ":audio_decoder_fuzzer",
     93     "../../modules/audio_coding:isac",
     94   ]
     95 }
     96 
     97 webrtc_fuzzer_test("audio_decoder_isacfix_fuzzer") {
     98   sources = [
     99     "audio_decoder_isacfix_fuzzer.cc",
    100   ]
    101   deps = [
    102     ":audio_decoder_fuzzer",
    103     "../../modules/audio_coding:isac_fix",
    104   ]
    105 }
    106 
    107 webrtc_fuzzer_test("audio_decoder_opus_fuzzer") {
    108   sources = [
    109     "audio_decoder_opus_fuzzer.cc",
    110   ]
    111   deps = [
    112     ":audio_decoder_fuzzer",
    113     "../../modules/audio_coding:webrtc_opus",
    114   ]
    115 }
    116