| # 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/test.gni") |
| |
| group("transport") { |
| testonly = true |
| deps = [ |
| ":fidl_llcpp_channel_transport_tests", |
| ":fidl_llcpp_transport_integration_tests", |
| ":fidl_llcpp_transport_tests", |
| ] |
| } |
| |
| test("fidl_llcpp_transport_tests_bin") { |
| output_name = "fidl_llcpp_transport_tests" |
| sources = [ |
| "coding_test.cc", |
| "context_test.cc", |
| "waiter_test.cc", |
| ] |
| deps = [ |
| "//sdk/lib/fidl/cpp/wire", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_transport_tests") { |
| deps = [ ":fidl_llcpp_transport_tests_bin" ] |
| } |
| |
| test("fidl_llcpp_channel_transport_tests_bin") { |
| output_name = "fidl_llcpp_channel_transport_tests" |
| sources = [ "channel_transport_test.cc" ] |
| deps = [ |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/async-loop", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/fidl/cpp/wire", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_channel_transport_tests") { |
| deps = [ ":fidl_llcpp_channel_transport_tests_bin" ] |
| } |
| |
| test("fidl_llcpp_transport_integration_tests_bin") { |
| output_name = "fidl_llcpp_transport_integration_tests" |
| sources = [ |
| "socket_integration_test.cc", |
| "transport_socket.cc", |
| ] |
| deps = [ |
| "//sdk/lib/async:async-cpp", |
| "//sdk/lib/async-loop", |
| "//sdk/lib/async-loop:async-loop-cpp", |
| "//sdk/lib/async-loop:async-loop-default", |
| "//sdk/lib/fidl/cpp/wire", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_transport_integration_tests") { |
| deps = [ ":fidl_llcpp_transport_integration_tests_bin" ] |
| } |