chromium/ios/chrome/browser/ui/sharing/activity_services/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("activity_services") {
  sources = [
    "activity_service_coordinator.h",
    "activity_service_coordinator.mm",
    "activity_service_histograms.h",
    "activity_service_histograms.mm",
    "activity_service_mediator.h",
    "activity_service_mediator.mm",
    "activity_service_presentation.h",
    "activity_type_util.h",
    "activity_type_util.mm",
    "canonical_url_retriever.h",
    "canonical_url_retriever.mm",
  ]
  deps = [
    "//base",
    "//components/bookmarks/browser",
    "//components/bookmarks/common",
    "//components/prefs",
    "//components/ui_metrics",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/default_promo/ui_bundled:coordinator",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//ios/chrome/browser/shared/coordinator/default_browser_promo",
    "//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",
    "//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/shared/ui/util:url_with_title",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/tabs/model",
    "//ios/chrome/browser/ui/main:default_browser_scene_agent",
    "//ios/chrome/browser/ui/sharing",
    "//ios/chrome/browser/ui/sharing/activity_services/activities",
    "//ios/chrome/browser/ui/sharing/activity_services/data",
    "//ios/chrome/browser/web/model",
    "//ios/web/public/js_messaging",
    "//ui/base",
    "//url",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "activity_service_mediator_unittest.mm",
    "activity_type_util_unittest.mm",
    "canonical_url_retriever_unittest.mm",
  ]
  deps = [
    ":activity_services",
    "//base",
    "//base/test:test_support",
    "//components/bookmarks/browser",
    "//components/bookmarks/test",
    "//components/prefs:test_support",
    "//components/send_tab_to_self",
    "//components/sync/service",
    "//components/ui_metrics",
    "//ios/chrome/browser/bookmarks/model",
    "//ios/chrome/browser/download/model",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/snapshots/model",
    "//ios/chrome/browser/snapshots/model:test_utils",
    "//ios/chrome/browser/sync/model",
    "//ios/chrome/browser/tabs/model",
    "//ios/chrome/browser/ui/sharing",
    "//ios/chrome/browser/ui/sharing/activity_services/activities",
    "//ios/chrome/browser/ui/sharing/activity_services/data",
    "//ios/testing:ocmock_support",
    "//ios/web",
    "//ios/web/common:user_agent",
    "//ios/web/public/test",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
    "//ui/base:test_support",
    "//url",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true

  sources = [ "activity_service_controller_egtest.mm" ]

  deps = [
    "//base/test:test_support",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/ui/popup_menu:constants",
    "//ios/chrome/browser/ui/popup_menu/overflow_menu:feature_flags",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:launch_configuration",
    "//ios/web/public/test/http_server",
    "//ui/base",
  ]

  frameworks = [ "UIKit.framework" ]
}