summaryrefslogtreecommitdiff
path: root/chromium/components/download/database/BUILD.gn
blob: fae900037d33a31d1ea1d3f3a15a80c676ebaf89 (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
48
49
50
51
52
53
54
55
56
57
58
59
# 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.

if (is_android) {
  import("//build/config/android/config.gni")
  import("//build/config/android/rules.gni")
}

source_set("database") {
  sources = [
    "download_db.cc",
    "download_db.h",
    "download_db_conversions.cc",
    "download_db_conversions.h",
    "download_db_entry.cc",
    "download_db_entry.h",
    "download_db_impl.cc",
    "download_db_impl.h",
    "download_info.cc",
    "download_info.h",
    "download_namespace.cc",
    "download_namespace.h",
    "in_progress/download_entry.cc",
    "in_progress/download_entry.h",
    "in_progress/in_progress_info.cc",
    "in_progress/in_progress_info.h",
    "in_progress/ukm_info.cc",
    "in_progress/ukm_info.h",
  ]

  deps = [
    "//base",
    "//components/download/database/proto",
    "//components/leveldb_proto",
    "//net",
    "//services/metrics/public/cpp:metrics_cpp",
    "//services/network/public/mojom",
  ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "download_db_conversions_unittest.cc",
    "download_db_impl_unittest.cc",
  ]

  deps = [
    ":database",
    "//base/test:test_support",
    "//components/download/database/proto",
    "//components/leveldb_proto:test_support",
    "//content/test:test_support",
    "//testing/gmock",
    "//testing/gtest",
  ]
}