# 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("wallpaper_handlers") {
sources = [
"sea_pen_fetcher.cc",
"sea_pen_fetcher.h",
"sea_pen_utils.cc",
"sea_pen_utils.h",
"wallpaper_fetcher_delegate.cc",
"wallpaper_fetcher_delegate.h",
"wallpaper_handlers.cc",
"wallpaper_handlers.h",
"wallpaper_handlers_metric_utils.cc",
"wallpaper_handlers_metric_utils.h",
"wallpaper_prefs.cc",
"wallpaper_prefs.h",
]
deps = [
"//ash",
"//ash/webui/personalization_app/mojom",
"//base",
"//chrome/browser:browser_process",
"//chrome/browser:browser_public_dependencies",
"//chrome/browser/ash/profiles",
"//chrome/browser/profiles",
"//content/public/browser",
"//services/data_decoder/public/cpp",
]
}
static_library("test_support") {
testonly = true
sources = [
"mock_sea_pen_fetcher.cc",
"mock_sea_pen_fetcher.h",
"mock_wallpaper_handlers.cc",
"mock_wallpaper_handlers.h",
"test_wallpaper_fetcher_delegate.cc",
"test_wallpaper_fetcher_delegate.h",
]
deps = [
":wallpaper_handlers",
"//ash",
"//ash/webui/personalization_app/mojom",
"//chrome/browser/profiles",
"//testing/gmock",
"//ui/gfx:test_support",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"sea_pen_fetcher_unittest.cc",
"sea_pen_utils_unittest.cc",
"wallpaper_handlers_unittest.cc",
]
deps = [
":wallpaper_handlers",
"//ash:test_support",
"//ash/webui/personalization_app/mojom",
"//base/test:test_support",
"//chrome/browser/ash/login/users:test_support",
"//chrome/browser/ash/settings:test_support",
"//chrome/test:test_support",
"//content/public/browser",
"//content/test:test_support",
"//services/data_decoder/public/cpp:test_support",
"//ui/display:test_support",
"//ui/gfx:test_support",
]
}