blob: 0441784b950d3d38362873f1f5dfd0fd18b58167 [file] [log] [blame]
# Copyright 2021 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")
source_set("metrics_buffer") {
sources = [
"metrics_buffer.cc",
"metrics_buffer.h",
]
public_deps = [
"//src/lib/cobalt/cpp:cobalt_event_builder",
"//src/lib/cobalt/cpp:cobalt_logger",
"//zircon/system/ulib/async-loop:async-loop-cpp",
"//zircon/system/ulib/async-loop:async-loop-default",
"//zircon/system/ulib/syslog",
# Only for <ddk/debug.h>'s severity levels.
"//src/lib/ddk",
]
# //src/lib/cobalt/cpp:cobalt_logger is deprecated, so no new users should be added to this list.
visibility = [
":metrics_buffer_unittests",
"//src/devices/sysmem/drivers/sysmem:sysmem_common_srcs",
"//src/lib",
"//src/media/drivers/amlogic_decoder:sources",
"//src/media/lib/codec_impl",
]
}
executable("metrics_buffer_unittests") {
testonly = true
sources = [ "metrics_buffer_unittests.cc" ]
deps = [
":metrics_buffer",
"//sdk/fidl/fuchsia.cobalt:fuchsia.cobalt_cpp_wire",
"//sdk/lib/fdio:fdio",
"//sdk/lib/sys/cpp",
"//src/lib/fxl/test:gtest_main",
"//third_party/googletest:gtest",
]
}
fuchsia_unittest_package("metrics_buffer_tests") {
deps = [ ":metrics_buffer_unittests" ]
}
group("tests") {
testonly = true
deps = [ ":metrics_buffer_tests" ]
}