summaryrefslogtreecommitdiff
path: root/chromium/ios/chrome/browser/ntp_tiles/BUILD.gn
blob: f02ab11a8be978fc2d6e7cd6aba120879c6e5f58 (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.

source_set("ntp_tiles") {
  configs += [ "//build/config/compiler:enable_arc" ]
  sources = [
    "ios_most_visited_sites_factory.cc",
    "ios_most_visited_sites_factory.h",
    "ios_popular_sites_factory.cc",
    "ios_popular_sites_factory.h",
    "most_visited_sites_observer_bridge.h",
    "most_visited_sites_observer_bridge.mm",
  ]
  deps = [
    "//base",
    "//components/history/core/browser",
    "//components/image_fetcher/core",
    "//components/image_fetcher/ios",
    "//components/keyed_service/core",
    "//components/ntp_tiles",
    "//ios/chrome/browser",
    "//ios/chrome/browser/browser_state",
    "//ios/chrome/browser/favicon",
    "//ios/chrome/browser/history",
    "//ios/chrome/browser/json_parser",
    "//ios/chrome/browser/search_engines",
    "//ios/web",
    "//services/network/public/cpp",
  ]
}

source_set("eg2_tests") {
  defines = [ "CHROME_EARL_GREY_2" ]
  configs += [
    "//build/config/compiler:enable_arc",
    "//build/config/ios:xctest_config",
  ]
  testonly = true
  sources = [ "ntp_tiles_egtest.mm" ]
  deps = [
    "//base/test:test_support",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/third_party/earl_grey2:test_lib",
    "//ios/web/public/test/http_server:http_server",
    "//net",
  ]
  frameworks = [ "UIKit.framework" ]
}