summaryrefslogtreecommitdiff
path: root/chromium/components/background_sync/BUILD.gn
blob: 6a3f330984873e8577dbe43dbb6823d80f57b0f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Copyright 2020 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.

static_library("background_sync") {
  sources = [
    "background_sync_controller_impl.cc",
    "background_sync_controller_impl.h",
    "background_sync_delegate.h",
    "background_sync_metrics.cc",
    "background_sync_metrics.h",
    "background_sync_permission_context.cc",
    "background_sync_permission_context.h",
  ]

  deps = [
    "//components/content_settings/core/browser",
    "//components/content_settings/core/common",
    "//components/permissions",
    "//components/variations",
    "//content/public/browser",
    "//services/metrics/public/cpp:ukm_builders",
    "//third_party/blink/public/common:headers",
  ]
  if (!is_android) {
    deps += [ "//components/keep_alive_registry" ]
  }
}

source_set("unit_tests") {
  testonly = true
  sources = [ "background_sync_permission_context_unittest.cc" ]

  deps = [
    ":background_sync",
    "//base",
    "//components/content_settings/core/browser",
    "//components/permissions",
    "//components/permissions:test_support",
    "//content/public/browser",
    "//content/test:test_support",
    "//testing/gtest",
    "//url:url",
  ]
}