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

# Copyright 2020 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("menu") {
  sources = [
    "action_factory+protected.h",
    "action_factory.h",
    "action_factory.mm",
    "browser_action_factory.h",
    "browser_action_factory.mm",
    "menu_action_type.h",
    "menu_histograms.h",
    "menu_histograms.mm",
  ]
  deps = [
    "//base",
    "//components/open_from_clipboard",
    "//components/prefs",
    "//components/search_engines",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/incognito_reauth/ui_bundled:incognito_reauth_scene_agent",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/search_engines/model",
    "//ios/chrome/browser/shared/coordinator/scene:scene_state_header",
    "//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/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/signin/model:system_identity",
    "//ios/chrome/browser/ui/lens:lens_entrypoint",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/window_activities/model",
    "//ios/public/provider/chrome/browser/context_menu:context_menu_api",
    "//ios/public/provider/chrome/browser/lens:lens_api",
    "//net",
    "//ui/base",
    "//url",
  ]
}

source_set("tab_context_menu_delegate") {
  sources = [ "tab_context_menu_delegate.h" ]

  deps = [
    "//base",
    "//ios/chrome/browser/ui/sharing",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "action_factory_unittest.mm",
    "browser_action_factory_unittest.mm",
  ]
  deps = [
    ":menu",
    "//base",
    "//base/test:test_support",
    "//components/policy/core/common:common_constants",
    "//components/sync_preferences:test_support",
    "//components/tab_groups",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/policy/model:policy_util",
    "//ios/chrome/browser/sessions/model:test_support",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//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/url_loading/model",
    "//ios/chrome/browser/window_activities/model",
    "//ios/web/public/test",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
    "//ui/base:test_support",
  ]
}