blob: 2002e6b6630c4a4ec4ea6df742160aec34431018 [file] [log] [blame]
# 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/package.gni")
import("//build/rust/rustc_library.gni")
import("//build/test/test_package.gni")
rustc_library("mock-resolver") {
version = "0.1.0"
edition = "2018"
with_unit_tests = true
deps = [
"//sdk/fidl/fuchsia.io:fuchsia.io-rustc",
"//sdk/fidl/fuchsia.pkg:fuchsia.pkg-rustc",
"//src/lib/fdio/rust:fdio",
"//src/lib/fidl/rust/fidl",
"//src/lib/fuchsia-async",
"//src/lib/zircon/rust:fuchsia-zircon",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:tempfile",
]
test_deps = [
"//garnet/lib/rust/io_util",
"//third_party/rust_crates:matches",
]
sources = [ "src/lib.rs" ]
}
test_package("mock-resolver-tests") {
deps = [ ":mock-resolver_test" ]
tests = [
{
name = "mock_resolver_lib_test"
dest = "mock-resolver-lib-test"
},
]
}
group("tests") {
testonly = true
public_deps = [ ":mock-resolver-tests" ]
}