| # 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_cpp_dispatcher_tests", |
| ":fidl_cpp_messaging_public_api_tests", |
| ] |
| } |
| |
| test("fidl_cpp_dispatcher_tests_bin") { |
| output_name = "fidl_cpp_dispatcher_tests" |
| sources = [ "client_test.cc" ] |
| deps = [ |
| "//sdk/lib/stdcompat", |
| "//src/lib/fidl/cpp", |
| "//src/lib/fidl/llcpp/tests/dispatcher:client_test_helpers", |
| "//zircon/system/ulib/async:async-cpp", |
| "//zircon/system/ulib/async-loop", |
| "//zircon/system/ulib/async-loop:async-loop-cpp", |
| "//zircon/system/ulib/async-loop:async-loop-default", |
| "//zircon/system/ulib/zxtest", |
| ] |
| |
| # TODO(https://fxbug.dev/58162): delete the below and fix compiler warnings |
| configs += [ "//build/config:Wno-conversion" ] |
| } |
| |
| fuchsia_unittest_package("fidl_cpp_dispatcher_tests") { |
| deps = [ ":fidl_cpp_dispatcher_tests_bin" ] |
| } |
| |
| # Tests the public API of the unified messaging layer, along with any generated |
| # bindings code. |
| test("fidl_cpp_messaging_public_api_tests_bin") { |
| output_name = "fidl_cpp_messaging_public_api_tests" |
| sources = [ "request_response_wrapper_test.cc" ] |
| deps = [ |
| "//sdk/lib/stdcompat", |
| "//sdk/testing/fidl/types_tests:test.types_cpp", |
| "//src/lib/fidl/cpp", |
| "//zircon/system/ulib/zxtest", |
| ] |
| } |
| |
| fuchsia_unittest_package("fidl_cpp_messaging_public_api_tests") { |
| deps = [ ":fidl_cpp_messaging_public_api_tests_bin" ] |
| } |