OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 if (is_android) { | 5 if (is_android) { |
6 import("//build/config/android/rules.gni") | 6 import("//build/config/android/rules.gni") |
7 } | 7 } |
8 | 8 |
9 static_library("ntp_tiles") { | 9 static_library("ntp_tiles") { |
10 sources = [ | 10 sources = [ |
11 "constants.cc", | 11 "constants.cc", |
12 "constants.h", | 12 "constants.h", |
| 13 "icon_cacher.cc", |
| 14 "icon_cacher.h", |
13 "metrics.cc", | 15 "metrics.cc", |
14 "metrics.h", | 16 "metrics.h", |
15 "most_visited_sites.cc", | 17 "most_visited_sites.cc", |
16 "most_visited_sites.h", | 18 "most_visited_sites.h", |
17 "ntp_tile.cc", | 19 "ntp_tile.cc", |
18 "ntp_tile.h", | 20 "ntp_tile.h", |
19 "popular_sites.cc", | 21 "popular_sites.cc", |
20 "popular_sites.h", | 22 "popular_sites.h", |
21 "pref_names.cc", | 23 "pref_names.cc", |
22 "pref_names.h", | 24 "pref_names.h", |
23 "switches.cc", | 25 "switches.cc", |
24 "switches.h", | 26 "switches.h", |
25 ] | 27 ] |
26 | 28 |
27 public_deps = [ | 29 public_deps = [ |
28 "//base", | 30 "//base", |
29 "//components/history/core/browser", | 31 "//components/history/core/browser", |
30 "//components/suggestions", | 32 "//components/suggestions", |
31 ] | 33 ] |
32 deps = [ | 34 deps = [ |
33 "//components/data_use_measurement/core", | 35 "//components/data_use_measurement/core", |
| 36 "//components/favicon/core", |
| 37 "//components/favicon_base", |
34 "//components/google/core/browser", | 38 "//components/google/core/browser", |
| 39 "//components/image_fetcher", |
35 "//components/pref_registry", | 40 "//components/pref_registry", |
36 "//components/prefs", | 41 "//components/prefs", |
37 "//components/search_engines", | 42 "//components/search_engines", |
38 "//components/variations", | 43 "//components/variations", |
39 "//components/variations/service", | 44 "//components/variations/service", |
40 ] | 45 ] |
41 | 46 |
42 if (is_android) { | 47 if (is_android) { |
43 deps += [ "android:ntp_tiles_jni_headers" ] | 48 deps += [ "android:ntp_tiles_jni_headers" ] |
44 } | 49 } |
45 } | 50 } |
46 | 51 |
47 source_set("unit_tests") { | 52 source_set("unit_tests") { |
48 testonly = true | 53 testonly = true |
49 sources = [ | 54 sources = [ |
| 55 "icon_cacher_unittest.cc", |
50 "most_visited_sites_unittest.cc", | 56 "most_visited_sites_unittest.cc", |
51 ] | 57 ] |
52 | 58 |
53 deps = [ | 59 deps = [ |
54 ":ntp_tiles", | 60 ":ntp_tiles", |
| 61 "//components/favicon/core", |
| 62 "//components/favicon_base", |
| 63 "//components/image_fetcher", |
| 64 "//testing/gmock", |
55 "//testing/gtest", | 65 "//testing/gtest", |
| 66 "//ui/gfx:test_support", |
56 ] | 67 ] |
57 } | 68 } |
58 | 69 |
59 if (is_android) { | 70 if (is_android) { |
60 java_cpp_enum("ntp_tiles_enums_java") { | 71 java_cpp_enum("ntp_tiles_enums_java") { |
61 sources = [ | 72 sources = [ |
62 "metrics.h", | 73 "metrics.h", |
63 "ntp_tile.h", | 74 "ntp_tile.h", |
64 ] | 75 ] |
65 } | 76 } |
66 } | 77 } |
OLD | NEW |