chromium/chrome/browser/ash/ambient/BUILD.gn

# 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)

static_library("ambient") {
  sources = [
    "ambient_client_impl.cc",
    "ambient_client_impl.h",
  ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//chrome/browser/ash/login/demo_mode",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/common:channel_info",
    "//chromeos/ash/components/browser_context_helper",
    "//components/account_id",
    "//components/prefs",
    "//components/signin/public/identity_manager",
    "//components/user_manager",
    "//components/version_info:channel",
    "//content/public/browser",
    "//google_apis",
    "//net",
    "//services/network/public/cpp",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "ambient_client_impl_unittest.cc" ]

  deps = [
    ":ambient",
    "//ash/constants",
    "//ash/public/cpp:test_support",
    "//base",
    "//chrome/browser/ash/login/users:test_support",
    "//chrome/test:test_support",
    "//components/user_manager",
    "//content/test:test_support",
    "//testing/gtest",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [ "managed_screensaver_browsertest.cc" ]

  deps = [
    "//ash",
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//base/test:test_support",
    "//chrome/browser/ash/login:test_support",
    "//chrome/browser/ash/login/lock:test_support",
    "//chrome/browser/ash/ownership",
    "//chrome/browser/ash/policy/core:test_support",
    "//chrome/browser/ash/policy/test_support",
    "//chrome/browser/ash/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/common",
    "//chrome/test:test_support_ui",
    "//chromeos/ash/components/dbus/session_manager",
    "//components/ownership",
    "//components/signin/public/identity_manager:test_support",
    "//content/test:test_support",
    "//net:test_support",
    "//testing/gtest",
    "//ui/compositor",
    "//url",
  ]
}