blob: 2b54a0eaa64f397a21f3c3ca18291cb1dfb89b1f [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/test.gni")
import("//build/test/test_package.gni")
import("//build/testing/environments.gni")
group("test") {
testonly = true
deps = [
":chunk_input_stream_tests",
":mpsc_queue_tests",
":raw_frames",
":raw_frames_test",
":raw_frames_test_bin",
":timestamp_extrapolator_tests",
]
}
source_set("raw_frames") {
sources = [
"raw_frames.cc",
]
public = [
"raw_frames.h",
]
public_deps = [
"//garnet/lib/media/codec_impl:fourcc",
"//sdk/fidl/fuchsia.images",
"//sdk/fidl/fuchsia.mediacodec",
"//zircon/public/lib/fzl",
]
}
executable("raw_frames_test_bin") {
output_name = "raw_frames_test"
testonly = true
sources = [
"test/raw_frames_test.cc",
]
deps = [
":raw_frames",
"//garnet/lib/media/test:frame_sink",
"//garnet/public/lib/component/cpp",
"//src/lib/fxl",
"//third_party/boringssl:crypto",
"//third_party/googletest:gtest_main",
"//zircon/public/lib/async-loop-cpp",
]
}
test_package("raw_frames_test") {
deps = [
":raw_frames_test_bin",
]
tests = [
{
name = "raw_frames_test"
environments = basic_envs
},
]
resources = [
{
path = rebase_path(
"../../../../test_data/media/third_party/chromium_media_test_data/bear_320x192_40frames.yuv")
dest = "bear_320x192_40frames.yuv"
},
]
}
executable("timestamp_extrapolator_test_bin") {
output_name = "timestamp_extrapolator_tests"
testonly = true
sources = [
"timestamp_extrapolator_tests.cc",
]
deps = [
"//garnet/bin/media/codecs:timestamp_extrapolator",
"//third_party/googletest:gtest_main",
]
}
test_package("timestamp_extrapolator_tests") {
deps = [
":timestamp_extrapolator_test_bin",
]
tests = [
{
name = "timestamp_extrapolator_tests"
environments = basic_envs
},
]
}
executable("mpsc_queue_test_bin") {
output_name = "mpsc_queue_tests"
testonly = true
sources = [
"mpsc_queue_tests.cc",
]
deps = [
"//garnet/bin/media/codecs:mpsc_queue",
"//garnet/public/lib/fsl",
"//third_party/googletest:gtest_main",
"//zircon/public/lib/async-loop-cpp",
]
}
test_package("mpsc_queue_tests") {
deps = [
":mpsc_queue_test_bin",
]
tests = [
{
name = "mpsc_queue_tests"
environments = basic_envs
},
]
}
executable("chunk_input_stream_test_bin") {
output_name = "chunk_input_stream_tests"
testonly = true
sources = [
"chunk_input_stream_tests.cc",
]
deps = [
"//garnet/bin/media/codecs:chunk_input_stream",
"//src/lib/fxl",
"//third_party/googletest:gtest_main",
]
}
test_package("chunk_input_stream_tests") {
deps = [
":chunk_input_stream_test_bin",
]
tests = [
{
name = "chunk_input_stream_tests"
environments = basic_envs
},
]
}