chromium/chrome/browser/ui/ash/capture_mode/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("capture_mode") {
  sources = [
    "chrome_capture_mode_delegate.cc",
    "chrome_capture_mode_delegate.h",
    "search_results_view.cc",
    "search_results_view.h",
  ]

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

  deps = [
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//chrome/browser:browser_process",
    "//chrome/browser:primitives",
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/drive",
    "//chrome/browser/ash/file_manager",
    "//chrome/browser/ash/policy/dlp",
    "//chrome/browser/ash/policy/skyvault",
    "//chrome/browser/ash/video_conference",
    "//chrome/browser/ui:browser_navigator_params_headers",
    "//chrome/browser/ui/ash/system_web_apps",
    "//chrome/browser/ui/ash/web_view",
    "//chrome/browser/ui/webui/ash/cloud_upload",
    "//chrome/browser/web_applications",
    "//chrome/common",
    "//chromeos/ash/components/drivefs/mojom",
    "//chromeos/ash/components/login/login_state",
    "//chromeos/ash/services/recording/public/mojom",
    "//components/drive",
    "//content/public/browser",
    "//services/video_capture/public/mojom",
    "//ui/aura",
    "//ui/base",
  ]

  allow_circular_includes_from = [
    "//chrome/browser/apps/app_service",
    "//chrome/browser/ash/policy/dlp",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [
    "capture_mode_browsertest.cc",
    "chrome_capture_mode_delegate_browsertest.cc",
    "recording_service_browsertest.cc",
    "sunfish_browsertest.cc",
  ]

  deps = [
    ":capture_mode",
    "//ash",
    "//ash/constants",
    "//ash/public/cpp",
    "//base",
    "//base/test:test_support",
    "//chrome/browser/ash/crosapi",
    "//chrome/browser/ash/crosapi:browser_util",
    "//chrome/browser/ash/file_manager:test_support",
    "//chrome/browser/ash/system_web_apps",
    "//chrome/browser/ash/video_conference",
    "//chrome/browser/chromeos/policy/dlp",
    "//chrome/browser/chromeos/policy/dlp/test:test_support",
    "//chrome/browser/enterprise/data_controls:test_support",
    "//chrome/browser/policy:test_support",
    "//chrome/browser/ui",
    "//chrome/browser/ui/ash/system_web_apps",
    "//chrome/common",
    "//chrome/test:test_support",
    "//content/test:test_support",
    "//media",
    "//media:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/aura",
    "//ui/events",
    "//ui/events:test_support",
    "//ui/wm",
  ]
}