blob: 20f1ef9ffcec2bc64abd4c80d195c73db2a77f07 [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/components.gni")
import("//build/rust/rustc_library.gni")
rustc_library("mock-omaha-server") {
edition = "2021"
with_unit_tests = true
deps = [
"//src/lib/fuchsia-async",
"//src/lib/fuchsia-hyper",
"//src/sys/pkg/lib/fuchsia-merkle",
"//src/sys/pkg/lib/omaha-client",
"//third_party/rust_crates:anyhow",
"//third_party/rust_crates:derive_builder",
"//third_party/rust_crates:futures",
"//third_party/rust_crates:hex",
"//third_party/rust_crates:hyper",
"//third_party/rust_crates:p256",
"//third_party/rust_crates:parking_lot",
"//third_party/rust_crates:serde",
"//third_party/rust_crates:serde_json",
"//third_party/rust_crates:sha2",
"//third_party/rust_crates:url",
]
sources = [ "src/lib.rs" ]
}
fuchsia_unittest_package("mock-omaha-server-tests") {
manifest = "meta/mock-omaha-server-lib-test.cml"
deps = [
":mock-omaha-server_test",
"//src/connectivity/network/dns:component",
"//src/connectivity/network/netstack:component",
]
test_specs = {
log_settings = {
max_severity = "ERROR"
}
}
}
group("tests") {
testonly = true
public_deps = [ ":mock-omaha-server-tests" ]
}