blob: 953f5d08ace64130e7547ad2e280981d26292704 [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("components") {
sources = [
"install_finalizer.h",
"install_manager.h",
"pending_app_manager.cc",
"pending_app_manager.h",
"web_app_audio_focus_id_map.cc",
"web_app_audio_focus_id_map.h",
"web_app_constants.h",
"web_app_data_retriever.cc",
"web_app_data_retriever.h",
"web_app_helpers.cc",
"web_app_helpers.h",
"web_app_icon_generator.cc",
"web_app_icon_generator.h",
"web_app_install_utils.cc",
"web_app_install_utils.h",
"web_app_shortcut.cc",
"web_app_shortcut.h",
"web_app_shortcut_chromeos.cc",
"web_app_shortcut_mac.h",
"web_app_shortcut_mac.mm",
"web_app_shortcut_win.cc",
"web_app_shortcut_win.h",
"web_app_tab_helper_base.cc",
"web_app_tab_helper_base.h",
# TODO(nigeltao): move these two files from
# //chrome/browser/web_applications/components to a stand-alone
# //components/web_app_icon_downloader?
#
# There's also //components/favicon, //components/image_fetcher as well as
# code split between //content/public/browser/manifest_icon_downloader.h
# and //content/browser/manfest/manifest_icon_downloader.cc. Some or all of
# those might be similar enough to merge.
"web_app_icon_downloader.cc",
"web_app_icon_downloader.h",
]
if (is_desktop_linux) {
# Desktop linux, doesn't count ChromeOS.
sources += [
"web_app_shortcut_linux.cc",
"web_app_shortcut_linux.h",
]
}
deps = [
"//chrome/app/resources:platform_locale_settings",
"//chrome/app/theme:chrome_unscaled_resources",
"//chrome/browser/web_applications:web_app_group",
"//chrome/common",
"//components/crx_file",
"//components/favicon/content",
"//content/public/browser",
"//skia",
]
}
source_set("test_support") {
testonly = true
sources = [
"test_pending_app_manager.cc",
"test_pending_app_manager.h",
]
deps = [
":components",
"//base",
"//url",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"pending_app_manager_unittest.cc",
"web_app_data_retriever_unittest.cc",
"web_app_helpers_unittest.cc",
"web_app_icon_downloader_unittest.cc",
"web_app_icon_generator_unittest.cc",
"web_app_install_utils_unittest.cc",
"web_app_shortcut_mac_unittest.mm",
"web_app_shortcut_unittest.cc",
]
if (is_desktop_linux) {
# Desktop linux, doesn't count ChromeOS.
sources += [ "web_app_shortcut_linux_unittest.cc" ]
}
deps = [
":components",
":test_support",
"//base/test:test_support",
"//chrome/app/theme:theme_resources",
"//chrome/browser/web_applications:web_app_group",
"//chrome/test:test_support",
"//content/public/browser",
"//skia",
"//testing/gmock",
"//testing/gtest",
]
}