# 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("projector") {
sources = [
"pending_screencast_manager.cc",
"pending_screencast_manager.h",
"projector_app_client_impl.cc",
"projector_app_client_impl.h",
"projector_client_impl.cc",
"projector_client_impl.h",
"projector_drivefs_provider.cc",
"projector_drivefs_provider.h",
"projector_soda_installation_controller.cc",
"projector_soda_installation_controller.h",
"projector_utils.cc",
"projector_utils.h",
"screencast_manager.cc",
"screencast_manager.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash",
"//ash/constants",
"//ash/public/cpp",
"//ash/webui/annotator",
"//ash/webui/projector_app",
"//ash/webui/projector_app/public/cpp",
"//ash/webui/projector_app/public/mojom:projector_mojo_bindings",
"//base",
"//chrome/browser:browser_process",
"//chrome/browser/ash/drive",
"//chrome/browser/ash/extensions/file_manager",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/system_web_apps",
"//chrome/browser/ash/system_web_apps/apps",
"//chrome/browser/feedback",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui/ash/system_web_apps",
"//chrome/browser/web_applications",
"//chrome/services/media_gallery_util/public/cpp",
"//chromeos/ash/components/drivefs",
"//chromeos/ash/components/drivefs/mojom",
"//chromeos/ash/components/login/login_state",
"//components/account_manager_core",
"//components/pref_registry",
"//components/session_manager/core",
"//components/signin/public/identity_manager",
"//components/soda",
"//components/soda:constants",
"//content/public/browser",
"//media",
"//net",
"//ui/display",
"//url",
]
allow_circular_includes_from = [ "//chrome/browser/ash/system_web_apps/apps" ]
}
source_set("unit_tests") {
testonly = true
sources = [
"projector_client_impl_unittest.cc",
"projector_soda_installation_controller_unittest.cc",
"projector_utils_unittest.cc",
]
deps = [
":projector",
"//ash",
"//ash/constants",
"//ash/public/cpp",
"//ash/webui/projector_app:test_support",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/profiles:profile",
"//chrome/test:test_support",
"//chrome/test:test_support_unit",
"//components/prefs",
"//components/soda:constants",
"//content/test:test_support",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"pending_screencast_manager_browsertest.cc",
"projector_client_impl_browsertest.cc",
"projector_navigation_throttle_browsertest.cc",
"screencast_manager_browsertest.cc",
]
deps = [
":projector",
"//ash/constants",
"//ash/webui/projector_app:buildflags",
"//ash/webui/projector_app:test_support",
"//ash/webui/projector_app/public/mojom:projector_mojo_bindings",
"//ash/webui/web_applications/test:test_support",
"//base/test:test_support",
"//chrome/browser/apps/app_service",
"//chrome/browser/apps/app_service/app_icon",
"//chrome/browser/apps/link_capturing",
"//chrome/browser/ash/drive",
"//chrome/browser/ash/drive:test_support",
"//chrome/browser/ash/login",
"//chrome/browser/ash/login:test_support",
"//chrome/browser/ash/login/test:test_support",
"//chrome/browser/ash/login/ui",
"//chrome/browser/ash/profiles",
"//chrome/browser/ash/system_web_apps",
"//chrome/browser/ash/system_web_apps/test_support:test_support_ui",
"//chrome/browser/notifications",
"//chrome/browser/profiles:profile",
"//chrome/browser/ui",
"//chrome/browser/ui:browser_navigator_params_headers",
"//chrome/browser/ui/ash/system_web_apps",
"//chrome/test:test_support",
"//chromeos/ash/components/drivefs:test_support",
"//chromeos/ash/components/drivefs/mojom",
"//content/test:test_support",
"//media:test_support",
"//testing/gmock",
]
}