blob: 13e5712b7de3f0fa7faf81a0a260ec73d96c607e [file] [log] [blame]
# Copyright 2020 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/fidl/fidl.gni")
executable("bin") {
testonly = true
output_name = "simple_tests"
sources = [
"client_tests.c",
"ldsvc_tests.c",
"server_tests.c",
"spaceship_tests.c",
"spaceship_tests.cc",
]
deps = [
":fidl.test.echo_c",
":fidl.test.spaceship_c",
"//sdk/fidl/fuchsia.ldsvc:fuchsia.ldsvc_c",
"//sdk/fidl/fuchsia.mem:fuchsia.mem_c",
"//sdk/lib/fdio",
"//zircon/system/ulib/async",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/async-loop",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fidl-utils",
"//zircon/system/ulib/ldmsg",
"//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" ]
}
fidl("fidl.test.echo") {
visibility = [ ":*" ]
sources = [ "echo.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
fidl("fidl.test.spaceship") {
visibility = [ ":*" ]
sources = [ "spaceship.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}