# Copyright 2022 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)
static_library("network_health") {
sources = [
"network_health_constants.h",
"network_health_service.cc",
"network_health_service.h",
"signal_strength_tracker.cc",
"signal_strength_tracker.h",
]
public_deps = [
"//chromeos/services/network_config/public/cpp",
"//chromeos/services/network_health/public/mojom",
"//chromeos/services/network_health/public/mojom:types",
]
deps = [
"//base",
"//chromeos/ash/components/mojo_service_manager",
"//chromeos/ash/components/network",
"//chromeos/ash/services/network_config:in_process_instance",
"//chromeos/services/network_config/public/mojom",
"//components/device_event_log",
"//mojo/public/cpp/bindings",
]
}
component("in_process_instance") {
output_name = "network_health_in_process_instance"
sources = [
"in_process_instance.cc",
"in_process_instance.h",
]
defines = [ "IS_IN_PROCESS_NETWORK_HEALTH_IMPL" ]
public_deps = [ "//base" ]
deps = [ ":network_health" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"network_health_service_unittest.cc",
"signal_strength_tracker_unittest.cc",
]
deps = [
":network_health",
"//base",
"//base/test:test_support",
"//chromeos/ash/services/network_config/public/cpp:test_support",
"//chromeos/services/network_config/public/mojom",
"//chromeos/services/network_health/public/mojom",
"//chromeos/services/network_health/public/mojom:types",
"//dbus",
"//mojo/public/cpp/bindings",
# Unit tests from subdirs
"//chromeos/ash/services/network_health/public/cpp:unit_tests",
]
}