Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | # Copyright 2020 The Chromium Authors |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | static_library("background_sync") { |
| 6 | sources = [ |
Mugdha Lakhani | 04fc553 | 2020-10-08 15:39:06 | [diff] [blame] | 7 | "background_sync_controller_impl.cc", |
| 8 | "background_sync_controller_impl.h", |
Mugdha Lakhani | d0ac819 | 2020-10-06 18:30:36 | [diff] [blame] | 9 | "background_sync_delegate.h", |
Mugdha Lakhani | 79309c7 | 2020-10-07 08:57:06 | [diff] [blame] | 10 | "background_sync_metrics.cc", |
| 11 | "background_sync_metrics.h", |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 12 | "background_sync_permission_context.cc", |
| 13 | "background_sync_permission_context.h", |
| 14 | ] |
| 15 | |
| 16 | deps = [ |
| 17 | "//components/content_settings/core/browser", |
| 18 | "//components/content_settings/core/common", |
| 19 | "//components/permissions", |
Mugdha Lakhani | 04fc553 | 2020-10-08 15:39:06 | [diff] [blame] | 20 | "//components/variations", |
| 21 | "//content/public/browser", |
Mugdha Lakhani | 79309c7 | 2020-10-07 08:57:06 | [diff] [blame] | 22 | "//services/metrics/public/cpp:ukm_builders", |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 23 | "//third_party/blink/public/common:headers", |
| 24 | ] |
Mugdha Lakhani | 04fc553 | 2020-10-08 15:39:06 | [diff] [blame] | 25 | if (!is_android) { |
| 26 | deps += [ "//components/keep_alive_registry" ] |
| 27 | } |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 28 | } |
| 29 | |
| 30 | source_set("unit_tests") { |
| 31 | testonly = true |
| 32 | sources = [ "background_sync_permission_context_unittest.cc" ] |
| 33 | |
| 34 | deps = [ |
| 35 | ":background_sync", |
| 36 | "//base", |
| 37 | "//components/content_settings/core/browser", |
| 38 | "//components/permissions", |
| 39 | "//components/permissions:test_support", |
| 40 | "//content/public/browser", |
| 41 | "//content/test:test_support", |
| 42 | "//testing/gtest", |
| 43 | "//url:url", |
| 44 | ] |
| 45 | } |