blob: ec6cce62cf2b1f9793a9755f70f7529c965cf4d6 [file] [log] [blame]
# Copyright 2016 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")
source_set("demux") {
sources = [
"byte_rate_estimator.cc",
"byte_rate_estimator.h",
"demux.h",
"file_reader.cc",
"file_reader.h",
"reader.h",
"reader_cache.cc",
"reader_cache.h",
"sliding_buffer.cc",
"sliding_buffer.h",
]
public_deps = [
"//zircon/public/lib/async-cpp",
"//zircon/public/lib/fit",
"//zircon/public/lib/zx",
]
deps = [
"//sdk/lib/syslog/cpp",
"//src/lib/fsl",
"//src/media/playback/mediaplayer/graph",
"//src/media/playback/mediaplayer/util",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}
test("tests") {
output_name = "mediaplayer_demux_tests"
sources = [
"test/byte_rate_estimator_test.cc",
"test/reader_cache_test.cc",
"test/sliding_buffer_test.cc",
]
deps = [
":demux",
"//src/lib/fxl/test:gtest_main",
]
# TODO(fxbug.dev/58162): delete the below and fix compiler warnings
configs += [ "//build/config:Wno-conversion" ]
}