| # 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/components.gni") | |
| import("//build/rust/rustc_test.gni") | |
| rustc_test("http_client_integration_test") { | |
| edition = "2018" | |
| deps = [ | |
| "//sdk/fidl/fuchsia.net.http:fuchsia.net.http-rustc", | |
| "//src/lib/fidl/rust/fidl", | |
| "//src/lib/fuchsia-async", | |
| "//src/lib/fuchsia-component-test", | |
| "//src/lib/fuchsia-hyper", | |
| "//src/lib/zircon/rust:fuchsia-zircon", | |
| "//third_party/rust_crates:futures", | |
| "//third_party/rust_crates:hyper", | |
| ] | |
| sources = [ "src/lib.rs" ] | |
| configs -= [ "//build/config/rust:allow_unused_results" ] | |
| } | |
| fuchsia_component("component") { | |
| component_name = "http-client-integration-test" | |
| testonly = true | |
| manifest = "meta/http_client_integration_test.cml" | |
| deps = [ ":http_client_integration_test" ] | |
| } | |
| fuchsia_test_package("http-client-integration-tests") { | |
| test_components = [ ":component" ] | |
| deps = [ | |
| # The component under test. | |
| "../:component", | |
| "//src/connectivity/network/netstack:component-debug", | |
| ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":http-client-integration-tests" ] | |
| } |