# Copyright 2018 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
source_set("model") {
sources = [
"browser_policy_new_tab_page_rewriter.h",
"browser_policy_new_tab_page_rewriter.mm",
"new_tab_page_state.h",
"new_tab_page_state.mm",
"new_tab_page_tab_helper.h",
"new_tab_page_tab_helper.mm",
"new_tab_page_tab_helper_delegate.h",
]
deps = [
"//base:base",
"//components/prefs",
"//components/strings",
"//components/url_formatter",
"//ios/chrome/browser/discover_feed/model:constants",
"//ios/chrome/browser/shared/model/browser_state",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/url",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/shared/public/features:system_flags",
"//ios/components/webui:url_constants",
"//ios/web/common:features",
"//ios/web/public",
"//ui/base:base",
]
}
source_set("util") {
sources = [
"new_tab_page_util.h",
"new_tab_page_util.mm",
]
deps = [
":model",
"//components/search",
"//components/search_engines",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/web/public",
]
}
source_set("set_up_list") {
sources = [
"set_up_list.h",
"set_up_list.mm",
"set_up_list_delegate.h",
"set_up_list_item.h",
"set_up_list_item.mm",
]
deps = [
":set_up_list_item_type",
":set_up_list_metrics",
":set_up_list_prefs",
"//base",
"//components/password_manager/core/browser",
"//components/prefs:prefs",
"//components/prefs/ios",
"//components/sync/base",
"//components/sync/service",
"//ios/chrome/browser/default_browser/model:utils",
"//ios/chrome/browser/push_notification/model:constants",
"//ios/chrome/browser/push_notification/model:push_notification_client",
"//ios/chrome/browser/push_notification/model:push_notification_service",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/sync/model",
]
}
source_set("set_up_list_item_type") {
sources = [ "set_up_list_item_type.h" ]
}
source_set("set_up_list_metrics") {
sources = [
"set_up_list_metrics.h",
"set_up_list_metrics.mm",
]
deps = [
":set_up_list_item_type",
"//base",
]
}
source_set("set_up_list_prefs") {
sources = [
"set_up_list_prefs.h",
"set_up_list_prefs.mm",
]
deps = [
":set_up_list_item_type",
":set_up_list_metrics",
"//base",
"//components/pref_registry",
"//components/prefs",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/public/features",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"browser_policy_new_tab_page_rewriter_unittest.mm",
"new_tab_page_tab_helper_unittest.mm",
"set_up_list_unittest.mm",
]
deps = [
":set_up_list",
":set_up_list_item_type",
":set_up_list_prefs",
"//base/test:test_support",
"//components/password_manager/core/browser",
"//components/prefs",
"//components/strings",
"//components/sync_preferences:test_support",
"//ios/chrome/browser/default_browser/model:test_support",
"//ios/chrome/browser/default_browser/model:utils",
"//ios/chrome/browser/favicon/model",
"//ios/chrome/browser/ntp/model",
"//ios/chrome/browser/policy/model:policy_util",
"//ios/chrome/browser/push_notification/model:constants",
"//ios/chrome/browser/search_engines/model",
"//ios/chrome/browser/shared/model/application_context",
"//ios/chrome/browser/shared/model/prefs:pref_names",
"//ios/chrome/browser/shared/model/profile",
"//ios/chrome/browser/shared/model/profile/test",
"//ios/chrome/browser/shared/model/url:constants",
"//ios/chrome/browser/shared/model/web_state_list",
"//ios/chrome/browser/shared/model/web_state_list/test:test_support",
"//ios/chrome/browser/shared/public/features",
"//ios/chrome/browser/signin/model",
"//ios/chrome/browser/signin/model:fake_system_identity",
"//ios/chrome/browser/signin/model:fake_system_identity_manager",
"//ios/chrome/browser/signin/model:test_support",
"//ios/chrome/browser/sync/model",
"//ios/chrome/test:test_support",
"//ios/web/public/test:test",
"//ios/web/public/test/fakes",
"//testing/gtest:gtest",
"//third_party/ocmock",
"//ui/base:base",
]
}