chromium/ios/chrome/browser/bookmarks/ui_bundled/home/BUILD.gn

# Copyright 2023 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("home") {
  sources = [
    "bookmark_promo_controller.h",
    "bookmark_promo_controller.mm",
    "bookmarks_coordinator.h",
    "bookmarks_coordinator.mm",
    "bookmarks_coordinator_delegate.h",
    "bookmarks_home_consumer.h",
    "bookmarks_home_mediator.h",
    "bookmarks_home_mediator.mm",
    "bookmarks_home_view_controller.h",
    "bookmarks_home_view_controller.mm",
    "synced_bookmarks_bridge.h",
    "synced_bookmarks_bridge.mm",
  ]
  deps = [
    "//base",
    "//components/bookmarks/browser",
    "//components/bookmarks/common",
    "//components/bookmarks/managed",
    "//components/pref_registry:pref_registry",
    "//components/prefs",
    "//components/prefs/ios",
    "//components/signin/public/identity_manager",
    "//components/signin/public/identity_manager/objc",
    "//components/strings:components_strings_grit",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/bookmarks/model:model_utils",
    "//ios/chrome/browser/bookmarks/ui_bundled:constants",
    "//ios/chrome/browser/bookmarks/ui_bundled:core",
    "//ios/chrome/browser/bookmarks/ui_bundled:utils",
    "//ios/chrome/browser/bookmarks/ui_bundled/cells",
    "//ios/chrome/browser/bookmarks/ui_bundled/editor",
    "//ios/chrome/browser/bookmarks/ui_bundled/folder_chooser",
    "//ios/chrome/browser/bookmarks/ui_bundled/folder_editor",
    "//ios/chrome/browser/bookmarks/ui_bundled/resources",
    "//ios/chrome/browser/default_browser/model:default_browser_interest_signals",
    "//ios/chrome/browser/drag_and_drop/model",
    "//ios/chrome/browser/favicon/model",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/incognito_reauth/ui_bundled:incognito_reauth_scene_agent",
    "//ios/chrome/browser/intents:intents_donation_helper",
    "//ios/chrome/browser/keyboard/ui_bundled",
    "//ios/chrome/browser/metrics/model:metrics_internal",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/shared/coordinator/alert",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser",
    "//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:constants",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features:system_flags",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/chrome/browser/shared/ui/list_model:list_model",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:constants",
    "//ios/chrome/browser/shared/ui/table_view:styler",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/table_view:views",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/shared/ui/util:url_with_title",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/tabs/model",
    "//ios/chrome/browser/ui/authentication",
    "//ios/chrome/browser/ui/authentication:account_settings_presenter",
    "//ios/chrome/browser/ui/authentication:signin_presenter",
    "//ios/chrome/browser/ui/authentication/cells",
    "//ios/chrome/browser/ui/authentication/enterprise:enterprise_utils",
    "//ios/chrome/browser/ui/menu",
    "//ios/chrome/browser/ui/sharing",
    "//ios/chrome/browser/ui/sharing/activity_services",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/window_activities/model",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/favicon",
    "//ios/chrome/common/ui/favicon:favicon_constants",
    "//ios/chrome/common/ui/util",
    "//ios/third_party/material_components_ios",
    "//ios/web/public",
    "//ios/web/public/navigation",
    "//ios/web/public/navigation:referrer",
    "//ui/base",
    "//ui/strings",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "bookmarks_home_view_controller_unittest.mm" ]
  deps = [
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/bookmarks/model:test_support",
    "//ios/chrome/browser/bookmarks/ui_bundled/home",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/ui/table_view",
    "//third_party/ocmock:ocmock",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "bookmarks_account_storage_promo_egtest.mm",
    "bookmarks_batch_upload_egtest.mm",
    "bookmarks_promo_egtest.mm",
  ]
  deps = [
    "//base",
    "//components/bookmarks/common",
    "//components/policy:generated",
    "//components/signin/public/base",
    "//components/sync/base",
    "//components/sync/base:features",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bookmarks/model:bookmark_storage_type",
    "//ios/chrome/browser/bookmarks/ui_bundled:constants",
    "//ios/chrome/browser/bookmarks/ui_bundled:eg_test_support+eg2",
    "//ios/chrome/browser/metrics/model:eg_test_support+eg2",
    "//ios/chrome/browser/policy/model:eg_test_support+eg2",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/elements:eg_test_support+eg2",
    "//ios/chrome/browser/signin/model:fake_system_identity",
    "//ios/chrome/browser/signin/model:test_constants",
    "//ios/chrome/browser/ui/authentication:authentication_constants",
    "//ios/chrome/browser/ui/authentication:eg_test_support+eg2",
    "//ios/chrome/browser/ui/authentication/cells:constants",
    "//ios/chrome/browser/ui/authentication/signin:constants",
    "//ios/chrome/browser/ui/settings/google_services:constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//net:test_support",
    "//ui/base",
  ]
}