blob: 10403c29f31521c518261a3c19cfb4478053a421 [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.
import("//extensions/buildflags/buildflags.gni")
assert(enable_extensions)
source_set("bookmark_apps") {
sources = [
"bookmark_app_install_manager.cc",
"bookmark_app_install_manager.h",
]
deps = [
"//chrome/browser/extensions",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications/components",
"//chrome/browser/web_applications/extensions",
"//chrome/common",
"//components/favicon/content",
"//components/pref_registry",
"//extensions/browser",
"//skia",
]
}
source_set("test_support") {
testonly = true
sources = [
"test_web_app_provider.cc",
"test_web_app_provider.h",
]
deps = [
":bookmark_apps",
"//base",
"//chrome/browser",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications:web_applications_on_extensions",
"//chrome/browser/web_applications/components",
"//components/keyed_service/content",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bookmark_app_install_manager_unittest.cc",
"external_web_apps_unittest.cc",
"policy/web_app_policy_manager_unittest.cc",
"system_web_app_manager_unittest.cc",
]
deps = [
":bookmark_apps",
":test_support",
"//base",
"//chrome/browser",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications:web_applications_on_extensions",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/browser/web_applications/components",
"//chrome/browser/web_applications/components:test_support",
"//chrome/browser/web_applications/extensions",
"//chrome/common:constants",
"//chrome/test:test_support",
"//components/account_id",
"//components/crx_file:crx_file",
"//components/sync_preferences:test_support",
"//content/test:test_support",
"//extensions/common",
"//skia",
"//testing/gmock",
"//testing/gtest",
"//url",
]
}
source_set("browser_tests") {
testonly = true
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
sources = [
"system_web_app_manager_browsertest.cc",
"system_web_app_manager_browsertest.h",
]
deps = [
":bookmark_apps",
":test_support",
"//base",
"//base/test:test_support",
"//chrome/app/theme:chrome_unscaled_resources_grit",
"//chrome/browser/web_applications",
"//chrome/browser/web_applications:web_applications_on_extensions",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/browser/web_applications/components",
"//chrome/browser/web_applications/extensions",
"//chrome/common:constants",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//extensions/browser",
"//url",
]
}