blob: 8bb2ef08840d8c3a4d230f4f72d2350acc28118d [file] [log] [blame]
# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("content_suggestions") {
sources = [
"sc_content_suggestions_coordinator.h",
"sc_content_suggestions_coordinator.mm",
"sc_content_suggestions_data_source.h",
"sc_content_suggestions_data_source.mm",
"sc_content_suggestions_item.h",
"sc_content_suggestions_item.mm",
"sc_content_suggestions_most_visited_item.h",
"sc_content_suggestions_most_visited_item.mm",
]
deps = [
"//base",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/collection_view/cells",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui",
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
"//ios/chrome/browser/ui/content_suggestions/identifier",
"//ios/chrome/browser/ui/util",
"//ios/chrome/common/favicon",
"//ios/showcase/common",
"//ui/base",
]
libs = [ "UIKit.framework" ]
configs += [ "//build/config/compiler:enable_arc" ]
}
source_set("eg2_tests") {
defines = [ "CHROME_EARL_GREY_2" ]
configs += [
"//build/config/compiler:enable_arc",
"//build/config/ios:xctest_config",
]
testonly = true
sources = [
"sc_content_suggestions_egtest.mm",
]
deps = [
"//base",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/content_suggestions:constants",
"//ios/showcase/test:eg2_test",
"//ios/testing/earl_grey:eg_test_support+eg2",
"//ios/third_party/earl_grey2:test_lib",
"//ui/base",
]
libs = [ "UIKit.framework" ]
}
source_set("eg_tests") {
defines = [ "CHROME_EARL_GREY_1" ]
testonly = true
sources = [
"sc_content_suggestions_egtest.mm",
]
deps = [
":content_suggestions",
"//components/strings",
"//ios/chrome/app/strings",
"//ios/chrome/browser/ui/content_suggestions:constants",
"//ios/chrome/browser/ui/content_suggestions:content_suggestions_ui",
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
"//ios/chrome/browser/ui/util",
"//ios/chrome/test/earl_grey:test_support",
"//ios/showcase/test",
"//ios/testing/earl_grey:earl_grey_support",
"//ios/third_party/earl_grey:earl_grey+link",
"//ui/base",
]
configs += [ "//build/config/compiler:enable_arc" ]
}