| # Copyright 2019 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. |
| |
| import("//build/cpp/sdk_source_set.gni") |
| import("//build/test.gni") |
| import("//build/test/test_package.gni") |
| |
| source_set("fuzzing") { |
| testonly = true |
| sources = [ |
| "fuzzer.h", |
| "server_provider.h", |
| "traits.h", |
| ] |
| public_deps = [ |
| "//sdk/lib/fidl/cpp", |
| "//sdk/lib/fuzzing/cpp", |
| "//sdk/lib/fuzzing/cpp:traits", |
| "//zircon/public/lib/async-default", |
| "//zircon/public/lib/async-loop-cpp", |
| "//zircon/public/lib/async-loop-default", |
| "//zircon/system/public", |
| ] |
| public_configs = [ "//sdk/config" ] |
| } |
| |
| group("tests") { |
| testonly = true |
| deps = [ ":fidl_cpp_fuzzing_tests" ] |
| } |
| |
| test("fidl_cpp_fuzzing_unittests") { |
| sources = [ "traits_unittest.cc" ] |
| deps = [ |
| ":fuzzing", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| test_package("fidl_cpp_fuzzing_tests") { |
| deps = [ ":fidl_cpp_fuzzing_unittests" ] |
| tests = [ |
| { |
| name = "fidl_cpp_fuzzing_unittests" |
| }, |
| ] |
| } |