| 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 "country_code_ios.h", | 13 "country_code_ios.h", |
| 14 "country_code_ios.mm", | 14 "country_code_ios.mm", |
| 15 "field_trial.cc", | 15 "field_trial.cc", |
| 16 "field_trial.h", | 16 "field_trial.h", |
| 17 "icon_cacher.cc", | 17 "icon_cacher.cc", |
| 18 "icon_cacher.h", | 18 "icon_cacher.h", |
| 19 "metrics.cc", | 19 "metrics.cc", |
| 20 "metrics.h", | 20 "metrics.h", |
| 21 "most_visited_sites.cc", | 21 "most_visited_sites.cc", |
| 22 "most_visited_sites.h", | 22 "most_visited_sites.h", |
| 23 "ntp_tile.cc", | 23 "ntp_tile.cc", |
| 24 "ntp_tile.h", | 24 "ntp_tile.h", |
| 25 "ntp_tile_source.h", | 25 "ntp_tile_source.h", |
| 26 "popular_sites.cc", | |
| 27 "popular_sites.h", | 26 "popular_sites.h", |
| 27 "popular_sites_impl.cc", |
| 28 "popular_sites_impl.h", |
| 28 "pref_names.cc", | 29 "pref_names.cc", |
| 29 "pref_names.h", | 30 "pref_names.h", |
| 30 "switches.cc", | 31 "switches.cc", |
| 31 "switches.h", | 32 "switches.h", |
| 32 "webui/ntp_tiles_internals_message_handler.cc", | 33 "webui/ntp_tiles_internals_message_handler.cc", |
| 33 "webui/ntp_tiles_internals_message_handler.h", | 34 "webui/ntp_tiles_internals_message_handler.h", |
| 34 "webui/ntp_tiles_internals_message_handler_client.h", | 35 "webui/ntp_tiles_internals_message_handler_client.h", |
| 35 "webui/popular_sites_internals_message_handler.cc", | 36 "webui/popular_sites_internals_message_handler.cc", |
| 36 "webui/popular_sites_internals_message_handler.h", | 37 "webui/popular_sites_internals_message_handler.h", |
| 37 "webui/popular_sites_internals_message_handler_client.h", | 38 "webui/popular_sites_internals_message_handler_client.h", |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 "//base", | 78 "//base", |
| 78 ] | 79 ] |
| 79 } | 80 } |
| 80 | 81 |
| 81 source_set("unit_tests") { | 82 source_set("unit_tests") { |
| 82 testonly = true | 83 testonly = true |
| 83 sources = [ | 84 sources = [ |
| 84 "icon_cacher_unittest.cc", | 85 "icon_cacher_unittest.cc", |
| 85 "metrics_unittest.cc", | 86 "metrics_unittest.cc", |
| 86 "most_visited_sites_unittest.cc", | 87 "most_visited_sites_unittest.cc", |
| 87 "popular_sites_unittest.cc", | 88 "popular_sites_impl_unittest.cc", |
| 88 ] | 89 ] |
| 89 | 90 |
| 90 deps = [ | 91 deps = [ |
| 91 ":json_unsafe_parser", | 92 ":json_unsafe_parser", |
| 92 ":ntp_tiles", | 93 ":ntp_tiles", |
| 93 "//base/test:test_support", | 94 "//base/test:test_support", |
| 94 "//components/favicon/core", | 95 "//components/favicon/core", |
| 95 "//components/favicon_base", | 96 "//components/favicon_base", |
| 96 "//components/image_fetcher", | 97 "//components/image_fetcher", |
| 97 "//components/pref_registry:pref_registry", | 98 "//components/pref_registry:pref_registry", |
| 98 "//components/rappor:test_support", | 99 "//components/rappor:test_support", |
| 99 "//components/sync_preferences:test_support", | 100 "//components/sync_preferences:test_support", |
| 100 "//net:test_support", | 101 "//net:test_support", |
| 101 "//testing/gmock", | 102 "//testing/gmock", |
| 102 "//testing/gtest", | 103 "//testing/gtest", |
| 103 "//ui/gfx:test_support", | 104 "//ui/gfx:test_support", |
| 104 ] | 105 ] |
| 105 } | 106 } |
| 106 | 107 |
| 107 if (is_android) { | 108 if (is_android) { |
| 108 java_cpp_enum("ntp_tiles_enums_java") { | 109 java_cpp_enum("ntp_tiles_enums_java") { |
| 109 sources = [ | 110 sources = [ |
| 110 "metrics.h", | 111 "metrics.h", |
| 111 "ntp_tile_source.h", | 112 "ntp_tile_source.h", |
| 112 ] | 113 ] |
| 113 } | 114 } |
| 114 } | 115 } |
| OLD | NEW |