blob: 1b4037e5e9bb510e316e606b5a3cd7bf90e4efac [file] [log] [blame]
# 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/rust/rustc_library.gni")
import("//build/rust/rustc_test.gni")
handle_test_sources = [
"src/channel.rs",
"src/lib.rs",
"src/socket.rs",
]
handle_test_deps = [
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//third_party/rust_crates:async-trait",
"//third_party/rust_crates:futures",
]
if (is_fuchsia) {
handle_test_deps += [ "//src/lib/zircon/rust:fuchsia-zircon" ]
}
rustc_test("fidl_rust_handle_tests") {
edition = "2018"
sources = handle_test_sources
deps = handle_test_deps
}
# Also build as a library for use in overnet tests.
rustc_library("fidl_handle_tests") {
edition = "2018"
sources = handle_test_sources
deps = handle_test_deps
}