chromium/ash/webui/diagnostics_ui/backend/BUILD.gn

# Copyright 2020 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")

static_library("backend") {
  sources = [
    "common/histogram_util.cc",
    "common/histogram_util.h",
    "common/routine_properties.cc",
    "common/routine_properties.h",
    "connectivity/network_health_provider.cc",
    "connectivity/network_health_provider.h",
    "diagnostics_manager.cc",
    "diagnostics_manager.h",
    "input/event_watcher_factory.cc",
    "input/event_watcher_factory.h",
    "input/healthd_event_reporter.cc",
    "input/healthd_event_reporter.h",
    "input/input_data_event_watcher.cc",
    "input/input_data_event_watcher.h",
    "input/input_data_provider.cc",
    "input/input_data_provider.h",
    "input/input_data_provider_keyboard.cc",
    "input/input_data_provider_keyboard.h",
    "input/input_data_provider_touch.cc",
    "input/input_data_provider_touch.h",
    "input/input_device_information.cc",
    "input/input_device_information.h",
    "input/keyboard_input_data_event_watcher.cc",
    "input/keyboard_input_data_event_watcher.h",
    "session_log_async_helper.cc",
    "session_log_async_helper.h",
    "session_log_handler.cc",
    "session_log_handler.h",
    "system/cpu_usage_data.cc",
    "system/cpu_usage_data.h",
    "system/cros_healthd_helpers.cc",
    "system/cros_healthd_helpers.h",
    "system/power_manager_client_conversions.cc",
    "system/power_manager_client_conversions.h",
    "system/system_data_provider.cc",
    "system/system_data_provider.h",
    "system/system_routine_controller.cc",
    "system/system_routine_controller.h",
  ]

  deps = [
    "//ash",
    "//ash/constants:constants",
    "//ash/public/cpp",
    "//ash/webui/diagnostics_ui/mojom",
    "//base",
    "//chromeos/ash/components/mojo_service_manager",
    "//chromeos/ash/components/system",
    "//chromeos/ash/services/cros_healthd/public/cpp",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//chromeos/ash/services/cros_healthd/public/mojom:event_reporter",
    "//chromeos/ash/services/network_config:in_process_instance",
    "//chromeos/dbus/power",
    "//chromeos/dbus/power:power_manager_proto",
    "//chromeos/services/network_config/public/cpp",
    "//chromeos/strings/",
    "//content/public/browser",
    "//services/data_decoder/public/cpp",
    "//services/device/public/mojom",
    "//ui/base",
    "//ui/base/ime/ash",
    "//ui/display/manager",
    "//ui/events/ash",
    "//ui/events/devices",
    "//ui/events/ozone",
    "//ui/events/ozone/evdev:event_device_info",
    "//ui/events/ozone/layout",
    "//ui/gfx",
    "//ui/shell_dialogs",
    "//ui/web_dialogs",
    "//ui/webui",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "common/routine_properties_unittest.cc",
    "connectivity/network_health_provider_unittest.cc",
    "input/healthd_event_reporter_unittest.cc",
    "input/input_data_event_watcher_unittest.cc",
    "input/input_data_provider_keyboard_unittest.cc",
    "input/input_data_provider_touch_unittest.cc",
    "input/input_data_provider_unittest.cc",
    "input/keyboard_input_data_event_watcher_unittest.cc",
    "session_log_async_helper_unittest.cc",
    "session_log_handler_unittest.cc",
    "system/cpu_usage_data_unittest.cc",
    "system/power_manager_client_conversions_unittest.cc",
    "system/system_data_provider_unittest.cc",
    "system/system_routine_controller_unittest.cc",
  ]

  deps = [
    ":backend",
    "//ash",
    "//ash:test_support",
    "//ash/constants",
    "//ash/public/cpp",
    "//ash/public/cpp/holding_space:test_support",
    "//ash/webui/diagnostics_ui/mojom",
    "//base",
    "//base/test:test_support",
    "//chromeos/ash/components:test_support",
    "//chromeos/ash/components/dbus:test_support",
    "//chromeos/ash/components/dbus/shill",
    "//chromeos/ash/components/login/login_state:login_state",
    "//chromeos/ash/components/mojo_service_manager:test_support",
    "//chromeos/ash/components/system",
    "//chromeos/ash/services/cros_healthd/public/cpp:test_support",
    "//chromeos/ash/services/cros_healthd/public/mojom",
    "//chromeos/ash/services/network_config",
    "//chromeos/ash/services/network_config:in_process_instance",
    "//chromeos/dbus/power",
    "//chromeos/dbus/power:power_manager_proto",
    "//components/onc",
    "//components/prefs:test_support",
    "//components/sync_preferences:test_support",
    "//components/user_manager:test_support",
    "//content/test:test_support",
    "//dbus",
    "//device/udev_linux:test_support",
    "//services/data_decoder/public/cpp:test_support",
    "//services/device/public/cpp:test_support",
    "//testing/gtest",
    "//ui/events/ash",
    "//ui/events/ash:test_support",
    "//ui/events/devices:devices",
    "//ui/events/devices:test_support",
    "//ui/events/ozone",
    "//ui/events/ozone/evdev:event_device_info_test_utils",
    "//ui/gfx",
    "//ui/shell_dialogs",
    "//ui/views:test_support",
    "//ui/webui",
  ]
}