# 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("overlays") {
sources = [
"default_infobar_overlay_request_factory.h",
"default_infobar_overlay_request_factory.mm",
"infobar_banner_overlay_request_cancel_handler.h",
"infobar_banner_overlay_request_cancel_handler.mm",
"infobar_modal_completion_notifier.h",
"infobar_modal_completion_notifier.mm",
"infobar_modal_overlay_request_cancel_handler.h",
"infobar_modal_overlay_request_cancel_handler.mm",
"infobar_overlay_request_cancel_handler.h",
"infobar_overlay_request_cancel_handler.mm",
"infobar_overlay_request_factory.h",
"infobar_overlay_request_inserter.h",
"infobar_overlay_request_inserter.mm",
"infobar_overlay_tab_helper.h",
"infobar_overlay_tab_helper.mm",
"translate_infobar_placeholder_overlay_request_cancel_handler.h",
"translate_infobar_placeholder_overlay_request_cancel_handler.mm",
"translate_overlay_tab_helper.h",
"translate_overlay_tab_helper.mm",
]
public_deps = [ ":overlay_type" ]
deps = [
":util",
"//base",
"//components/infobars/core",
"//components/translate/core/browser",
"//ios/chrome/browser/infobars/model",
"//ios/chrome/browser/infobars/model:public",
"//ios/chrome/browser/overlays/model",
"//ios/chrome/browser/overlays/model/public/common",
"//ios/chrome/browser/overlays/model/public/common/infobars",
"//ios/chrome/browser/overlays/model/public/default",
"//ios/chrome/browser/overlays/model/public/infobar_banner",
"//ios/chrome/browser/overlays/model/public/infobar_modal",
"//ios/chrome/browser/passwords/model:infobar_delegates",
"//ios/web/common",
"//ios/web/public",
]
}
source_set("overlay_type") {
sources = [ "infobar_overlay_type.h" ]
}
source_set("util") {
sources = [
"infobar_overlay_util.h",
"infobar_overlay_util.mm",
]
deps = [
"//base",
"//ios/chrome/browser/infobars/model",
"//ios/chrome/browser/infobars/model:public",
"//ios/chrome/browser/infobars/model/overlays:overlay_type",
"//ios/chrome/browser/overlays/model",
"//ios/chrome/browser/overlays/model/public/common/infobars",
]
}
source_set("test_support") {
testonly = true
sources = [
"fake_infobar_overlay_request_factory.h",
"fake_infobar_overlay_request_factory.mm",
"fake_translate_overlay_tab_helper.h",
"fake_translate_overlay_tab_helper.mm",
]
deps = [
":overlays",
"//base",
"//ios/chrome/browser/infobars/model",
"//ios/chrome/browser/overlays/model",
"//ios/chrome/browser/overlays/model/public/common/infobars",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"default_infobar_overlay_request_factory_unittest.mm",
"infobar_banner_overlay_request_cancel_handler_unittest.mm",
"infobar_modal_completion_notifier_unittest.mm",
"infobar_modal_overlay_request_cancel_handler_unittest.mm",
"infobar_overlay_request_cancel_handler_unittest.mm",
"infobar_overlay_request_inserter_unittest.mm",
"infobar_overlay_tab_helper_unittest.mm",
"infobar_overlay_util_unittest.mm",
"translate_infobar_placeholder_overlay_request_cancel_handler_unittest.mm",
"translate_overlay_tab_helper_unittest.mm",
]
deps = [
":overlays",
":test_support",
":util",
"//base/test:test_support",
"//components/password_manager/core/browser:test_support",
"//components/sync_preferences:test_support",
"//components/translate/core/browser",
"//components/translate/core/browser:test_support",
"//ios/chrome/browser/infobars/model",
"//ios/chrome/browser/infobars/model:public",
"//ios/chrome/browser/infobars/model/overlays/browser_agent/interaction_handlers/test",
"//ios/chrome/browser/infobars/model/test",
"//ios/chrome/browser/overlays/model",
"//ios/chrome/browser/overlays/model/public/common",
"//ios/chrome/browser/overlays/model/public/common/infobars",
"//ios/chrome/browser/overlays/model/public/default",
"//ios/chrome/browser/overlays/model/public/infobar_banner",
"//ios/chrome/browser/overlays/model/public/infobar_modal",
"//ios/chrome/browser/overlays/model/test",
"//ios/chrome/browser/passwords/model:infobar_delegates",
"//ios/chrome/browser/passwords/model/test",
"//ios/chrome/browser/safe_browsing/model/tailored_security/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/browser/translate/model:test_support",
"//ios/chrome/browser/ui/infobars/test",
"//ios/chrome/test:test_support",
"//ios/web/public/test",
"//ios/web/public/test/fakes",
"//testing/gtest",
]
}