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 source_set("content_suggestions") { | 5 source_set("content_suggestions") { |
6 sources = [ | 6 sources = [ |
7 "content_suggestion.h", | 7 "content_suggestion.h", |
8 "content_suggestion.mm", | 8 "content_suggestion.mm", |
9 "content_suggestion_extra_builder.h", | 9 "content_suggestion_extra_builder.h", |
10 "content_suggestion_extra_builder.mm", | 10 "content_suggestion_extra_builder.mm", |
11 "content_suggestions_collection_updater.h", | 11 "content_suggestions_collection_updater.h", |
12 "content_suggestions_collection_updater.mm", | 12 "content_suggestions_collection_updater.mm", |
| 13 "content_suggestions_collection_utils.h", |
| 14 "content_suggestions_collection_utils.mm", |
13 "content_suggestions_commands.h", | 15 "content_suggestions_commands.h", |
14 "content_suggestions_data_sink.h", | 16 "content_suggestions_data_sink.h", |
15 "content_suggestions_data_source.h", | 17 "content_suggestions_data_source.h", |
16 "content_suggestions_image_fetcher.h", | 18 "content_suggestions_image_fetcher.h", |
17 "content_suggestions_view_controller.h", | 19 "content_suggestions_view_controller.h", |
18 "content_suggestions_view_controller.mm", | 20 "content_suggestions_view_controller.mm", |
19 ] | 21 ] |
20 deps = [ | 22 deps = [ |
21 ":resources", | 23 ":resources", |
22 "//base", | 24 "//base", |
23 "//components/strings", | 25 "//components/strings", |
| 26 "//ios/chrome/browser/ui", |
24 "//ios/chrome/browser/ui/collection_view", | 27 "//ios/chrome/browser/ui/collection_view", |
25 "//ios/chrome/browser/ui/content_suggestions/cells", | 28 "//ios/chrome/browser/ui/content_suggestions/cells", |
26 "//ios/chrome/browser/ui/content_suggestions/identifier", | 29 "//ios/chrome/browser/ui/content_suggestions/identifier", |
27 "//ios/chrome/browser/ui/favicon:favicon_ui", | 30 "//ios/chrome/browser/ui/favicon:favicon_ui", |
28 "//ios/chrome/browser/ui/reading_list", | 31 "//ios/chrome/browser/ui/reading_list", |
29 "//ui/base", | 32 "//ui/base", |
30 "//url", | 33 "//url", |
31 ] | 34 ] |
32 public_deps = [ | 35 public_deps = [ |
33 "//ios/third_party/material_components_ios", | 36 "//ios/third_party/material_components_ios", |
34 ] | 37 ] |
35 configs += [ "//build/config/compiler:enable_arc" ] | 38 configs += [ "//build/config/compiler:enable_arc" ] |
36 } | 39 } |
37 | 40 |
38 source_set("unit_tests") { | 41 source_set("unit_tests") { |
39 testonly = true | 42 testonly = true |
40 sources = [ | 43 sources = [ |
41 "content_suggestions_collection_updater_unittest.mm", | 44 "content_suggestions_collection_updater_unittest.mm", |
| 45 "content_suggestions_collection_utils_unittest.mm", |
42 ] | 46 ] |
43 deps = [ | 47 deps = [ |
44 ":content_suggestions", | 48 ":content_suggestions", |
45 "//base", | 49 "//base", |
| 50 "//ios/chrome/browser/ui", |
46 "//ios/chrome/browser/ui/collection_view", | 51 "//ios/chrome/browser/ui/collection_view", |
47 "//ios/chrome/browser/ui/content_suggestions/identifier", | 52 "//ios/chrome/browser/ui/content_suggestions/identifier", |
| 53 "//ios/chrome/test/base", |
48 "//testing/gtest", | 54 "//testing/gtest", |
49 "//third_party/ocmock", | 55 "//third_party/ocmock", |
50 ] | 56 ] |
51 configs += [ "//build/config/compiler:enable_arc" ] | 57 configs += [ "//build/config/compiler:enable_arc" ] |
52 } | 58 } |
53 | 59 |
54 bundle_data("resources") { | 60 bundle_data("resources") { |
55 sources = [ | 61 sources = [ |
56 "resources/content_suggestions_no_image.png", | 62 "resources/content_suggestions_no_image.png", |
57 "resources/content_suggestions_no_image@2x.png", | 63 "resources/content_suggestions_no_image@2x.png", |
58 "resources/content_suggestions_no_image@3x.png", | 64 "resources/content_suggestions_no_image@3x.png", |
59 ] | 65 ] |
60 outputs = [ | 66 outputs = [ |
61 "{{bundle_resources_dir}}/{{source_file_part}}", | 67 "{{bundle_resources_dir}}/{{source_file_part}}", |
62 ] | 68 ] |
63 } | 69 } |
OLD | NEW |