| # Copyright 2021 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("engine") { |
| visibility = [ "../*" ] |
| testonly = true |
| sources = [ |
| "corpus.cc", |
| "corpus.h", |
| "dictionary.cc", |
| "dictionary.h", |
| "module-pool.cc", |
| "module-pool.h", |
| "module-proxy.cc", |
| "module-proxy.h", |
| "mutagen.cc", |
| "mutagen.h", |
| "process-proxy.cc", |
| "process-proxy.h", |
| "runner.cc", |
| "runner.h", |
| ] |
| public_deps = [ |
| "//sdk/fidl/fuchsia.mem", |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/fit", |
| "//src/lib/fxl", |
| "//src/sys/fuzzing/common", |
| "//src/sys/fuzzing/fidl:fuchsia.fuzzer", |
| "//zircon/system/ulib/sync", |
| ] |
| |
| deps = [ |
| "//sdk/lib/syslog/cpp", |
| "//zircon/system/ulib/inspector", |
| ] |
| } |
| |
| source_set("testing") { |
| visibility = [ ":*" ] |
| testonly = true |
| sources = [ |
| "process-proxy-test.cc", |
| "process-proxy-test.h", |
| "runner-test.cc", |
| "runner-test.h", |
| ] |
| public_deps = [ |
| ":engine", |
| "../target:no_hooks", |
| "../testing", |
| "//src/sys/fuzzing/common:runner-unittests-common", |
| "//src/sys/fuzzing/common/testing", |
| "//src/sys/fuzzing/fidl:fuchsia.fuzzer", |
| "//third_party/googletest:gtest", |
| ] |
| } |
| |
| source_set("unittests") { |
| visibility = [ "../*" ] |
| testonly = true |
| sources = [ |
| "corpus-unittest.cc", |
| "dictionary-unittest.cc", |
| "module-pool-unittest.cc", |
| "module-proxy-unittest.cc", |
| "mutagen-unittest.cc", |
| "process-proxy-unittest.cc", |
| "runner-unittest.cc", |
| ] |
| deps = [ |
| ":testing", |
| "../testing:target", |
| "//src/sys/fuzzing/common:runner-unittests", |
| ] |
| } |
| |
| # These unit tests emit fatal logs. |
| source_set("fatal-unittests") { |
| visibility = [ "../*" ] |
| testonly = true |
| sources = [ |
| "process-proxy-fatal-unittest.cc", |
| "runner-fatal-unittest.cc", |
| ] |
| deps = [ |
| ":testing", |
| "../testing:target", |
| "//src/sys/fuzzing/common:runner-fatal-unittests", |
| ] |
| } |