blob: 47c85f20f75b1d6eff54a4f9661ff1e17cf61ea6 [file] [log] [blame]
# Copyright 2021 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/cpp/library_headers.gni")
import("//build/test.gni")
library_headers("pci-protocol-fake") {
include_dir = "."
headers = [ "pci_protocol_fake.h" ]
public_deps = [
"//sdk/banjo/fuchsia.hardware.pci",
"//src/devices/testing/fake-bti",
]
testonly = true
}
test("pci-protocol-fake-test") {
sources = [ "pci_protocol_fake_tests.cc" ]
deps = [
"//src/devices/lib/mmio",
"//src/devices/pci/lib/device-protocol-pci",
"//src/devices/pci/testing:pci-protocol-fake",
"//zircon/public/lib/zxtest",
]
}
fuchsia_unittest_package("pci-protocol-fake-test-package") {
component_name = "pci-protocol-fake-test"
deps = [ ":pci-protocol-fake-test" ]
}
group("tests") {
testonly = true
deps = [ ":pci-protocol-fake-test-package" ]
}