| # 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/components.gni") |
| import("//build/fidl/fidl.gni") |
| import("//build/rust/rustc_test.gni") |
| |
| fidl("test.tablevalidation") { |
| testonly = true |
| sources = [ "table_validation.test.fidl" ] |
| } |
| |
| rustc_test("fidl_table_validation_tests_bin") { |
| edition = "2021" |
| deps = [ |
| ":test.tablevalidation_rust", |
| "//src/lib/fidl_table_validation", |
| "//third_party/rust_crates:assert_matches", |
| "//third_party/rust_crates:test-case", |
| ] |
| sources = [ "src/lib.rs" ] |
| } |
| |
| fuchsia_unittest_package("fidl_table_validation_tests") { |
| deps = [ ":fidl_table_validation_tests_bin" ] |
| } |