| # 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. |
| |
| import("//build/host.gni") |
| import("//build/rust/rustc_library.gni") |
| |
| # The `routing_test_helpers` library provides test harnesses for users of |
| # the `routing` library. |
| rustc_library("routing_test_helpers") { |
| edition = "2018" |
| |
| testonly = true |
| |
| visibility = [ |
| "//src/sys/component_manager/*", |
| "//src/sys/lib/routing/*", |
| "//tools/lib/cm_fidl_analyzer/*", |
| ] |
| |
| deps = [ |
| "//sdk/fidl/fuchsia.component:fuchsia.component-rustc", |
| "//sdk/fidl/fuchsia.component.internal:fuchsia.component.internal-rustc", |
| "//sdk/fidl/fuchsia.data:fuchsia.data-rustc", |
| "//sdk/fidl/fuchsia.sys2:fuchsia.sys2-rustc", |
| "//src/lib/fidl/rust/fidl", |
| "//src/lib/zircon/rust:fuchsia-zircon-status", |
| "//src/sys/lib/cm_rust", |
| "//src/sys/lib/cm_rust/testing", |
| "//src/sys/lib/component_id_index", |
| "//src/sys/lib/moniker", |
| "//src/sys/lib/routing", |
| "//third_party/rust_crates:anyhow", |
| "//third_party/rust_crates:async-trait", |
| "//third_party/rust_crates:maplit", |
| "//third_party/rust_crates:matches", |
| "//third_party/rust_crates:rand", |
| "//third_party/rust_crates:tempfile", |
| ] |
| |
| sources = [ |
| "src/component_id_index.rs", |
| "src/lib.rs", |
| "src/policy.rs", |
| "src/rights.rs", |
| "src/storage.rs", |
| "src/storage_admin.rs", |
| ] |
| } |