blob: ec66364dd8e5f599134158fa27e2d5bd12a86a41 [file] [log] [blame]
# Copyright 2019 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/testing/cc_test_executable.gni")
group("unit_tests") {
testonly = true
deps = [
":codec_impl_unit_tests",
":decryptor_adapter_tests",
]
}
cc_test_executable("codec_impl_unit_tests_bin") {
testonly = true
output_name = "codec_impl_unit_tests"
sources = []
deps = [
":codec_impl_tests",
"//src/lib/fxl/test:gtest_main",
"//src/sys/test_runners/gtest:death_test",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("codec_impl_unit_tests") {
deps = [ ":codec_impl_unit_tests_bin" ]
test_specs = {
environments = basic_envs
}
}
source_set("codec_impl_tests") {
testonly = true
sources = [
"test_admission_control.cc",
"test_failures.cc",
"test_fake_map_range.cc",
"test_lifetime.cc",
]
deps = [
"//sdk/fidl/fuchsia.sysmem2:fuchsia.sysmem2_hlcpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//src/lib/testing/loop_fixture",
"//src/media/lib/codec_impl",
"//src/media/lib/codec_impl/test_utils",
"//third_party/googletest:gtest",
"//zircon/system/ulib/zx",
]
}
cc_test_executable("decryptor_adapter_tests_bin") {
testonly = true
output_name = "decryptor_adapter_tests"
sources = [ "test_decryptor_adapter.cc" ]
deps = [
"//sdk/fidl/fuchsia.sysmem:fuchsia.sysmem_hlcpp",
"//sdk/lib/async-loop:async-loop-cpp",
"//sdk/lib/async-loop:async-loop-default",
"//sdk/lib/fit",
"//sdk/lib/inspect/testing/cpp",
"//sdk/lib/sys/cpp",
"//src/lib/fsl",
"//src/lib/fxl/test:gtest_main",
"//src/lib/testing/loop_fixture:gtest",
"//src/media/lib/codec_impl",
"//third_party/googletest:gtest",
"//zircon/system/ulib/zx",
]
# TODO(https://fxbug.dev/42136089): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_unittest_package("decryptor_adapter_tests") {
manifest = "meta/decryptor_adapter_tests.cml"
deps = [ ":decryptor_adapter_tests_bin" ]
test_specs = {
environments = basic_envs
}
test_type = "system"
}