mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-03 18:56:09 +03:00
149 lines
4.8 KiB
Plaintext
149 lines
4.8 KiB
Plaintext
# 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 = [
|
|
"content_suggestions_collection_controlling.h",
|
|
"content_suggestions_collection_synchronizing.h",
|
|
"content_suggestions_collection_updater.h",
|
|
"content_suggestions_collection_updater.mm",
|
|
"content_suggestions_commands.h",
|
|
"content_suggestions_data_sink.h",
|
|
"content_suggestions_data_source.h",
|
|
"content_suggestions_header_controlling.h",
|
|
"content_suggestions_header_provider.h",
|
|
"content_suggestions_header_synchronizer.h",
|
|
"content_suggestions_header_synchronizer.mm",
|
|
"content_suggestions_header_synchronizing.h",
|
|
"content_suggestions_header_view_controller_delegate.h",
|
|
"content_suggestions_layout.h",
|
|
"content_suggestions_layout.mm",
|
|
"content_suggestions_layout_handset.h",
|
|
"content_suggestions_layout_handset.mm",
|
|
"content_suggestions_metrics_recording.h",
|
|
"content_suggestions_view_controller.h",
|
|
"content_suggestions_view_controller.mm",
|
|
"content_suggestions_view_controller_audience.h",
|
|
]
|
|
deps = [
|
|
":content_suggestions_constant",
|
|
":content_suggestions_util",
|
|
"resources:content_suggestions_no_image",
|
|
"resources:content_suggestions_offline",
|
|
"//base",
|
|
"//components/strings",
|
|
"//ios/chrome/browser/ui",
|
|
"//ios/chrome/browser/ui/collection_view",
|
|
"//ios/chrome/browser/ui/commands",
|
|
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
|
|
"//ios/chrome/browser/ui/content_suggestions/identifier",
|
|
"//ios/chrome/browser/ui/favicon:favicon_ui",
|
|
"//ios/chrome/browser/ui/ntp",
|
|
"//ios/chrome/browser/ui/ntp:ntp_header",
|
|
"//ios/chrome/browser/ui/overscroll_actions",
|
|
"//ui/base",
|
|
]
|
|
public_deps = [
|
|
"//ios/third_party/material_components_ios",
|
|
]
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
}
|
|
|
|
source_set("content_suggestions_constant") {
|
|
sources = [
|
|
"ntp_home_constant.h",
|
|
"ntp_home_constant.mm",
|
|
]
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
}
|
|
|
|
source_set("content_suggestions_util") {
|
|
sources = [
|
|
"content_suggestions_collection_utils.h",
|
|
"content_suggestions_collection_utils.mm",
|
|
]
|
|
deps = [
|
|
":content_suggestions_constant",
|
|
"//base",
|
|
"//components/strings",
|
|
"//ios/chrome/app/strings",
|
|
"//ios/chrome/browser/ui",
|
|
"//ios/chrome/browser/ui/commands",
|
|
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
|
|
"//ios/chrome/browser/ui/ntp",
|
|
"//ios/chrome/browser/ui/toolbar/public",
|
|
"//ios/third_party/material_components_ios",
|
|
"//mojo/common:common_custom_types",
|
|
"//ui/base",
|
|
]
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
}
|
|
|
|
source_set("unit_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"content_suggestions_collection_updater_unittest.mm",
|
|
"content_suggestions_collection_utils_unittest.mm",
|
|
"content_suggestions_header_synchronizer_unittest.mm",
|
|
]
|
|
deps = [
|
|
":content_suggestions",
|
|
":content_suggestions_util",
|
|
"//base",
|
|
"//ios/chrome/browser/ui",
|
|
"//ios/chrome/browser/ui/collection_view",
|
|
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
|
|
"//ios/chrome/browser/ui/content_suggestions/identifier",
|
|
"//ios/chrome/test/base",
|
|
"//testing/gtest",
|
|
"//third_party/ocmock",
|
|
]
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
}
|
|
|
|
source_set("eg_tests") {
|
|
testonly = true
|
|
sources = [
|
|
"content_suggestions_egtest.mm",
|
|
"ntp_home_egtest.mm",
|
|
"ntp_home_provider_test_singleton.h",
|
|
"ntp_home_provider_test_singleton.mm",
|
|
"ntp_home_test_utils.h",
|
|
"ntp_home_test_utils.mm",
|
|
]
|
|
deps = [
|
|
":content_suggestions",
|
|
":content_suggestions_constant",
|
|
":content_suggestions_util",
|
|
"//base",
|
|
"//components/keyed_service/ios",
|
|
"//components/ntp_snippets",
|
|
"//components/ntp_snippets:test_support",
|
|
"//components/reading_list/core",
|
|
"//components/strings",
|
|
"//ios/chrome/app/strings",
|
|
"//ios/chrome/browser",
|
|
"//ios/chrome/browser/browser_state",
|
|
"//ios/chrome/browser/ntp_snippets",
|
|
"//ios/chrome/browser/reading_list",
|
|
"//ios/chrome/browser/ui",
|
|
"//ios/chrome/browser/ui/content_suggestions/cells:cells_ui",
|
|
"//ios/chrome/browser/ui/ntp:modal_ntp",
|
|
"//ios/chrome/browser/ui/ntp:ntp_controller",
|
|
"//ios/chrome/test/app:test_support",
|
|
"//ios/chrome/test/earl_grey:test_support",
|
|
"//ios/testing:ios_test_support",
|
|
"//ios/testing/earl_grey:earl_grey_support",
|
|
"//ios/third_party/earl_grey:earl_grey+link",
|
|
"//ios/web/public/test/http_server",
|
|
"//testing/gmock",
|
|
"//ui/strings",
|
|
]
|
|
libs = [
|
|
"UIKit.framework",
|
|
"XCTest.framework",
|
|
]
|
|
configs += [ "//build/config/compiler:enable_arc" ]
|
|
}
|