chromium/ios/chrome/browser/ui/popup_menu/BUILD.gn

# Copyright 2016 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("popup_menu") {
  sources = [
    "popup_menu_action_handler.h",
    "popup_menu_action_handler.mm",
    "popup_menu_action_handler_delegate.h",
    "popup_menu_coordinator.h",
    "popup_menu_coordinator.mm",
    "popup_menu_help_coordinator.h",
    "popup_menu_help_coordinator.mm",
    "popup_menu_mediator.h",
    "popup_menu_mediator.mm",
  ]
  deps = [
    ":constants",
    "//base",
    "//components/bookmarks/browser",
    "//components/bookmarks/common",
    "//components/feature_engagement/public",
    "//components/language/ios/browser",
    "//components/open_from_clipboard",
    "//components/prefs",
    "//components/prefs/ios",
    "//components/profile_metrics",
    "//components/reading_list/core",
    "//components/segmentation_platform/embedder/default_model",
    "//components/segmentation_platform/public",
    "//components/translate/core/browser",
    "//ios/chrome/app:tests_hook",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/bookmarks/ui_bundled:core",
    "//ios/chrome/browser/browser_state_metrics/model",
    "//ios/chrome/browser/bubble/ui_bundled",
    "//ios/chrome/browser/commerce/model/push_notification",
    "//ios/chrome/browser/default_browser/model:utils",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/find_in_page/model",
    "//ios/chrome/browser/follow/model:browser_agent",
    "//ios/chrome/browser/follow/model:enums",
    "//ios/chrome/browser/follow/model:tab_helper",
    "//ios/chrome/browser/follow/model:utils",
    "//ios/chrome/browser/iph_for_new_chrome_user/model",
    "//ios/chrome/browser/lens_overlay/coordinator:lens_overlay_availability",
    "//ios/chrome/browser/ntp/shared/metrics",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/policy/model",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/promos_manager/model:factory",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/search_engines/model:search_engines_util",
    "//ios/chrome/browser/segmentation_platform/model",
    "//ios/chrome/browser/settings/model/sync/utils:identity_error_util",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/coordinator/default_browser_promo",
    "//ios/chrome/browser/shared/coordinator/layout_guide",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser",
    "//ios/chrome/browser/shared/model/browser_state",
    "//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",
    "//ios/chrome/browser/shared/ui/list_model",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/shared/ui/util:util_swift",
    "//ios/chrome/browser/signin/model",
    "//ios/chrome/browser/supervised_user/model",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/translate/model",
    "//ios/chrome/browser/ui/browser_container",
    "//ios/chrome/browser/ui/browser_container:ui",
    "//ios/chrome/browser/ui/content_suggestions/cells:constants",
    "//ios/chrome/browser/ui/lens:lens_entrypoint",
    "//ios/chrome/browser/ui/popup_menu:metrics_protocols",
    "//ios/chrome/browser/ui/popup_menu/cells",
    "//ios/chrome/browser/ui/popup_menu/overflow_menu",
    "//ios/chrome/browser/ui/popup_menu/overflow_menu:feature_flags",
    "//ios/chrome/browser/ui/popup_menu/overflow_menu:overflow_menu_constants",
    "//ios/chrome/browser/ui/popup_menu/overflow_menu:overflow_menu_swift",
    "//ios/chrome/browser/ui/popup_menu/public",
    "//ios/chrome/browser/ui/popup_menu/public:popup_menu_ui",
    "//ios/chrome/browser/ui/popup_menu/public/cells",
    "//ios/chrome/browser/ui/popup_menu/resources",
    "//ios/chrome/browser/ui/presenters",
    "//ios/chrome/browser/ui/reading_list",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/browser/web/model:feature_flags",
    "//ios/chrome/browser/web/model/font_size",
    "//ios/chrome/browser/window_activities/model",
    "//ios/chrome/common/ui/colors",
    "//ios/components/webui:url_constants",
    "//ios/public/provider/chrome/browser/lens:lens_api",
    "//ios/public/provider/chrome/browser/text_zoom:text_zoom_api",
    "//ios/public/provider/chrome/browser/user_feedback:user_feedback_api",
    "//ios/third_party/material_components_ios",
    "//ios/web",
    "//ios/web/common",
    "//ios/web/common:user_agent",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("constants") {
  sources = [
    "popup_menu_constants.h",
    "popup_menu_constants.mm",
  ]
}

source_set("metrics_protocols") {
  sources = [ "popup_menu_metrics_handler.h" ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "popup_menu_help_coordinator_unittest.mm",
    "popup_menu_mediator_unittest.mm",
  ]
  deps = [
    ":constants",
    ":popup_menu",
    "//base",
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//components/bookmarks/common",
    "//components/bookmarks/test",
    "//components/feature_engagement/test:test_support",
    "//components/language/ios/browser",
    "//components/password_manager/core/browser:test_support",
    "//components/prefs",
    "//components/prefs:test_support",
    "//components/reading_list/core",
    "//components/translate/core/browser",
    "//components/translate/core/language_detection",
    "//ios/chrome/app/application_delegate:app_state_header",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/bookmarks/model:test_support",
    "//ios/chrome/browser/default_browser/model:test_support",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/web_content_area",
    "//ios/chrome/browser/overlays/model/test",
    "//ios/chrome/browser/passwords/model:store_factory",
    "//ios/chrome/browser/policy/model",
    "//ios/chrome/browser/policy/model:test_support",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/reading_list/model:test_support",
    "//ios/chrome/browser/search_engines/model:template_url_service_factory",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/browser_state:test_support",
    "//ios/chrome/browser/shared/model/prefs:browser_prefs",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/popup_menu/cells",
    "//ios/chrome/browser/ui/popup_menu/public",
    "//ios/chrome/browser/ui/popup_menu/public:popup_menu_ui",
    "//ios/chrome/browser/ui/toolbar",
    "//ios/chrome/browser/ui/toolbar/test",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/browser/web/model:feature_flags",
    "//ios/chrome/browser/web/model:web_internal",
    "//ios/chrome/browser/web/model/font_size",
    "//ios/chrome/test:test_support",
    "//ios/public/provider/chrome/browser/text_zoom:text_zoom_api",
    "//ios/public/provider/chrome/browser/user_feedback:user_feedback_api",
    "//ios/web",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base:base",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "popup_menu_egtest.mm",
    "request_desktop_mobile_site_egtest.mm",
  ]
  deps = [
    ":constants",
    "//base/test:test_support",
    "//components/feature_engagement/public",
    "//components/strings",
    "//components/version_info",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/bubble/ui_bundled:constants",
    "//ios/chrome/browser/find_in_page/model:util",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/ui/settings:constants",
    "//ios/chrome/test:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/chrome/test/earl_grey:switches",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/web/common:features",
    "//ios/web/common:user_agent",
    "//ios/web/public/test/http_server:http_server",
    "//net",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}