chromium/chromeos/ash/components/telemetry_extension/common/BUILD.gn

# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash, "Telemetry Services are ash-chrome only")

source_set("common") {
  sources = [
    "self_owned_mojo_proxy.h",
    "telemetry_extension_converters.cc",
    "telemetry_extension_converters.h",
  ]

  deps = [
    "//base",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//chromeos/crosapi/mojom",
    "//mojo/public/cpp/bindings",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "telemetry_extension_converters_unittest.cc" ]

  deps = [
    ":common",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//chromeos/crosapi/mojom",
    "//testing/gtest",
  ]
}