| # Copyright 2024 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") |
| |
| test("child-driver-test") { |
| output_name = "zircon_transport_example_test" |
| sources = [ |
| "//examples/drivers/transport/zircon/v2/child-driver.cc", |
| "child-driver-test.cc", |
| ] |
| deps = [ |
| "//sdk/fidl/fuchsia.hardware.i2c:fuchsia.hardware.i2c_cpp", |
| "//sdk/lib/driver/testing/cpp", |
| "//src/lib/fxl/test:gtest_main", |
| ] |
| } |
| |
| fuchsia_unittest_package("child-driver-hermetic-test-pkg") { |
| package_name = "zircon_transport_example_test" |
| deps = [ ":child-driver-test" ] |
| } |