| # Copyright 2016 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| source_set("infobars") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "infobar_container_coordinator.h", |
| "infobar_container_coordinator.mm", |
| "infobar_container_mediator.h", |
| "infobar_container_mediator.mm", |
| ] |
| deps = [ |
| ":feature_flags", |
| ":infobars_ui", |
| ":public", |
| "//base", |
| "//ios/chrome/browser", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars:badge", |
| "//ios/chrome/browser/infobars:public", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/coordinators:chrome_coordinators", |
| "//ios/chrome/browser/ui/fullscreen", |
| "//ios/chrome/browser/ui/infobars/banners:public", |
| "//ios/chrome/browser/ui/infobars/coordinators", |
| "//ios/chrome/browser/upgrade", |
| "//ios/chrome/browser/web:tab_id_tab_helper", |
| "//ios/chrome/browser/web_state_list", |
| ] |
| } |
| |
| source_set("public") { |
| sources = [ |
| "infobar_container.h", |
| "infobar_positioner.h", |
| ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "infobar_constants.h", |
| "infobar_constants.mm", |
| ] |
| } |
| |
| source_set("feature_flags") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "infobar_feature.h", |
| "infobar_feature.mm", |
| ] |
| deps = [ |
| "//base", |
| ] |
| } |
| |
| source_set("infobars_ui") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "confirm_infobar_view.h", |
| "confirm_infobar_view.mm", |
| "infobar_badge_ui_delegate.h", |
| "infobar_container_consumer.h", |
| "infobar_ui_delegate.h", |
| "legacy_infobar_container_view_controller.h", |
| "legacy_infobar_container_view_controller.mm", |
| ] |
| deps = [ |
| ":public", |
| "resources:infobar_downloading", |
| "resources:infobar_hide_password_icon", |
| "resources:infobar_passwords_icon", |
| "resources:infobar_popup_blocker", |
| "resources:infobar_reveal_password_icon", |
| "resources:infobar_save_card_icon", |
| "resources:infobar_settings_icon", |
| "resources:infobar_translate_icon", |
| "resources:infobar_warning", |
| "//base", |
| "//base:i18n", |
| "//components/strings", |
| "//ios/chrome/app/theme:theme", |
| "//ios/chrome/app/theme:theme_grit", |
| "//ios/chrome/browser/infobars:public", |
| "//ios/chrome/browser/ui/colors", |
| "//ios/chrome/browser/ui/fancy_ui", |
| "//ios/chrome/browser/ui/fullscreen", |
| "//ios/chrome/browser/ui/fullscreen:ui", |
| "//ios/chrome/browser/ui/toolbar/public", |
| "//ios/chrome/browser/ui/util", |
| "//ios/chrome/common/colors", |
| "//ios/public/provider/chrome/browser/ui", |
| "//ios/third_party/material_components_ios", |
| "//ui/base", |
| "//ui/gfx", |
| "//url", |
| ] |
| public_deps = [ |
| ":constants", |
| ] |
| libs = [ |
| "CoreGraphics.framework", |
| "QuartzCore.framework", |
| "UIKit.framework", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "confirm_infobar_view_unittest.mm", |
| "infobar_container_coordinator_unittest.mm", |
| ] |
| deps = [ |
| ":feature_flags", |
| ":infobars", |
| ":infobars_ui", |
| ":public", |
| ":test_support", |
| "//base/test:test_support", |
| "//ios/chrome/browser/browser_state:test_support", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars:badge", |
| "//ios/chrome/browser/infobars:public", |
| "//ios/chrome/browser/ui/commands", |
| "//ios/chrome/browser/ui/infobars/coordinators", |
| "//ios/chrome/browser/ui/infobars/test", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/browser/web_state_list:test_support", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/test/fakes", |
| "//testing/gtest", |
| "//testing/gtest", |
| "//third_party/ocmock", |
| ] |
| } |
| |
| source_set("eg2_tests") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "infobar_egtest.mm", |
| ] |
| deps = [ |
| ":eg_test_support+eg2", |
| "//base", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ios/third_party/earl_grey2:test_lib", |
| "//ios/web/public/test/http_server", |
| "//url", |
| ] |
| libs = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_tests") { |
| defines = [ "CHROME_EARL_GREY_1" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "infobar_egtest.mm", |
| ] |
| deps = [ |
| ":eg_test_support", |
| "//base", |
| "//ios/chrome/test/earl_grey:test_support", |
| "//ios/testing/earl_grey:earl_grey_support", |
| "//ios/web/public/test/http_server", |
| "//url", |
| ] |
| libs = [ "XCTest.framework" ] |
| } |
| |
| source_set("eg_test_support") { |
| defines = [ "CHROME_EARL_GREY_1" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "infobar_manager_app_interface.h", |
| "infobar_manager_app_interface.mm", |
| ] |
| deps = [ |
| ":test_support", |
| "//base", |
| "//components/infobars/core", |
| "//ios/chrome/app:app_internal", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/tabs", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/test/app:test_support", |
| ] |
| } |
| |
| source_set("test_support") { |
| defines = [ "CHROME_EARL_GREY_1" ] |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "test_infobar_delegate.h", |
| "test_infobar_delegate.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/infobars/core", |
| ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "infobar_manager_app_interface.h", |
| "infobar_manager_app_interface.mm", |
| "test_infobar_delegate.h", |
| "test_infobar_delegate.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/infobars/core", |
| "//ios/chrome/app:app_internal", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/tabs", |
| "//ios/chrome/browser/web_state_list", |
| "//ios/chrome/test/app:test_support", |
| ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| defines = [ "CHROME_EARL_GREY_2" ] |
| configs += [ |
| "//build/config/compiler:enable_arc", |
| "//build/config/ios:xctest_config", |
| ] |
| testonly = true |
| sources = [ |
| "infobar_manager_app_interface.h", |
| ] |
| } |