| # Copyright 2018 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/package.gni") |
| |
| source_set("async_promise") { |
| sources = [ |
| "executor.cc", |
| "executor.h", |
| ] |
| |
| public_deps = [ |
| "//zircon/public/lib/async", |
| "//zircon/public/lib/async-cpp", |
| "//zircon/public/lib/fit", |
| "//zircon/public/lib/zx", |
| ] |
| |
| public_configs = [ "//garnet/public:config" ] |
| } |
| |
| executable("async_promise_unittests") { |
| testonly = true |
| |
| sources = [ |
| "tests/executor_tests.cc", |
| "tests/main.c", |
| ] |
| |
| deps = [ |
| ":async_promise", |
| "//zircon/public/lib/async-loop-cpp", |
| "//zircon/public/lib/unittest", |
| ] |
| } |
| |
| package("async_promise_unittests_package") { |
| testonly = true |
| |
| deps = [ |
| ":async_promise_unittests", |
| ] |
| |
| tests = [ |
| { |
| name = "async_promise_unittests" |
| }, |
| ] |
| } |