summaryrefslogtreecommitdiff
path: root/chromium/components/offline_pages/core/downloads/BUILD.gn
blob: b3ef6b222089653784731f8872a220c093bb0383 (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
# 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.

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

static_library("offline_pages_ui_adapter") {
  sources = [
    "download_ui_adapter.cc",
    "download_ui_adapter.h",
    "offline_item_conversions.cc",
    "offline_item_conversions.h",
  ]

  deps = [
    "//base",
    "//components/offline_items_collection/core",
    "//components/offline_pages/core",
    "//components/offline_pages/core:switches",
    "//components/offline_pages/core/background:background_offliner",
    "//ui/gfx",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "download_ui_adapter_unittest.cc",
    "offline_item_conversions_unittest.cc",
  ]

  deps = [
    ":offline_pages_ui_adapter",
    "//base",
    "//base/test:test_support",
    "//components/offline_items_collection/core",
    "//components/offline_items_collection/core/test_support",
    "//components/offline_pages/core",
    "//components/offline_pages/core:switches",
    "//components/offline_pages/core:test_support",
    "//components/offline_pages/core/background:background_offliner",
    "//components/offline_pages/core/background:test_support",
    "//testing/gmock",
    "//testing/gtest",
    "//ui/gfx:test_support",
  ]
}