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_suggestions_collection_updater.h", | 9 "content_suggestions_collection_updater.h", |
10 "content_suggestions_collection_updater.mm", | 10 "content_suggestions_collection_updater.mm", |
11 "content_suggestions_commands.h", | 11 "content_suggestions_commands.h", |
12 "content_suggestions_data_sink.h", | 12 "content_suggestions_data_sink.h", |
13 "content_suggestions_data_source.h", | 13 "content_suggestions_data_source.h", |
14 "content_suggestions_image_fetcher.h", | 14 "content_suggestions_image_fetcher.h", |
15 "content_suggestions_view_controller.h", | 15 "content_suggestions_view_controller.h", |
16 "content_suggestions_view_controller.mm", | 16 "content_suggestions_view_controller.mm", |
17 ] | 17 ] |
18 deps = [ | 18 deps = [ |
19 "//base", | 19 "//base", |
| 20 "//components/strings", |
20 "//ios/chrome/browser/ui/collection_view", | 21 "//ios/chrome/browser/ui/collection_view", |
21 "//ios/chrome/browser/ui/content_suggestions/cells", | 22 "//ios/chrome/browser/ui/content_suggestions/cells", |
22 "//ios/chrome/browser/ui/content_suggestions/identifier", | 23 "//ios/chrome/browser/ui/content_suggestions/identifier", |
23 "//ui/base", | 24 "//ui/base", |
24 "//url", | 25 "//url", |
25 ] | 26 ] |
26 public_deps = [ | 27 public_deps = [ |
27 "//ios/third_party/material_components_ios", | 28 "//ios/third_party/material_components_ios", |
28 ] | 29 ] |
29 configs += [ "//build/config/compiler:enable_arc" ] | 30 configs += [ "//build/config/compiler:enable_arc" ] |
30 } | 31 } |
| 32 |
| 33 source_set("unit_tests") { |
| 34 testonly = true |
| 35 sources = [ |
| 36 "content_suggestions_collection_updater_unittest.mm", |
| 37 ] |
| 38 deps = [ |
| 39 ":content_suggestions", |
| 40 "//base", |
| 41 "//ios/chrome/browser/ui/collection_view", |
| 42 "//ios/chrome/browser/ui/content_suggestions/identifier", |
| 43 "//testing/gtest", |
| 44 "//third_party/ocmock", |
| 45 ] |
| 46 configs += [ "//build/config/compiler:enable_arc" ] |
| 47 } |
OLD | NEW |