blob: 65d3c447a0752b1aabf6d816c4fd8e1a9674d937 [file] [log] [blame]
# Copyright 2020 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/test/test_package.gni")
import("//build/testing/environments.gni")
source_set("cpp") {
sources = [
"executor.cc",
"executor.h",
]
public_deps = [
"//src/lib/fuchsia-async:fuchsia-async-staticlib",
"//zircon/public/lib/async",
]
}
executable("test_bin") {
testonly = true
output_name = "fuchsia-async-cpp-test"
sources = [ "executor_test.cc" ]
deps = [
":cpp",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
unittest_package("fuchsia-async-cpp-test") {
deps = [ ":test_bin" ]
tests = [
{
name = "fuchsia-async-cpp-test"
environments = [ emu_env ]
},
]
}
group("tests") {
testonly = true
deps = [
":fuchsia-async-cpp-test",
":test_bin($host_toolchain)",
]
}