summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/favicon/BUILD.gn
blob: f6b55494c50811ece668c9562497425eed2af6e0 (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
60
61
62
63
# 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("favicon") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "favicon_client_impl.h",
    "favicon_client_impl.mm",
    "favicon_loader.h",
    "favicon_loader.mm",
    "favicon_service_factory.cc",
    "favicon_service_factory.h",
    "ios_chrome_favicon_loader_factory.h",
    "ios_chrome_favicon_loader_factory.mm",
    "ios_chrome_large_icon_cache_factory.cc",
    "ios_chrome_large_icon_cache_factory.h",
    "ios_chrome_large_icon_service_factory.cc",
    "ios_chrome_large_icon_service_factory.h",
    "large_icon_cache.cc",
    "large_icon_cache.h",
  ]
  deps = [
    "//base",
    "//components/favicon/core",
    "//components/favicon_base",
    "//components/image_fetcher/core",
    "//components/image_fetcher/ios",
    "//components/keyed_service/core",
    "//components/keyed_service/ios",
    "//components/resources",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/history",
    "//ios/chrome/browser/ui/util",
    "//ios/chrome/common/ui/favicon",
    "//ios/components/webui:url_constants",
    "//ios/web",
    "//skia",
    "//ui/base",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "favicon_loader_unittest.mm",
    "large_icon_cache_unittest.cc",
  ]
  deps = [
    ":favicon",
    "//base",
    "//components/favicon/core",
    "//components/favicon_base",
    "//ios/chrome/common/ui/favicon",
    "//skia",
    "//testing/gtest",
    "//ui/gfx/codec",
    "//url",
  ]
}