| # 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/components.gni") | |
| import("//build/rust/rustc_library.gni") | |
| import("//src/storage/testing/driver_test_realm.gni") | |
| rustc_library("payload_streamer") { | |
| edition = "2021" | |
| with_unit_tests = true | |
| deps = [ | |
| "//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_rust", | |
| "//sdk/fidl/fuchsia.paver:fuchsia.paver_rust", | |
| "//src/lib/fuchsia-component", | |
| "//src/lib/mapped-vmo", | |
| "//src/lib/storage/block_client/rust:remote-block-device", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:anyhow", | |
| "//third_party/rust_crates:async-trait", | |
| "//third_party/rust_crates:futures", | |
| ] | |
| test_deps = [ | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/storage/ramdevice_client", | |
| "//third_party/rust_crates:futures", | |
| ] | |
| sources = [ "src/lib.rs" ] | |
| } | |
| storage_driver_test_realm_v2_component("payload-streamer-tests") { | |
| deps = [ ":payload_streamer_test" ] | |
| } | |
| fuchsia_test_package("payload-streamer-unittests") { | |
| test_specs = { | |
| log_settings = { | |
| max_severity = "ERROR" | |
| } | |
| } | |
| test_components = [ ":payload-streamer-tests" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":payload-streamer-unittests" ] | |
| } |