# 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("media_app") {
sources = [
"mahi_media_app_client.cc",
"mahi_media_app_client.h",
"mahi_media_app_content_manager_impl.cc",
"mahi_media_app_content_manager_impl.h",
"mahi_media_app_events_proxy_impl.cc",
"mahi_media_app_events_proxy_impl.h",
"mahi_media_app_handler_factory.cc",
"mahi_media_app_handler_factory.h",
]
public_deps = [ "//chrome/browser:browser_public_dependencies" ]
deps = [
"//ash",
"//ash/webui/settings/public/constants:mojom",
"//base",
"//chrome/browser/ash/mahi",
"//chrome/browser/ash/system_web_apps/apps/media_app",
"//chromeos/components/mahi/public/cpp",
"//chromeos/crosapi/mojom",
"//mojo/public/cpp/bindings",
"//ui/aura",
"//ui/gfx",
]
allow_circular_includes_from =
[ "//chrome/browser/ash/system_web_apps/apps/media_app" ]
}
source_set("unit_tests") {
testonly = true
sources = [ "mahi_media_app_client_unittest.cc" ]
deps = [
":media_app",
"//ash",
"//ash:test_support",
"//ash/webui/media_app_ui:mojo_bindings_untrusted",
"//ash/webui/settings/public/constants:mojom",
"//base",
"//chromeos/components/mahi/public/cpp",
"//testing/gmock",
"//testing/gtest",
"//ui/aura",
"//ui/aura:test_support",
]
}