chromium/chrome/browser/ui/webui/ash/settings/pages/device/display_settings/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")
import("//mojo/public/tools/bindings/mojom.gni")

assert(is_chromeos_ash)

mojom("mojom") {
  disable_variants = true

  sources = [ "display_settings_provider.mojom" ]

  webui_module_path = "/"

  public_deps = [
    "//ash/public/mojom:mojom",
    "//mojo/public/mojom/base",
  ]
}

static_library("display_settings") {
  sources = [
    "display_settings_provider.cc",
    "display_settings_provider.h",
  ]

  public_deps = [
    ":mojom",
    "//ash",
    "//ash/public/cpp",
    "//base",
    "//chromeos/dbus/power",
    "//mojo/public/cpp/bindings",
    "//ui/display",
    "//ui/display/manager",
  ]

  deps = [
    "//ash/constants",
    "//chrome/browser:browser_public_dependencies",
    "//chromeos/dbus/power:power_manager_proto",
    "//ui/display/util",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "display_settings_provider_unittest.cc" ]

  deps = [
    ":display_settings",
    "//ash",
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//base/test:test_support",
    "//chrome/test:test_support_unit",
    "//chromeos/dbus/power:power_manager_proto",
    "//content/test:test_support",
    "//testing/gtest",
    "//ui/display",
  ]
}