blob: c7b41bfda8abc0f3c8913732be18d712652e4437 [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" ]
}
source_set("web_applications") {
sources = [
"abstract_web_app_database.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_install_manager.cc",
"web_app_install_manager.h",
"web_app_registrar.cc",
"web_app_registrar.h",
"web_app_utils.cc",
"web_app_utils.h",
]
deps = [
":web_app_group",
"//chrome/browser/web_applications/components",
"//chrome/common",
"//components/sync",
"//content/public/browser",
"//skia",
]
public_deps = [
"//chrome/browser/web_applications/proto",
]
}
source_set("web_applications_test_support") {
testonly = true
sources = [
"test/test_data_retriever.cc",
"test/test_data_retriever.h",
"test/test_web_app_database.cc",
"test/test_web_app_database.h",
"test/test_web_app_database_factory.cc",
"test/test_web_app_database_factory.h",
"test/web_app_test.cc",
"test/web_app_test.h",
]
deps = [
":web_app_group",
":web_applications",
"//chrome/browser/web_applications/components",
"//chrome/test:test_support",
"//components/sync:test_support_model",
"//testing/gtest",
]
}
source_set("web_applications_unit_tests") {
testonly = true
sources = [
"web_app_database_unittest.cc",
"web_app_install_manager_unittest.cc",
"web_app_registrar_unittest.cc",
]
deps = [
":web_app_group",
":web_applications",
":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",
]
}
# TODO(loyso): Erase this and move WebAppProvider into web_applications set.
# crbug.com/877898
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/bookmark_apps",
"//chrome/browser/web_applications/components",
"//chrome/browser/web_applications/extensions",
"//chrome/common",
"//components/keyed_service/content",
"//extensions/browser",
]
}
source_set("unit_tests") {
testonly = true
deps = [
":web_app_group",
":web_applications_unit_tests",
"//chrome/browser/web_applications/bookmark_apps:unit_tests",
"//chrome/browser/web_applications/components:unit_tests",
"//chrome/browser/web_applications/extensions:unit_tests",
]
}
source_set("browser_tests") {
testonly = true
deps = [
":web_app_group",
"//chrome/browser/web_applications/bookmark_apps:browser_tests",
"//chrome/browser/web_applications/extensions:browser_tests",
]
}