| # Copyright 2025 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/fidl/fidl.gni") |
| import("//build/test.gni") |
| |
| fidl("test.metadata") { |
| sources = [ "test.metadata.fidl" ] |
| } |
| |
| test("driver-platform-device-test") { |
| sources = [ "pdev-test.cc" ] |
| |
| deps = [ |
| ":test.metadata_cpp", |
| "//sdk/fidl/fuchsia.hardware.platform.device:fuchsia.hardware.platform.device_cpp_testing", |
| "//sdk/lib/async-default", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//sdk/lib/driver/fake-bti/cpp", |
| "//sdk/lib/driver/fake-platform-device/cpp", |
| "//sdk/lib/driver/fake-resource/cpp", |
| "//sdk/lib/driver/mmio/testing/cpp", |
| "//sdk/lib/driver/platform-device/cpp", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("package") { |
| package_name = "driver-platform-device-test" |
| deps = [ ":driver-platform-device-test" ] |
| } |