blob: a8a29e00474c4b7c01548529969dc9779895747e [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("//src/connectivity/bluetooth/core/bt-host/build/bt_gtest_package.gni")
import("//third_party/cobalt/metrics_registry.gni")
import("//third_party/protobuf/proto_library.gni")
metrics_registry("registry") {
# This must match the ID of our Cobalt project as specified in:
# third_party/cobalt_config/projects.yaml
project_id = 2322225253
generate_cc = true
generate_binarypb = false
}
source_set("base") {
sources = [ "logger.h" ]
public_deps = [
":registry_cc",
"//src/lib/fxl",
"//zircon/public/lib/fbl",
]
}
source_set("real") {
sources = [
"cobalt_logger.cc",
"cobalt_logger.h",
]
deps = [ "//src/connectivity/bluetooth/core/bt-host/common" ]
public_deps = [
":base",
"//sdk/fidl/fuchsia.cobalt",
"//sdk/lib/fidl/cpp",
"//sdk/lib/sys/cpp",
"//zircon/public/lib/fit",
]
}
source_set("tests") {
testonly = true
sources = [ "cobalt_logger_unittest.cc" ]
deps = [
":real",
"//garnet/public/lib/gtest",
"//src/connectivity/bluetooth/core/bt-host/testing",
"//third_party/googletest:gtest",
]
}
bt_gtest_package("bt-host-cobalt-tests") {
deps = [ ":tests" ]
}