| # 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 = [ |
| "traits.h", |
| ] |
| public_deps = [ |
| "//sdk/lib/fidl/cpp:cpp_base", |
| "//sdk/lib/fuzzing/cpp", |
| "//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" |
| }, |
| ] |
| } |