blob: 446419bc89fcb9bb9d55b9211639e122bac9a5fe [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.
# This file was generated by the `fx create` command. The template
# is located at `//tools/create/templates/component-test/BUILD.gn.tmpl-cpp`.
# If you find something broken, we are eager to review fixes.
import("//build/components.gni")
import("//build/test.gni")
group("tests") {
testonly = true
deps = [ ":package" ]
}
test("bin") {
output_name = "my-component-test-cpp"
deps = [
"//sdk/fidl/fuchsia.component:fuchsia.component_hlcpp",
"//sdk/fidl/fuchsia.sys2:fuchsia.sys2_hlcpp",
"//sdk/lib/diagnostics/reader/cpp:archive_reader",
"//sdk/lib/sys/cpp",
"//sdk/lib/syslog/cpp",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-default",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/zx",
]
sources = [ "my_component_test_cpp.cc" ]
}
fuchsia_component("component") {
testonly = true
component_name = "my-component-test-cpp"
manifest = "meta/my_component_test_cpp.cml"
deps = [ ":bin" ]
}
# Run with `fx test my-component-test-cpp-tests`.
fuchsia_test_package("package") {
package_name = "my-component-test-cpp-tests"
test_components = [ ":component" ]
}