blob: 42ca140cc87c46bf2c11d0ef6dff065a704c9713 [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/rust/rustc_library.gni")
import("//build/test/test_package.gni")
rustc_library("mock-omaha-server") {
edition = "2018"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper",
"//src/sys/pkg/lib/fuchsia-merkle",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
]
sources = [ "src/lib.rs" ]
}
test_package("mock-omaha-server-tests") {
deps = [ ":mock-omaha-server_test" ]
tests = [
{
name = "mock_omaha_server_lib_test"
dest = "mock-omaha-server-lib-test"
},
]
}
group("tests") {
testonly = true
public_deps = [ ":mock-omaha-server-tests" ]
}