summaryrefslogtreecommitdiff
path: root/chromium/components/safe_browsing/common/BUILD.gn
blob: 212b21df0d35826a7ca34be94d7c45b524907d96 (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
46
47
# Copyright 2016 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.

source_set("common") {
  sources = [
    "safebrowsing_constants.cc",
    "safebrowsing_constants.h",
    "safebrowsing_message_generator.cc",
    "safebrowsing_message_generator.h",
    "safebrowsing_messages.h",
    "safebrowsing_switches.cc",
    "safebrowsing_switches.h",
    "safebrowsing_types.h",
  ]

  deps = [
    "//base",
    "//ipc",
    "//url/ipc:url_ipc",
  ]
}

static_library("safe_browsing_prefs") {
  sources = [
    "safe_browsing_prefs.cc",
    "safe_browsing_prefs.h",
  ]
  deps = [
    "//base:base",
    "//components/prefs",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "safe_browsing_prefs_unittest.cc",
  ]
  deps = [
    ":safe_browsing_prefs",
    "//base:base",
    "//base/test:test_support",
    "//components/prefs:test_support",
    "//testing/gtest",
  ]
}