| # Copyright 2023 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("tests") { |
| testonly = true |
| deps = [ ":usb-phy-tests" ] |
| } |
| |
| test("usb-phy-test-bin") { |
| output_name = "usb-phy-test" |
| sources = [ "usb-phy-test.cc" ] |
| deps = [ |
| "//sdk/lib/async_patterns/testing/cpp", |
| "//src/devices/testing/mock-ddk:mock-ddk", |
| "//src/devices/usb/lib/usb-phy", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_component("usb-phy-test") { |
| deps = [ ":usb-phy-test-bin" ] |
| } |
| |
| fuchsia_test_package("usb-phy-tests") { |
| test_components = [ ":usb-phy-test" ] |
| } |