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

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

Issue 1463523002: Implement fuzzing of VP9 depacketization. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: remove include Created 5 years, 1 month 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 | « webrtc/test/BUILD.gn ('k') | webrtc/test/fuzzers/OWNERS » ('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
new file mode 100644
index 0000000000000000000000000000000000000000..d8b194913382d70fedfed8f7ba50f3f62c7749e3
--- /dev/null
+++ b/webrtc/test/fuzzers/BUILD.gn
@@ -0,0 +1,51 @@
+# Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+import("//build/config/features.gni")
+import("//testing/test.gni")
+
+# TODO(pbos): Do not copy libfuzzer from chromium, instead depend on it.
+static_library("webrtcfuzzer_main") {
+ # libfuzzer should be compiled without coverage (infinite loop in trace_cmp).
+ configs -= [ "//build/config/sanitizers:default_sanitizer_coverage_flags" ]
+
+ sources = [
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerCrossOver.cpp",
kjellander_webrtc 2015/11/19 15:23:06 I believe the right thing to do about these source
pbos-webrtc 2015/11/19 15:39:25 That's not a problem, I expect to rebase this abou
kjellander_webrtc 2015/11/19 16:18:41 Then at least add a comment/TODO about that these
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerDriver.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerFlags.def",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerIO.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerInterface.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerLoop.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerMain.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerMutate.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerSHA1.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerSanitizerOptions.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerTraceState.cpp",
+ "../../../third_party/llvm/lib/Fuzzer/FuzzerUtil.cpp",
+ "webrtc_fuzzer_main.cc",
+ ]
+ deps = [
+ "..:field_trial",
+ ]
+}
+
+test("vp9_depacketizer_fuzzer") {
+ sources = [
+ "vp9_depacketizer_fuzzer.cc",
+ ]
+ deps = [
+ ":webrtcfuzzer_main",
+ "../../modules/rtp_rtcp/",
kjellander_webrtc 2015/11/19 15:23:06 Remove leading slash.
kjellander_webrtc 2015/11/19 15:29:44 *sigh* I meant trailing slash.
pbos-webrtc 2015/11/19 15:39:25 Done.
+ ]
+
+ if (is_clang) {
+ # Suppress warnings from Chrome's Clang plugins.
+ # See http://code.google.com/p/webrtc/issues/detail?id=163 for details.
+ configs -= [ "//build/config/clang:find_bad_constructs" ]
+ }
+}
« no previous file with comments | « webrtc/test/BUILD.gn ('k') | webrtc/test/fuzzers/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698