blob: 75174442a26e935572670657b4f252be14fa7f54 [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/test.gni")
import("//src/sys/build/fuchsia_unittest_package.gni")
group("test") {
testonly = true
deps = [ ":debugdata" ]
}
test("debugdata") {
output_name = "debugdata-test"
if (is_fuchsia) {
configs += [ "//build/unification/config:zircon-migrated" ]
}
sources = [ "debugdata.cc" ]
deps = [
"//src/lib/storage/vfs/cpp",
"//zircon/public/lib/zx",
"//zircon/public/lib/zxtest",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/debugdata",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
]
# TODO(fxbug.dev/69585): This target uses raw zx::channel with LLCPP which is deprecated.
# Please migrate to typed channel APIs (fidl::ClientEnd<T>, fidl::ServerEnd<T>).
# See linked bug for details.
configs += [ "//build/cpp:fidl-llcpp-deprecated-raw-channels" ]
}
fuchsia_unittest_package("debugdata-test-pkg") {
package_name = "debugdata-test"
deps = [ ":debugdata" ]
}
group("tests") {
testonly = true
deps = [ ":debugdata-test-pkg" ]
}