blob: ad67fbaae415fa8716901b52e44214d8d179140e [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("//build/components.gni")
import("//build/test.gni")
group("test") {
testonly = true
deps = [ ":storage-metrics" ]
}
test("storage-metrics") {
output_dir = "$root_out_dir/zircon-migrated"
sources = [ "storage-metrics-test.cc" ]
deps = [
"//sdk/banjo/fuchsia.hardware.block:fuchsia.hardware.block_banjo_cpp",
"//sdk/fidl/fuchsia.hardware.block:fuchsia.hardware.block_c",
"//sdk/fidl/fuchsia.storage.metrics:fuchsia.storage.metrics_c",
"//sdk/lib/fdio",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/storage-metrics",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
]
# TODO(fxbug.dev/95833): This target uses the deprecated C bindings.
# Consider switching to the C++ bindings. See linked bug for details.
configs += [ "//build/c:fidl-deprecated-c-bindings" ]
}
fuchsia_unittest_package("storage-metrics-test-pkg") {
package_name = "storage-metrics"
deps = [ ":storage-metrics" ]
}
group("tests") {
testonly = true
deps = [ ":storage-metrics-test-pkg" ]
}