|  | # Copyright 2020 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/rust/rustc_test.gni") | 
|  | import("//src/sys/build/components.gni") | 
|  |  | 
|  | rustc_test("fuchsia_inspect_derive_tests") { | 
|  | edition = "2018" | 
|  | source_root = "src/main.rs" | 
|  |  | 
|  | deps = [ | 
|  | "//src/lib/diagnostics/inspect/derive", | 
|  | "//src/lib/diagnostics/inspect/rust", | 
|  | "//src/lib/fuchsia-async", | 
|  | "//third_party/rust_crates:futures", | 
|  | "//third_party/rust_crates:parking_lot", | 
|  | "//third_party/rust_crates:serde", | 
|  | ] | 
|  |  | 
|  | sources = [ "src/main.rs" ] | 
|  | } | 
|  |  | 
|  | rustc_test("fuchsia_inspect_derive_import_tests") { | 
|  | edition = "2018" | 
|  | source_root = "src/import.rs" | 
|  |  | 
|  | deps = [ "//src/lib/diagnostics/inspect/derive" ] | 
|  |  | 
|  | sources = [ "src/import.rs" ] | 
|  | } | 
|  |  | 
|  | fuchsia_component("fuchsia-inspect-derive-test") { | 
|  | testonly = true | 
|  | manifest = "meta/fuchsia-inspect-derive-test.cmx" | 
|  | deps = [ ":fuchsia_inspect_derive_tests" ] | 
|  | } | 
|  |  | 
|  | fuchsia_component("fuchsia-inspect-derive-import-test") { | 
|  | testonly = true | 
|  | manifest = "meta/fuchsia-inspect-derive-import-test.cmx" | 
|  | deps = [ ":fuchsia_inspect_derive_import_tests" ] | 
|  | } | 
|  |  | 
|  | fuchsia_test_package("fuchsia-inspect-derive-tests") { | 
|  | test_components = [ | 
|  | ":fuchsia-inspect-derive-test", | 
|  | ":fuchsia-inspect-derive-import-test", | 
|  | ] | 
|  | } | 
|  |  | 
|  | group("tests") { | 
|  | testonly = true | 
|  | deps = [ ":fuchsia-inspect-derive-tests" ] | 
|  | } |