blob: 13b62abc67821eef589c88de4ab57b451930b633 [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/package.gni")
import("//build/test/test_package.gni")
group("unit_tests") {
testonly = true
deps = [
":codec_impl_unit_tests",
":decryptor_adapter_tests",
]
}
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",
"//third_party/googletest:gtest",
]
}
test_package("codec_impl_unit_tests") {
deps = [ ":codec_impl_unit_tests_bin" ]
tests = [
{
name = "codec_impl_unit_tests"
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 = [
"//garnet/public/lib/gtest",
"//sdk/lib/stdcompat",
"//src/media/lib/codec_impl",
"//src/media/lib/codec_impl/test_utils",
"//third_party/googletest:gtest",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
}
executable("decryptor_adapter_tests_bin") {
testonly = true
output_name = "decryptor_adapter_tests"
sources = [ "test_decryptor_adapter.cc" ]
deps = [
"//sdk/fidl/fuchsia.sysmem",
"//sdk/lib/inspect/testing/cpp",
"//sdk/lib/sys/cpp/testing:integration",
"//src/lib/fxl/test:gtest_main",
"//src/media/lib/codec_impl",
"//third_party/googletest:gtest",
"//zircon/public/lib/fit",
"//zircon/public/lib/zx",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
test_package("decryptor_adapter_tests") {
deps = [ ":decryptor_adapter_tests_bin" ]
tests = [
{
name = "decryptor_adapter_tests"
environments = basic_envs
},
]
}