| # 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/test.gni") |
| |
| group("test") { |
| testonly = true |
| deps = [ ":fastboot-test-package" ] |
| } |
| |
| source_set("utils") { |
| public = [ "../include/lib/fastboot/test/test-transport" ] |
| sources = [ "test-transport.cc" ] |
| public_configs = [ "..:include" ] |
| deps = [ "//zircon/system/ulib/zx" ] |
| } |
| |
| test("fastboot-test") { |
| sources = [ |
| "fastboot-test.cc", |
| "payload-streamer-test.cc", |
| "rust-test.cc", |
| ] |
| include_dirs = [ |
| "..", |
| "../include", |
| ] |
| deps = [ |
| ":utils", |
| "..:lib", |
| "../rust:fastboot-c", |
| "//sdk/fidl/fuchsia.boot:fuchsia.boot_cpp", |
| "//sdk/fidl/fuchsia.buildinfo:fuchsia.buildinfo_cpp_testing", |
| "//sdk/fidl/fuchsia.fshost:fuchsia.fshost_cpp_testing", |
| "//sdk/fidl/fuchsia.hardware.power.statecontrol:fuchsia.hardware.power.statecontrol_cpp_testing", |
| "//sdk/fidl/fuchsia.paver:fuchsia.paver_cpp_testing", |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/async-default", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/async_patterns/cpp", |
| "//sdk/lib/component/incoming/cpp", |
| "//sdk/lib/component/outgoing/cpp", |
| "//src/lib/fxl", |
| "//src/storage/lib/vfs/cpp", |
| "//src/storage/testing:fake-paver", |
| "//zircon/system/ulib/zx", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("fastboot-test-package") { |
| package_name = "fastboot-test" |
| deps = [ ":fastboot-test" ] |
| } |