blob: 755e9dc3ae9e27e6c8d4d34e8907a04942928302 [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 = "llcpp_interop_tests"
sources = [
"basictypes_tests.cc",
"controlflow_tests.cc",
"dirent_tests.cc",
]
deps = [
":fidl.test.llcpp.basictypes_c",
":fidl.test.llcpp.basictypes_llcpp",
":fidl.test.llcpp.controlflow_c",
":fidl.test.llcpp.controlflow_llcpp",
":fidl.test.llcpp.dirent_c",
":fidl.test.llcpp.dirent_llcpp",
"//sdk/lib/fdio",
"//zircon/system/ulib/async:async-cpp",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/fbl",
"//zircon/system/ulib/fidl",
"//zircon/system/ulib/fidl-async",
"//zircon/system/ulib/fidl-async:fidl-async-cpp",
"//zircon/system/ulib/fidl-utils",
"//zircon/system/ulib/zx",
"//zircon/system/ulib/zxtest",
]
# 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" ]
# 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.llcpp.basictypes") {
visibility = [ ":*" ]
sources = [ "basictypes.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
fidl("fidl.test.llcpp.controlflow") {
visibility = [ ":*" ]
sources = [ "controlflow.test.fidl" ]
}
fidl("fidl.test.llcpp.dirent") {
visibility = [ ":*" ]
sources = [ "dirent.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}