Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: webrtc/test/fuzzers/BUILD.gn

Issue 2081683002: Use the Chromium libfuzzer template instead of rolling our own. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/test/fuzzers/webrtc_fuzzer.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/test/fuzzers/BUILD.gn
diff --git a/webrtc/test/fuzzers/BUILD.gn b/webrtc/test/fuzzers/BUILD.gn
index 3e59339299fb33cc65f0430c59822814d9e4f20c..29867a1a7db4885948c32268d6ee08f41316da43 100644
--- a/webrtc/test/fuzzers/BUILD.gn
+++ b/webrtc/test/fuzzers/BUILD.gn
@@ -7,7 +7,8 @@
# be found in the AUTHORS file in the root of the source tree.
import("//build/config/features.gni")
-import("webrtc_fuzzer.gni")
+import("//testing/test.gni")
+import("//testing/libfuzzer/fuzzer_test.gni")
static_library("webrtc_fuzzer_main") {
public_configs = [ "../..:common_inherited_config" ]
@@ -21,6 +22,18 @@ static_library("webrtc_fuzzer_main") {
]
}
+template("webrtc_fuzzer_test") {
+ fuzzer_test(target_name) {
+ forward_variables_from(invoker, "*")
+ deps += [ ":webrtc_fuzzer_main" ]
+ if (is_clang) {
+ # Suppress warnings from Chrome's Clang plugins.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details
+ suppressed_configs = [ "//build/config/clang:find_bad_constructs" ]
+ }
+ }
+}
+
webrtc_fuzzer_test("h264_depacketizer_fuzzer") {
sources = [
"h264_depacketizer_fuzzer.cc",
« no previous file with comments | « no previous file | webrtc/test/fuzzers/webrtc_fuzzer.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698