mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-25 06:46:09 +03:00
48 lines
1.0 KiB
Plaintext
48 lines
1.0 KiB
Plaintext
|
# Copyright 2017 The Chromium Authors. All rights reserved.
|
||
|
# Use of this source code is governed by a BSD-style license that can be
|
||
|
# found in the LICENSE file.
|
||
|
|
||
|
# Mojo fuzzing tools
|
||
|
|
||
|
import("//build/config/features.gni")
|
||
|
import("//mojo/public/tools/bindings/mojom.gni")
|
||
|
import("//testing/libfuzzer/fuzzer_test.gni")
|
||
|
|
||
|
# mojo/public BUILD depends on this target. Needed for package discovery
|
||
|
group("fuzzers") {
|
||
|
}
|
||
|
|
||
|
mojom("fuzz_mojom") {
|
||
|
sources = [
|
||
|
"fuzz.mojom",
|
||
|
]
|
||
|
}
|
||
|
|
||
|
fuzzer_test("mojo_parse_message_fuzzer") {
|
||
|
sources = [
|
||
|
"fuzz_impl.cc",
|
||
|
"mojo_parse_message_fuzzer.cc",
|
||
|
]
|
||
|
deps = [
|
||
|
":fuzz_mojom",
|
||
|
"//mojo/edk/system",
|
||
|
]
|
||
|
seed_corpus = "//mojo/public/tools/fuzzers/message_corpus"
|
||
|
}
|
||
|
|
||
|
# MessageDumper is not meant to work on Windows.
|
||
|
if (!is_win) {
|
||
|
executable("mojo_fuzzer_message_dump") {
|
||
|
sources = [
|
||
|
"fuzz_impl.cc",
|
||
|
"mojo_fuzzer_message_dump.cc",
|
||
|
]
|
||
|
deps = [
|
||
|
":fuzz_mojom",
|
||
|
"//base",
|
||
|
"//build/config:exe_and_shlib_deps",
|
||
|
"//mojo/edk/system",
|
||
|
]
|
||
|
}
|
||
|
}
|