blob: 780211e4e12d19af1b42943b2bf41db11d5dd823 [file]
# 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")
group("test") {
testonly = true
deps = [
":chunk_input_stream_tests",
":codec_adapter_sw_test",
":output_sink_tests",
":timestamp_extrapolator_tests",
]
}
executable("codec_adapter_sw_test_bin") {
output_name = "codec_adapter_sw_test"
testonly = true
sources = [ "codec_adapter_sw_test.cc" ]
deps = [
"//src/lib/fxl/test:gtest_main",
"//src/media/codec/codecs/sw:codec_adapter_sw",
]
}
fuchsia_unittest_package("codec_adapter_sw_test") {
deps = [ ":codec_adapter_sw_test_bin" ]
}
executable("timestamp_extrapolator_test_bin") {
output_name = "timestamp_extrapolator_tests"
testonly = true
sources = [ "timestamp_extrapolator_tests.cc" ]
deps = [
"//src/lib/fxl/test:gtest_main",
"//src/media/codec/codecs:timestamp_extrapolator",
]
}
fuchsia_unittest_package("timestamp_extrapolator_tests") {
deps = [ ":timestamp_extrapolator_test_bin" ]
}
source_set("test_codec_packets") {
testonly = true
public = [ "test_codec_packets.h" ]
public_deps = [
"//sdk/lib/syslog/cpp",
"//src/media/lib/codec_impl",
"//zircon/system/ulib/fzl",
]
}
executable("chunk_input_stream_test_bin") {
output_name = "chunk_input_stream_tests"
testonly = true
sources = [ "chunk_input_stream_tests.cc" ]
deps = [
":test_codec_packets",
"//src/lib/fxl/test:gtest_main",
"//src/media/codec/codecs:chunk_input_stream",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_unittest_package("chunk_input_stream_tests") {
deps = [ ":chunk_input_stream_test_bin" ]
}
executable("output_sink_test_bin") {
output_name = "output_sink_tests"
testonly = true
sources = [ "output_sink_tests.cc" ]
deps = [
":test_codec_packets",
"//src/lib/fxl/test:gtest_main",
"//src/media/codec/codecs:output_sink",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
fuchsia_unittest_package("output_sink_tests") {
deps = [ ":output_sink_test_bin" ]
}