blob: 042b027b88182284473c157758a4e755cc18b7e1 [file] [log] [blame]
# 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("$zx/public/gn/fidl.gni")
fidl_library("fuchsia.device.power.test") {
visibility = [ ":*" ]
sources = [
"test.fidl",
]
public_deps = [
"$zx/system/fidl/fuchsia-device",
]
}
if (current_toolchain != default_toolchain) {
driver("ddk-power-test") {
sources = [
"test-driver.cc",
]
deps = [
"$zx/system/ulib/ddk",
"$zx/system/ulib/ddktl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/zircon",
":fuchsia.device.power.test.llcpp",
]
# TODO(ZX-2863): This driver violates the allowed shlib deps policy.
# Tests fail when using #"$zx/system/ulib/fdio:static",
deprecated_inhibit_driver_shlib_allowlist = true
}
driver("ddk-power-test-child") {
sources = [
"test-driver-child.cc",
]
deps = [
"$zx/system/ulib/ddk",
"$zx/system/ulib/ddktl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/zircon",
":fuchsia.device.power.test.llcpp",
]
# TODO(ZX-2863): This driver violates the allowed shlib deps policy.
deprecated_inhibit_driver_shlib_allowlist = true
}
test("ddk-power") {
sources = [
"test.cc",
]
deps = [
"$zx/system/fidl/fuchsia-device:c",
"$zx/system/fidl/fuchsia-device-manager:c",
":fuchsia.device.power.test.llcpp",
"$zx/system/ulib/ddk",
"$zx/system/ulib/devmgr-integration-test",
"$zx/system/ulib/devmgr-launcher",
"$zx/system/ulib/driver-integration-test",
"$zx/system/ulib/fbl",
"$zx/system/ulib/fdio",
"$zx/system/ulib/zircon",
"$zx/system/ulib/zx",
"$zx/system/ulib/zxtest",
]
}
}