Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(425)

Side by Side Diff: components/ntp_snippets/BUILD.gn

Issue 2568033005: [NTP::SectionOrder] Replace CategoryFactory with a category ranker. (Closed)
Patch Set: rebase. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 import("//build/config/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 import("//build/config/android/rules.gni") 9 import("//build/config/android/rules.gni")
10 } 10 }
11 11
12 static_library("ntp_snippets") { 12 static_library("ntp_snippets") {
13 sources = [ 13 sources = [
14 "bookmarks/bookmark_last_visit_utils.cc", 14 "bookmarks/bookmark_last_visit_utils.cc",
15 "bookmarks/bookmark_last_visit_utils.h", 15 "bookmarks/bookmark_last_visit_utils.h",
16 "bookmarks/bookmark_suggestions_provider.cc", 16 "bookmarks/bookmark_suggestions_provider.cc",
17 "bookmarks/bookmark_suggestions_provider.h", 17 "bookmarks/bookmark_suggestions_provider.h",
18 "callbacks.h", 18 "callbacks.h",
19 "category.cc", 19 "category.cc",
20 "category.h", 20 "category.h",
21 "category_factory.cc",
22 "category_factory.h",
23 "category_info.cc", 21 "category_info.cc",
24 "category_info.h", 22 "category_info.h",
23 "category_rankers/category_ranker.h",
24 "category_rankers/constant_category_ranker.cc",
25 "category_rankers/constant_category_ranker.h",
25 "category_status.cc", 26 "category_status.cc",
26 "category_status.h", 27 "category_status.h",
27 "content_suggestion.cc", 28 "content_suggestion.cc",
28 "content_suggestion.h", 29 "content_suggestion.h",
29 "content_suggestions_metrics.cc", 30 "content_suggestions_metrics.cc",
30 "content_suggestions_metrics.h", 31 "content_suggestions_metrics.h",
31 "content_suggestions_provider.cc", 32 "content_suggestions_provider.cc",
32 "content_suggestions_provider.h", 33 "content_suggestions_provider.h",
33 "content_suggestions_service.cc", 34 "content_suggestions_service.cc",
34 "content_suggestions_service.h", 35 "content_suggestions_service.h",
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 "category_info.h", 110 "category_info.h",
110 "category_status.h", 111 "category_status.h",
111 ] 112 ]
112 } 113 }
113 } 114 }
114 115
115 source_set("unit_tests") { 116 source_set("unit_tests") {
116 testonly = true 117 testonly = true
117 sources = [ 118 sources = [
118 "bookmarks/bookmark_last_visit_utils_unittest.cc", 119 "bookmarks/bookmark_last_visit_utils_unittest.cc",
119 "category_factory_unittest.cc", 120 "category_rankers/constant_category_ranker_unittest.cc",
121 "category_unittest.cc",
120 "content_suggestions_service_unittest.cc", 122 "content_suggestions_service_unittest.cc",
121 "offline_pages/recent_tab_suggestions_provider_unittest.cc", 123 "offline_pages/recent_tab_suggestions_provider_unittest.cc",
122 "physical_web_pages/physical_web_page_suggestions_provider_unittest.cc", 124 "physical_web_pages/physical_web_page_suggestions_provider_unittest.cc",
123 "remote/ntp_snippet_unittest.cc", 125 "remote/ntp_snippet_unittest.cc",
124 "remote/ntp_snippets_fetcher_unittest.cc", 126 "remote/ntp_snippets_fetcher_unittest.cc",
125 "remote/remote_suggestions_database_unittest.cc", 127 "remote/remote_suggestions_database_unittest.cc",
126 "remote/remote_suggestions_provider_unittest.cc", 128 "remote/remote_suggestions_provider_unittest.cc",
127 "remote/remote_suggestions_status_service_unittest.cc", 129 "remote/remote_suggestions_status_service_unittest.cc",
128 "remote/request_throttler_unittest.cc", 130 "remote/request_throttler_unittest.cc",
129 "remote/test_utils.cc", 131 "remote/test_utils.cc",
(...skipping 25 matching lines...) Expand all
155 "//net:test_support", 157 "//net:test_support",
156 "//testing/gtest", 158 "//testing/gtest",
157 "//third_party/icu/", 159 "//third_party/icu/",
158 "//ui/gfx:test_support", 160 "//ui/gfx:test_support",
159 ] 161 ]
160 } 162 }
161 163
162 source_set("test_support") { 164 source_set("test_support") {
163 testonly = true 165 testonly = true
164 sources = [ 166 sources = [
167 "category_rankers/mock_category_ranker.cc",
168 "category_rankers/mock_category_ranker.h",
165 "mock_content_suggestions_provider_observer.cc", 169 "mock_content_suggestions_provider_observer.cc",
166 "mock_content_suggestions_provider_observer.h", 170 "mock_content_suggestions_provider_observer.h",
167 "offline_pages/offline_pages_test_utils.cc", 171 "offline_pages/offline_pages_test_utils.cc",
168 "offline_pages/offline_pages_test_utils.h", 172 "offline_pages/offline_pages_test_utils.h",
169 ] 173 ]
170 174
171 deps = [ 175 deps = [
172 ":ntp_snippets", 176 ":ntp_snippets",
173 "//base", 177 "//base",
174 "//components/offline_pages/core", 178 "//components/offline_pages/core",
175 "//components/offline_pages/core:test_support", 179 "//components/offline_pages/core:test_support",
176 "//testing/gmock", 180 "//testing/gmock",
177 ] 181 ]
178 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698