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

# Copyright 2017 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("page_info") {
  sources = [
    "page_info_about_this_site_consumer.h",
    "page_info_about_this_site_info.h",
    "page_info_about_this_site_info.mm",
    "page_info_history_consumer.h",
    "page_info_presentation_commands.h",
    "page_info_security_view_controller.h",
    "page_info_security_view_controller.mm",
    "page_info_site_security_description.h",
    "page_info_site_security_description.mm",
    "page_info_view_controller.h",
    "page_info_view_controller.mm",
  ]
  deps = [
    ":features",
    "//base",
    "//base:i18n",
    "//components/keyed_service/core",
    "//components/security_state/core",
    "//components/ssl_errors",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/app/theme",
    "//ios/chrome/browser/keyboard/ui_bundled",
    "//ios/chrome/browser/net/model:crurl",
    "//ios/chrome/browser/permissions/ui_bundled",
    "//ios/chrome/browser/permissions/ui_bundled:constants",
    "//ios/chrome/browser/permissions/ui_bundled:permission_info",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/shared/ui/symbols",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/shared/ui/table_view:utils",
    "//ios/chrome/browser/shared/ui/util",
    "//ios/chrome/browser/ui/page_info/requirements",
    "//ios/chrome/browser/ui/popup_menu",
    "//ios/chrome/browser/ui/settings/cells",
    "//ios/chrome/browser/ui/settings/privacy:privacy_ui",
    "//ios/chrome/common:string_util",
    "//ios/chrome/common/ui/colors",
    "//ios/chrome/common/ui/table_view:cells_constants",
    "//ios/chrome/common/ui/util",
    "//ios/components/webui:url_constants",
    "//ios/web/public/permissions",
    "//ui/base",
    "//ui/gfx",
    "//url",
  ]
  public_deps = [ ":constants" ]
  frameworks = [ "UIKit.framework" ]
}

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

source_set("coordinator") {
  sources = [
    "page_info_about_this_site_mediator.h",
    "page_info_about_this_site_mediator.mm",
    "page_info_coordinator.h",
    "page_info_coordinator.mm",
    "page_info_history_mediator.h",
    "page_info_history_mediator.mm",
    "page_info_permissions_mediator.h",
    "page_info_permissions_mediator.mm",
    "page_info_security_coordinator.h",
    "page_info_security_coordinator.mm",
    "page_info_site_security_mediator.h",
    "page_info_site_security_mediator.mm",
  ]
  deps = [
    ":features",
    ":page_info",
    "//base",
    "//components/content_settings/core/browser",
    "//components/feature_engagement/public",
    "//components/history/core/browser",
    "//components/page_info/core",
    "//components/page_info/core:proto",
    "//components/security_state/core",
    "//components/ssl_errors",
    "//components/strings",
    "//components/ukm/ios:ukm_url_recorder",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/content_settings/model",
    "//ios/chrome/browser/feature_engagement/model",
    "//ios/chrome/browser/history/model",
    "//ios/chrome/browser/main/model",
    "//ios/chrome/browser/page_info:model",
    "//ios/chrome/browser/permissions/ui_bundled",
    "//ios/chrome/browser/permissions/ui_bundled:permission_info",
    "//ios/chrome/browser/reading_list/model",
    "//ios/chrome/browser/shared/coordinator/chrome_coordinator",
    "//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/symbols",
    "//ios/chrome/browser/shared/ui/table_view",
    "//ios/chrome/browser/tabs/model",
    "//ios/chrome/browser/ui/fullscreen:coordinators",
    "//ios/chrome/browser/ui/page_info/requirements",
    "//ios/chrome/browser/ui/settings/privacy",
    "//ios/chrome/browser/ui/settings/utils",
    "//ios/chrome/browser/url_loading/model",
    "//ios/chrome/browser/url_loading/model:url_loading_params_header",
    "//ios/chrome/browser/web/model",
    "//ios/chrome/common/ui/colors",
    "//ios/components/webui:url_constants",
    "//ios/web",
    "//ios/web/public",
    "//ios/web/public/permissions",
    "//ios/web/public/security",
    "//ui/base",
  ]
  frameworks = [ "UIKit.framework" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [ "page_info_permissions_mediator_unittest.mm" ]
  deps = [
    ":coordinator",
    "//base/test:test_support",
    "//ios/chrome/browser/permissions/ui_bundled",
    "//ios/chrome/browser/permissions/ui_bundled:permission_info",
    "//ios/chrome/test:test_support",
    "//ios/web/public/permissions",
    "//ios/web/public/test/fakes",
    "//testing/gtest:gtest",
    "//third_party/ocmock",
  ]
}

source_set("eg2_tests") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "page_info_egtest.mm",
    "page_info_security_egtest.mm",
  ]
  deps = [
    ":constants",
    ":eg_test_support+eg2",
    ":features",
    "//components/content_settings/core/browser",
    "//components/feature_engagement/public",
    "//components/optimization_guide/core:features",
    "//components/page_info/core",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/metrics/model:eg_test_support+eg2",
    "//ios/chrome/browser/overlays/model/public/web_content_area:constants",
    "//ios/chrome/browser/permissions/ui_bundled:constants",
    "//ios/chrome/browser/permissions/ui_bundled:eg_test_support+eg2",
    "//ios/chrome/browser/shared/model/url:constants",
    "//ios/chrome/test/earl_grey:eg_test_support+eg2",
    "//ios/testing/earl_grey:eg_test_support+eg2",
    "//ios/web/public/permissions",
    "//net:test_support",
    "//ui/base",
  ]
}

source_set("features") {
  sources = [
    "features.h",
    "features.mm",
  ]
  public_deps = [
    "//base",
    "//components/page_info/core:core",
    "//ios/chrome/browser/shared/model/application_context",
  ]
}

source_set("eg_test_support+eg2") {
  configs += [ "//build/config/ios:xctest_config" ]
  testonly = true
  sources = [
    "page_info_app_interface.h",
    "page_info_app_interface_stub.mm",
  ]
  deps = [ "//ios/testing/earl_grey:eg_test_support+eg2" ]
}

source_set("eg_app_support+eg2") {
  testonly = true
  sources = [
    "page_info_app_interface.h",
    "page_info_app_interface.mm",
  ]
  deps = [
    "//base",
    "//components/optimization_guide/core:core",
    "//components/optimization_guide/core:features",
    "//components/optimization_guide/proto:optimization_guide_proto",
    "//components/page_info/core:proto",
    "//ios/chrome/browser/optimization_guide/model:model",
    "//ios/chrome/test/app:test_support",
    "//ios/web/common:uikit",
  ]
}