chromium/chrome/browser/ui/webui/ash/settings/pages/apps/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("apps") {
  sources = [
    "android_apps_handler.cc",
    "android_apps_handler.h",
    "app_notification_handler.cc",
    "app_notification_handler.h",
    "app_parental_controls_handler.cc",
    "app_parental_controls_handler.h",
    "apps_section.cc",
    "apps_section.h",
    "plugin_vm_handler.cc",
    "plugin_vm_handler.h",
  ]

  public_deps = [
    "//ash/public/cpp",
    "//base",
    "//chrome/browser/ash/app_list/arc",
    "//chrome/browser/ash/arc/session",
    "//chrome/browser/ui/webui/ash/settings/pages/apps/mojom",
    "//components/prefs",
    "//components/services/app_service",
    "//mojo/public/cpp/bindings",
  ]

  deps = [
    "//ash/components/arc",
    "//ash/constants",
    "//chrome/app:generated_resources",
    "//chrome/browser:browser_public_dependencies",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/arc",
    "//chrome/browser/ash/child_accounts/on_device_controls",
    "//chrome/browser/ash/plugin_vm",
    "//chrome/browser/profiles:profile",
    "//chrome/browser/resources/ash/settings:resources",
    "//chrome/browser/ui/webui",
    "//chrome/browser/ui/webui/ash/settings/pages/crostini",
    "//chrome/browser/ui/webui/ash/settings/search",
    "//chrome/browser/web_applications",
    "//chrome/common",
    "//components/strings:components_strings",
    "//content/public/browser",
    "//content/public/common",
    "//third_party/re2",
    "//ui/base",
    "//ui/chromeos",
    "//ui/display",
    "//ui/events:event_constants",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [ "app_parental_controls_handler_browsertest.cc" ]

  deps = [
    ":apps",
    "//ash/components/arc:arc_test_support",
    "//ash/components/arc:notification_test_support",
    "//ash/components/arc/mojom",
    "//ash/constants",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/ash/app_list/arc",
    "//chrome/browser/ash/arc",
    "//chrome/browser/ash/arc/session",
    "//chrome/browser/ash/system_web_apps",
    "//chrome/browser/ui",
    "//chrome/browser/ui/webui/ash/settings/services/settings_manager",
    "//chrome/browser/web_applications",
    "//chrome/browser/web_applications:web_applications_test_support",
    "//chrome/test:test_support_ui",
    "//components/prefs",
    "//content/test:test_support",
    "//mojo/public/cpp/bindings",
    "//testing/gtest",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [ "app_notification_handler_unittest.cc" ]

  deps = [
    ":apps",
    "//ash/public/cpp",
    "//ash/public/cpp:test_support",
    "//base",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/apps/app_service:test_support",
    "//chrome/browser/ui/webui/ash/settings/pages/apps/mojom",
    "//chrome/common",
    "//chrome/test:test_support",
    "//components/services/app_service",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/abseil-cpp:absl",
  ]
}