chromium/ios/chrome/browser/overlays/ui_bundled/infobar_modal/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("coordinators") {
  sources = [
    "infobar_modal_overlay_coordinator+modal_configuration.h",
    "infobar_modal_overlay_coordinator.h",
    "infobar_modal_overlay_coordinator.mm",
  ]

  deps = [
    ":mediators",
    "//base",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/common/infobars",
    "//ios/chrome/browser/overlays/ui_bundled:coordinators",
    "//ios/chrome/browser/overlays/ui_bundled:util",
    "//ios/chrome/browser/ui/infobars/modals",
    "//ios/chrome/browser/ui/infobars/presentation",
  ]
}

source_set("mediators") {
  sources = [
    "infobar_modal_overlay_mediator.h",
    "infobar_modal_overlay_mediator.mm",
  ]

  deps = [
    "//base",
    "//components/infobars/core",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/infobar_modal",
    "//ios/chrome/browser/overlays/ui_bundled:coordinators",
    "//ios/chrome/browser/ui/infobars/modals",
    "//ios/chrome/browser/ui/infobars/modals:public",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "infobar_modal_overlay_coordinator_unittest.mm",
    "infobar_modal_overlay_mediator_unittest.mm",
  ]

  deps = [
    ":coordinators",
    ":mediators",
    "//base/test:test_support",
    "//components/infobars/core",
    "//ios/chrome/browser/infobars/model/test",
    "//ios/chrome/browser/overlays/model",
    "//ios/chrome/browser/overlays/model/public/infobar_modal",
    "//ios/chrome/browser/overlays/model/test",
    "//ios/chrome/browser/overlays/ui_bundled:coordinators",
    "//ios/chrome/browser/overlays/ui_bundled/test",
    "//ios/chrome/browser/shared/model/browser/test:test_support",
    "//ios/chrome/browser/shared/model/profile/test",
    "//ios/chrome/browser/shared/model/web_state_list",
    "//ios/chrome/test:test_support",
    "//ios/web/public/test",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/ocmock",
    "//ui/base",
  ]
}