# Copyright 2024 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, "Non-ChromeOS builds cannot depend on //ash")
component("system_info") {
sources = [
"battery_health.h",
"cpu_data.h",
"cpu_usage_data.cc",
"cpu_usage_data.h",
"memory_data.h",
"system_info_util.cc",
"system_info_util.h",
]
defines = [ "IS_CHROMEOS_ASH_COMPONENTS_SYSTEM_INFO_IMPL" ]
deps = [
"//ash/strings:strings",
"//base",
"//chromeos/ash/services/cros_healthd/public/mojom:mojom",
"//chromeos/dbus/power:power_manager_proto",
"//ui/base",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "cpu_usage_data_unittest.cc" ]
deps = [
":system_info",
"//base/test:test_support",
"//testing/gtest",
]
}