blob: 891bf337cab2175f9e8f9b779a54d0e828c75a6d [file] [log] [blame]
# Copyright 2022 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")
test("service_hub_connector_tests_bin") {
output_name = "service_hub_connector_tests_bin"
sources = [ "service_hub_connector_test.cc" ]
deps = [
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/component/outgoing/cpp",
"//sdk/testing/fidl/protocols_tests:test.protocol.connector_cpp",
"//src/lib/fidl/cpp/contrib/connection:service_hub_connector",
"//src/lib/fxl/test:gtest_main",
"//src/lib/storage/vfs/cpp",
"//src/lib/testing/loop_fixture",
]
}
test("service_reconnector_tests_bin") {
output_name = "service_reconnector_tests_bin"
sources = [ "service_reconnector_test.cc" ]
deps = [
"//sdk/lib/component/incoming/cpp",
"//sdk/lib/component/outgoing/cpp",
"//sdk/testing/fidl/protocols_tests:test.protocol.connector_cpp",
"//src/lib/fidl/cpp/contrib/connection:service_reconnector",
"//src/lib/fxl/test:gtest_main",
"//src/lib/storage/vfs/cpp",
"//src/lib/testing/loop_fixture",
]
}
fuchsia_unittest_package("service_hub_connector_tests") {
# Required for death tests
manifest = "meta/service_hub_connector_tests.cml"
deps = [ ":service_hub_connector_tests_bin" ]
}
fuchsia_unittest_package("service_reconnector_tests") {
# Required for death tests
manifest = "meta/service_reconnector_tests.cml"
deps = [ ":service_reconnector_tests_bin" ]
}
group("connection") {
testonly = true
deps = [
":service_hub_connector_tests",
":service_reconnector_tests",
]
}