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

Unified Diff: components/policy/core/common/BUILD.gn

Issue 2791193005: Add fuzzer test for preg_parser (Closed)
Patch Set: Renamed ReadData to ReadDataInternal and updated comment. Created 3 years, 8 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
Index: components/policy/core/common/BUILD.gn
diff --git a/components/policy/core/common/BUILD.gn b/components/policy/core/common/BUILD.gn
index 17a586048824a59d4f09aaee003e300ed6eeb9d2..c49a7da6cde74bd081505dfbb467c211d659fad8 100644
--- a/components/policy/core/common/BUILD.gn
+++ b/components/policy/core/common/BUILD.gn
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import("//build/config/features.gni")
+import("//testing/libfuzzer/fuzzer_test.gni")
group("common") {
if (is_component_build) {
@@ -347,3 +348,17 @@ source_set("unit_tests") {
"//testing/gtest",
]
}
+
+if (is_win || is_chromeos) {
Oliver Chang 2017/04/13 00:25:23 I wasn't aware that libFuzzer is supported on eith
ljusten (tachyonic) 2017/04/13 11:17:14 ChromeOS is still Linux, confusingly they're not m
Oliver Chang 2017/04/13 19:58:24 thanks for explaining. we don't have any libFuzzer
+ fuzzer_test("preg_parser_fuzzer") {
+ sources = [
+ "preg_parser_fuzzer.cc",
+ ]
+ seed_corpus = "//chrome/test/data/policy/gpo/fuzzer_corpus"
+ dict = "//chrome/test/data/policy/gpo/fuzzer.dict"
+ deps = [
+ ":internal",
+ "//base",
+ ]
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698