blob: fc0ed916887f140aae20c64e5ebba76d82865f4c [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("extensions") {
sources = [
"bookmark_app_installation_task.cc",
"bookmark_app_installation_task.h",
"bookmark_app_installer.cc",
"bookmark_app_installer.h",
"bookmark_app_tab_helper.cc",
"bookmark_app_tab_helper.h",
"bookmark_app_util.cc",
"bookmark_app_util.h",
"pending_bookmark_app_manager.cc",
"pending_bookmark_app_manager.h",
"web_app_extension_ids_map.cc",
"web_app_extension_ids_map.h",
"web_app_extension_shortcut.cc",
"web_app_extension_shortcut.h",
"web_app_extension_shortcut_mac.h",
"web_app_extension_shortcut_mac.mm",
]
deps = [
"//base",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications/components",
"//chrome/common",
"//components/pref_registry",
"//content/public/browser",
"//extensions/browser",
"//skia",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"bookmark_app_installation_task_unittest.cc",
"bookmark_app_installer_unittest.cc",
"bookmark_app_util_unittest.cc",
"pending_bookmark_app_manager_unittest.cc",
"web_app_extension_ids_map_unittest.cc",
]
deps = [
":extensions",
"//chrome/browser",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications:web_applications_test_support",
"//chrome/browser/web_applications/components",
"//chrome/common",
"//chrome/test:test_support",
"//components/crx_file:crx_file",
"//content/public/browser",
"//content/test:test_support",
"//extensions/browser/install",
"//extensions/common",
"//skia",
"//testing/gtest",
]
}
source_set("browser_tests") {
testonly = true
sources = [
"pending_bookmark_app_manager_browsertest.cc",
"web_app_audio_focus_browsertest.cc",
]
defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]
deps = [
":extensions",
"//base/test:test_support",
"//chrome/browser",
"//chrome/browser/ui",
"//chrome/browser/web_applications:web_app_group",
"//chrome/browser/web_applications:web_applications_on_extensions",
"//chrome/browser/web_applications/components",
"//chrome/test:test_support",
"//chrome/test:test_support_ui",
"//extensions:test_support",
"//extensions/browser",
"//extensions/common",
"//net:test_support",
]
}