| # 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/fidl/fidl.gni") |
| import("//build/test.gni") |
| |
| group("dispatcher") { |
| testonly = true |
| deps = [ |
| ":fidl_llcpp_dispatcher_tests", |
| ":fidl_llcpp_endpoints_tests", |
| ":fidl_llcpp_private_intrusive_wavl_tree_tests", |
| ] |
| } |
| |
| source_set("client_test_helpers") { |
| public = [ |
| "client_checkers.h", |
| "mock_client_impl.h", |
| ] |
| testonly = true |
| visibility = [ ":*" ] |
| public_deps = [ |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/fidl:fidl-llcpp", |
| ] |
| } |
| |
| test("fidl_llcpp_dispatcher_tests_bin") { |
| output_name = "fidl_llcpp_dispatcher_tests" |
| public = [ "mock_client_impl.h" ] |
| sources = [ |
| "bind_server_overloads_test.cc", |
| "client_controller_test.cc", |
| "client_test.cc", |
| "server_test.cc", |
| "shared_client_test.cc", |
| "teardown_observer_test.cc", |
| "thread_checker_test.cc", |
| "transaction_tests.cc", |
| ] |
| deps = [ |
| ":client_test_helpers", |
| "//sdk/lib/stdcompat", |
| "//src/lib/fidl/llcpp/tests/integration:fidl.test.coding.fuchsia_llcpp", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_dispatcher_tests") { |
| deps = [ ":fidl_llcpp_dispatcher_tests_bin" ] |
| deprecated_legacy_test_execution = true |
| } |
| |
| test("fidl_llcpp_private_intrusive_wavl_tree_tests_bin") { |
| output_name = "fidl_llcpp_private_intrusive_wavl_tree_tests" |
| sources = [ "intrusive_wavl_tree_tests.cc" ] |
| deps = [ |
| "//zircon/public/lib/zxtest", |
| "//zircon/system/ulib/fbl", |
| "//zircon/system/ulib/fidl:fidl-llcpp", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_private_intrusive_wavl_tree_tests") { |
| deps = [ ":fidl_llcpp_private_intrusive_wavl_tree_tests_bin" ] |
| } |
| |
| test("fidl_llcpp_endpoints_tests_bin") { |
| output_name = "fidl_llcpp_endpoints_tests" |
| sources = [ |
| "client_end_test.cc", |
| "server_end_test.cc", |
| ] |
| deps = [ |
| "//src/lib/fidl/llcpp/tests/integration:llcpptest.protocol.test_llcpp", |
| "//src/lib/fxl/test:gtest_main", |
| "//third_party/googletest:gtest", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_llcpp_endpoints_tests") { |
| # Use `fuchsia.process.Launcher` for death tests |
| manifest = "meta/endpoints_tests.cmx" |
| deps = [ ":fidl_llcpp_endpoints_tests_bin" ] |
| } |