# 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("diagnostics") {
sources = [
"diagnostics_service_ash.cc",
"diagnostics_service_ash.h",
"diagnostics_service_converters.cc",
"diagnostics_service_converters.h",
"mojo_utils.cc",
"mojo_utils.h",
]
deps = [
"//base",
"//chromeos/ash/services/cros_healthd/public/cpp",
"//chromeos/ash/services/cros_healthd/public/mojom",
"//chromeos/crosapi/mojom",
"//mojo/public/cpp/bindings",
"//third_party/abseil-cpp:absl",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"diagnostics_service_ash_unittest.cc",
"diagnostics_service_converters_unittest.cc",
]
deps = [
":diagnostics",
"//base",
"//base/test:test_support",
"//chromeos/ash/components/mojo_service_manager:test_support",
"//chromeos/ash/services/cros_healthd/public/cpp:test_support",
"//chromeos/ash/services/cros_healthd/public/mojom",
"//chromeos/crosapi/mojom",
"//testing/gmock",
"//testing/gtest",
"//third_party/abseil-cpp:absl",
]
}