blob: a6f34b5c85564f48040434adb0ac1d80de9ac50e [file] [log] [blame]
# Copyright 2023 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)
source_set("almanac_api_client") {
sources = [
"almanac_api_util.cc",
"almanac_api_util.h",
"almanac_icon_cache.cc",
"almanac_icon_cache.h",
"device_info_manager.cc",
"device_info_manager.h",
"proto_file_manager.cc",
"proto_file_manager.h",
]
deps = [
"//ash/constants",
"//base",
"//chrome/browser:browser_process",
"//chrome/browser/apps:user_type_filter",
"//chrome/browser/apps/almanac_api_client/proto",
"//chrome/browser/image_fetcher",
"//chrome/browser/profiles",
"//chrome/browser/profiles:profile",
"//chrome/common:channel_info",
"//chromeos/ash/components/system",
"//chromeos/version",
"//components/image_fetcher/core",
"//components/language/core/browser",
"//components/prefs",
"//components/version_info",
"//google_apis",
"//services/network/public/cpp",
"//services/network/public/mojom",
]
}
source_set("test_support") {
testonly = true
sources = [
"mock_almanac_icon_cache.cc",
"mock_almanac_icon_cache.h",
]
deps = [
":almanac_api_client",
"//base",
"//testing/gmock",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"almanac_api_util_unittest.cc",
"almanac_icon_cache_unittest.cc",
"device_info_manager_unittest.cc",
"proto_file_manager_unittest.cc",
]
deps = [
":almanac_api_client",
"//base",
"//chrome/browser/apps/almanac_api_client/proto",
"//chrome/browser/apps/app_deduplication_service/proto",
"//chrome/common:channel_info",
"//chrome/test:test_support",
"//components/image_fetcher/core",
"//components/image_fetcher/core:test_support",
"//components/language/core/browser",
"//components/prefs",
"//testing/gtest",
]
}