blob: b0a8aec16311ed821cbfb22f0d77c4c657da6978 [file] [log] [blame]
# Copyright 2021 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")
group("integration") {
testonly = true
deps = [
":fidl_llcpp_dispatcher_handle_ownership_tests",
":fidl_llcpp_flexible_tests",
":fidl_llcpp_gen_api_tests",
":fidl_llcpp_handle_raii_tests",
":fidl_llcpp_handle_rights_tests",
":fidl_llcpp_header_coding_tests",
":fidl_llcpp_protocol_tests",
":fidl_llcpp_unknown_interactions_tests",
":fidl_llcpp_v2_integration_tests",
":fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests",
]
}
fidl("llcpptest.dispatcher.handle.ownership.test") {
testonly = true
visibility = [ "//src/lib/fidl/llcpp/tests/*" ]
sources = [ "dispatcher_handle_ownership.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
test("fidl_llcpp_dispatcher_handle_ownership_tests_bin") {
output_name = "fidl_llcpp_dispatcher_handle_ownership_tests"
sources = [ "dispatcher_handle_ownership_test.cc" ]
deps = [
":llcpptest.dispatcher.handle.ownership.test_cpp_testing",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("fidl_llcpp_dispatcher_handle_ownership_tests") {
deps = [ ":fidl_llcpp_dispatcher_handle_ownership_tests_bin" ]
deprecated_legacy_test_execution = true
}
test("fidl_llcpp_unknown_interactions_tests_bin") {
output_name = "fidl_llcpp_unknown_interactions_tests"
sources = [ "unknown_interactions_tests.cc" ]
deps = [
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/testing/fidl/protocols_tests:test.unknown.interactions_cpp_testing",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gmock",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("fidl_llcpp_unknown_interactions_tests") {
deps = [ ":fidl_llcpp_unknown_interactions_tests_bin" ]
deprecated_legacy_test_execution = true
}
test("fidl_llcpp_gen_api_tests_bin") {
output_name = "fidl_llcpp_gen_api_tests"
sources = [
"client_gen_api_test.cc",
"server_gen_api_test.cc",
"sync_event_handler_test.cc",
]
deps = [
":fidl.test.coding.fuchsia_cpp_testing",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/testing/fidl/protocols_tests:test.basic.protocol_cpp",
"//sdk/testing/fidl/protocols_tests:test.basic.protocol_cpp_testing",
"//sdk/testing/fidl/protocols_tests:test.empty.protocol_cpp",
"//zircon/system/ulib/sync:sync-cpp",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("fidl_llcpp_gen_api_tests") {
deps = [ ":fidl_llcpp_gen_api_tests_bin" ]
}
test("fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests_bin") {
output_name = "fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests"
sources = [ "zircon_channel_client_over_driver_dispatcher_test.cc" ]
deps = [
"//sdk/lib/async:async-cpp",
"//sdk/lib/driver/runtime:driver_runtime_cpp",
"//sdk/lib/driver/runtime:driver_runtime_env",
"//sdk/testing/fidl/protocols_tests:test.empty.protocol_cpp",
"//src/devices/bin/driver_runtime",
"//src/devices/testing/driver-runtime-main:gtest",
"//src/lib/testing/predicates",
"//third_party/googletest:gtest",
"//zircon/system/ulib/sync:sync-cpp",
]
}
fuchsia_unittest_package(
"fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests") {
manifest =
"meta/fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests.cml"
deps =
[ ":fidl_llcpp_zircon_channel_client_over_driver_dispatcher_tests_bin" ]
}
fidl("fidl.test.coding.fuchsia") {
testonly = true
visibility = [
"//sdk/lib/fidl/cpp/tests/*",
"//src/lib/fidl/contrib/tests/*",
"//src/lib/fidl/llcpp/tests/*",
]
sources = [ "llcpp.test.fidl" ]
}
fidl("llcpptest.flexible.test") {
testonly = true
sources = [ "flexible.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
test("fidl_llcpp_flexible_tests_bin") {
output_name = "fidl_llcpp_flexible_tests"
sources = [ "flexible_test.cc" ]
deps = [
":llcpptest.flexible.test_cpp_testing",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//src/lib/fidl/llcpp/tests:types_test_utils",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_unittest_package("fidl_llcpp_flexible_tests") {
deps = [ ":fidl_llcpp_flexible_tests_bin" ]
deprecated_legacy_test_execution = true
}
fidl("llcpptest.handlerights.test") {
testonly = true
sources = [ "handle_rights.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
test("fidl_llcpp_handle_rights_tests_bin") {
output_name = "fidl_llcpp_handle_rights_tests"
sources = [ "handle_rights_test.cc" ]
deps = [
":llcpptest.handlerights.test_cpp",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//src/lib/fidl/llcpp/tests:types_test_utils",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("fidl_llcpp_handle_rights_tests") {
deps = [ ":fidl_llcpp_handle_rights_tests_bin" ]
deprecated_legacy_test_execution = true
}
fidl("llcpptest.protocol.test") {
testonly = true
sources = [ "protocol.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
test("fidl_llcpp_protocol_tests_bin") {
output_name = "fidl_llcpp_protocol_tests"
sources = [
"caller_allocating_test.cc",
"protocol_test.cc",
"sync_client_error_tests.cc",
]
deps = [
":llcpptest.protocol.test_cpp",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/testing/fidl/protocols_tests:test.empty.protocol_cpp",
"//sdk/testing/fidl/protocols_tests:test.error.methods_cpp",
"//src/lib/fidl/llcpp/tests:arena_checker",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("fidl_llcpp_protocol_tests") {
deps = [ ":fidl_llcpp_protocol_tests_bin" ]
deprecated_legacy_test_execution = true
}
fidl("llcpptest.handleraii.test") {
testonly = true
sources = [ "handle_raii.test.fidl" ]
public_deps = [ "//zircon/vdso/zx" ]
}
test("fidl_llcpp_handle_raii_tests_bin") {
output_name = "fidl_llcpp_handle_raii_tests"
sources = [ "handle_raii_test.cc" ]
deps = [
":llcpptest.handleraii.test_cpp",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//src/lib/fidl/llcpp/tests:types_test_utils",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("fidl_llcpp_handle_raii_tests") {
deps = [ ":fidl_llcpp_handle_raii_tests_bin" ]
deprecated_legacy_test_execution = true
}
fidl("llcpptest.v2integration.test") {
testonly = true
sources = [ "v2_integration.test.fidl" ]
}
test("fidl_llcpp_v2_integration_tests_bin") {
output_name = "fidl_llcpp_v2_integration_tests"
sources = [ "v2_integration_test.cc" ]
deps = [
":llcpptest.v2integration.test_cpp",
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("fidl_llcpp_v2_integration_tests") {
deps = [ ":fidl_llcpp_v2_integration_tests_bin" ]
}
test("fidl_llcpp_header_coding_tests_bin") {
output_name = "fidl_llcpp_header_coding_tests"
sources = [ "header_coding_test.cc" ]
deps = [
"//sdk/lib/async:async-cpp",
"//sdk/lib/async-loop",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/testing/fidl/protocols_tests:test.basic.protocol_cpp",
"//zircon/system/ulib/sync:sync-cpp",
"//zircon/system/ulib/zxtest",
]
}
fuchsia_unittest_package("fidl_llcpp_header_coding_tests") {
deps = [ ":fidl_llcpp_header_coding_tests_bin" ]
}