| # Copyright 2023 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") | |
| executable("bin") { | |
| output_dir = target_out_dir | |
| output_name = "async_patterns_unittests" | |
| sources = [ | |
| "dispatcher_bound_test.cc", | |
| "receiver_test.cc", | |
| "sendable_test.cc", | |
| "task_queue_test.cc", | |
| "task_scope_test.cc", | |
| ] | |
| deps = [ | |
| "//sdk/lib/async:async-cpp", | |
| "//sdk/lib/async-loop:async-loop-cpp", | |
| "//sdk/lib/async-loop-testing/cpp", | |
| "//sdk/lib/async-testing", | |
| "//sdk/lib/async_patterns/cpp", | |
| "//src/lib/fxl/test:gtest_main", | |
| "//src/lib/testing/predicates", | |
| "//src/sys/test_runners/gtest:death_test", | |
| "//third_party/googletest:gtest", | |
| "//zircon/system/ulib/sync:sync-cpp", | |
| ] | |
| testonly = true | |
| } | |
| fuchsia_unittest_package("async_patterns_tests") { | |
| deps = [ ":bin" ] | |
| } | |
| group("tests") { | |
| testonly = true | |
| deps = [ ":async_patterns_tests" ] | |
| } |