xref: /aosp_15_r20/external/webrtc/net/dcsctp/fuzzers/BUILD.gn (revision d9f758449e529ab9291ac668be2861e7a55c2422)
1# Copyright (c) 2021 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("../../../webrtc.gni")
10
11rtc_library("dcsctp_fuzzers") {
12  testonly = true
13  deps = [
14    "../../../api:array_view",
15    "../../../api/task_queue:task_queue",
16    "../../../rtc_base:checks",
17    "../../../rtc_base:logging",
18    "../common:math",
19    "../packet:chunk",
20    "../packet:error_cause",
21    "../packet:parameter",
22    "../public:socket",
23    "../public:types",
24    "../socket:dcsctp_socket",
25  ]
26  sources = [
27    "dcsctp_fuzzers.cc",
28    "dcsctp_fuzzers.h",
29  ]
30}
31
32if (rtc_include_tests) {
33  rtc_library("dcsctp_fuzzers_unittests") {
34    testonly = true
35
36    deps = [
37      ":dcsctp_fuzzers",
38      "../../../api:array_view",
39      "../../../rtc_base:checks",
40      "../../../rtc_base:gunit_helpers",
41      "../../../rtc_base:logging",
42      "../../../test:test_support",
43      "../packet:sctp_packet",
44      "../public:socket",
45      "../socket:dcsctp_socket",
46      "../testing:testing_macros",
47    ]
48    sources = [ "dcsctp_fuzzers_test.cc" ]
49  }
50}
51