blob: 353880225f4a892374a41ca26a2c1e0376608d75 [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.
group("web_app_group") {
public_configs = [ "//build/config/compiler:wexit_time_destructors" ]
}
group("web_app_test_group") {
}
source_set("web_applications") {
sources = [
"external_web_app_manager.cc",
"external_web_app_manager.h",
"file_utils_wrapper.cc",
"file_utils_wrapper.h",
"pending_app_install_task.cc",
"pending_app_install_task.h",
"pending_app_manager_impl.cc",
"pending_app_manager_impl.h",
"pending_app_registration_task.cc",
"pending_app_registration_task.h",
"system_web_app_manager.cc",
"system_web_app_manager.h",
"web_app.cc",
"web_app.h",
"web_app_database.cc",
"web_app_database.h",
"web_app_database_factory.cc",
"web_app_database_factory.h",
"web_app_file_handler_manager.cc",
"web_app_file_handler_manager.h",
"web_app_icon_manager.cc",
"web_app_icon_manager.h",
"web_app_install_finalizer.cc",
"web_app_install_finalizer.h",
"web_app_install_manager.cc",
"web_app_install_manager.h",
"web_app_install_task.cc",
"web_app_install_task.h",
"web_app_registrar.cc",
"web_app_registrar.h",
"web_app_registry_update.cc",
"web_app_registry_update.h",
"web_app_shortcut_manager.cc",
"web_app_shortcut_manager.h",
"web_app_sync_bridge.cc",
"web_app_sync_bridge.h",
"web_app_sync_install_delegate.h",
]
deps = [
":web_app_group",
"//chrome/browser/web_applications/components",
"//chrome/common",
"//components/pref_registry",
"//components/sync",
"//content/public/browser",
"//skia",
]
if (is_chromeos) {
deps += [
"//ash/public/cpp:cpp",
"//chromeos/constants",
"//components/arc:arc_base",
"//components/arc/mojom",
]
}
public_deps = [
"//chrome/browser/web_applications/proto",
]
}
# This test_support library doesn't use extensions.
source_set("web_applications_test_support") {
testonly = true
sources = [
"test/service_worker_registration_waiter.cc",
"test/service_worker_registration_waiter.h",
"test/test_app_registrar.cc",
"test/test_app_registrar.h",
"test/test_data_retriever.cc",
"test/test_data_retriever.h",
"test/test_file_handler_manager.cc",
"test/test_file_handler_manager.h",
"test/test_file_utils.cc",
"test/test_file_utils.h",
"test/test_install_finalizer.cc",
"test/test_install_finalizer.h",
"test/test_pending_app_manager.cc",
"test/test_pending_app_manager.h",
"test/test_system_web_app_manager.cc",
"test/test_system_web_app_manager.h",
"test/test_web_app_database_factory.cc",
"test/test_web_app_database_factory.h",
"test/test_web_app_registry_controller.cc",
"test/test_web_app_registry_controller.h",
"test/test_web_app_ui_manager.cc",
"test/test_web_app_ui_manager.h",
"test/test_web_app_url_loader.cc",
"test/test_web_app_url_loader.h",
"test/web_app_icon_test_utils.cc",
"test/web_app_icon_test_utils.h",
"test/web_app_install_observer.cc",
"test/web_app_install_observer.h",
"test/web_app_registration_waiter.cc",
"test/web_app_registration_waiter.h",
"test/web_app_test.h",
]
deps = [
":web_app_test_group",
":web_applications",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser/web_applications/components",
"//components/crx_file:crx_file",
"//components/sync:test_support_model",
"//content/test:test_support",
"//testing/gtest",
]
}
source_set("web_applications_unit_tests") {
testonly = true
sources = [
"external_web_app_manager_unittest.cc",
"pending_app_manager_impl_unittest.cc",
"web_app_database_unittest.cc",
"web_app_icon_manager_unittest.cc",
"web_app_install_manager_unittest.cc",
"web_app_install_task_unittest.cc",
"web_app_registrar_unittest.cc",
]
deps = [
":web_app_test_group",
":web_applications",
":web_applications_on_extensions_test_support",
":web_applications_test_support",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser/web_applications/components",
"//chrome/common",
"//chrome/test:test_support",
"//content/public/browser",
"//content/test:test_support",
"//skia",
]
if (is_chromeos) {
deps += [
"//chrome/browser/chromeos",
"//components/arc:arc",
"//components/arc:arc_test_support",
"//components/arc/mojom",
]
}
}
source_set("web_applications_browser_tests") {
testonly = true
sources = [
"pending_app_manager_impl_browsertest.cc",
"web_app_icon_manager_browsertest.cc",
]
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
deps = [
":web_applications",
":web_applications_test_support",
"//chrome/browser/web_applications/components",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
]
}
# TODO(crbug.com/877898): Erase this and move WebAppProvider into
# web_applications set.
source_set("web_applications_on_extensions") {
sources = [
"web_app_provider.cc",
"web_app_provider.h",
"web_app_provider_factory.cc",
"web_app_provider_factory.h",
]
deps = [
":web_app_group",
":web_applications",
"//chrome/browser/web_applications/components",
"//chrome/browser/web_applications/extensions",
"//chrome/common",
"//components/keyed_service/content",
"//components/pref_registry:pref_registry",
"//extensions/browser",
]
}
# TODO(crbug.com/877898): Erase this and move TestWebAppProvider into
# web_applications_test_support set.
source_set("web_applications_on_extensions_test_support") {
testonly = true
sources = [
"test/test_web_app_provider.cc",
"test/test_web_app_provider.h",
]
deps = [
":web_app_test_group",
":web_applications",
":web_applications_on_extensions",
":web_applications_test_support",
"//base",
"//chrome/browser",
"//chrome/browser/web_applications/components",
"//components/keyed_service/content",
]
}
group("unit_tests") {
testonly = true
deps = [
":web_app_test_group",
":web_applications_unit_tests",
"//chrome/browser/web_applications/components:unit_tests",
"//chrome/browser/web_applications/extensions:unit_tests",
]
}
group("browser_tests") {
testonly = true
deps = [
":web_app_test_group",
":web_applications_browser_tests",
"//chrome/browser/web_applications/components:browser_tests",
"//chrome/browser/web_applications/extensions:browser_tests",
]
}