chromium/ios/chrome/browser/overlays/model/public/web_content_area/BUILD.gn

# Copyright 2019 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("web_content_area") {
  sources = [
    "alert_overlay.h",
    "alert_overlay.mm",
    "app_launcher_overlay.h",
    "app_launcher_overlay.mm",
    "http_auth_overlay.h",
    "http_auth_overlay.mm",
    "insecure_form_overlay.h",
    "insecure_form_overlay.mm",
    "java_script_alert_dialog_overlay.h",
    "java_script_alert_dialog_overlay.mm",
    "java_script_confirm_dialog_overlay.h",
    "java_script_confirm_dialog_overlay.mm",
    "java_script_dialog_overlay_utils.h",
    "java_script_dialog_overlay_utils.mm",
    "java_script_prompt_dialog_overlay.h",
    "java_script_prompt_dialog_overlay.mm",
    "permissions_dialog_overlay.h",
    "permissions_dialog_overlay.mm",
  ]

  deps = [
    ":constants",
    "//base",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/dialogs/ui_bundled",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/web/public",
    "//ios/web/public/permissions",
    "//ui/base",
    "//url",
  ]
}

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

source_set("unit_tests") {
  testonly = true
  sources = [
    "app_launcher_overlay_unittest.mm",
    "http_auth_overlay_unittest.mm",
    "insecure_form_overlay_unittest.mm",
    "java_script_alert_dialog_overlay_unittest.mm",
    "java_script_confirm_dialog_overlay_unittest.mm",
    "java_script_dialog_overlay_utils_unittest.mm",
    "java_script_prompt_dialog_overlay_unittest.mm",
    "permissions_dialog_overlay_unittest.mm",
  ]

  deps = [
    ":constants",
    ":web_content_area",
    "//base",
    "//components/strings",
    "//ios/chrome/app/strings",
    "//ios/chrome/browser/dialogs/ui_bundled",
    "//ios/chrome/browser/dialogs/ui_bundled:java_script_blocking_fake_web_state",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/shared/ui/elements",
    "//ios/web/public/test/fakes",
    "//testing/gtest",
    "//ui/base",
    "//url",
  ]
}