Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 1 | # Copyright 2020 The Chromium Authors. All rights reserved. |
| 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 | d0ac819 | 2020-10-06 18:30:36 | [diff] [blame] | 7 | "background_sync_delegate.h", |
Mugdha Lakhani | 79309c7 | 2020-10-07 08:57:06 | [diff] [blame] | 8 | "background_sync_metrics.cc", |
| 9 | "background_sync_metrics.h", |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 10 | "background_sync_permission_context.cc", |
| 11 | "background_sync_permission_context.h", |
| 12 | ] |
| 13 | |
| 14 | deps = [ |
| 15 | "//components/content_settings/core/browser", |
| 16 | "//components/content_settings/core/common", |
| 17 | "//components/permissions", |
Mugdha Lakhani | 79309c7 | 2020-10-07 08:57:06 | [diff] [blame] | 18 | "//services/metrics/public/cpp:ukm_builders", |
Mugdha Lakhani | ed1756b9 | 2020-09-23 18:32:38 | [diff] [blame] | 19 | "//third_party/blink/public/common:headers", |
| 20 | ] |
| 21 | } |
| 22 | |
| 23 | source_set("unit_tests") { |
| 24 | testonly = true |
| 25 | sources = [ "background_sync_permission_context_unittest.cc" ] |
| 26 | |
| 27 | deps = [ |
| 28 | ":background_sync", |
| 29 | "//base", |
| 30 | "//components/content_settings/core/browser", |
| 31 | "//components/permissions", |
| 32 | "//components/permissions:test_support", |
| 33 | "//content/public/browser", |
| 34 | "//content/test:test_support", |
| 35 | "//testing/gtest", |
| 36 | "//url:url", |
| 37 | ] |
| 38 | } |