blob: dc5ef21e81c2852bab8e324d991e23c3bb72fe27 [file] [log] [blame] [edit]
# Copyright 2018 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.
source_set("cobalt_logger") {
sources = [
"cobalt_logger.cc",
"cobalt_logger.h",
"cobalt_logger_impl.cc",
"cobalt_logger_impl.h",
]
public_deps = [
"//sdk/lib/sys/cpp",
"//src/lib/fxl",
"//src/lib/syslog/cpp",
"//zircon/public/lib/fit",
"//zircon/system/fidl/fuchsia-cobalt",
]
deps = [
"//src/lib/backoff",
"//src/lib/fsl",
]
}
source_set("unittests") {
testonly = true
sources = [
"cobalt_event_builder_unittest.cc",
"cobalt_logger_unittest.cc",
"metric_event_builder_unittest.cc",
]
public_deps = [ "//garnet/public/lib/gtest" ]
deps = [
":cobalt_event_builder",
":cobalt_logger",
":metric_event_builder",
"//sdk/lib/sys/cpp/testing:unit",
"//src/lib/fsl",
"//third_party/googletest:gtest",
"//zircon/system/ulib/async-testing",
]
}
source_set("cobalt_event_builder") {
sources = [
"cobalt_event_builder.cc",
"cobalt_event_builder.h",
]
configs += [ "//third_party/cobalt:cobalt_config" ]
public_deps = [ "//zircon/system/fidl/fuchsia-cobalt" ]
deps = [ "//src/lib/fxl:fxl_logging" ]
}
source_set("metric_event_builder") {
sources = [
"metric_event_builder.cc",
"metric_event_builder.h",
]
configs += [ "//third_party/cobalt:cobalt_config" ]
public_deps = [ "//zircon/system/fidl/fuchsia-cobalt" ]
deps = [ "//src/lib/fxl:fxl_logging" ]
}