| # 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("ui_bundled") { |
| sources = [ |
| "snackbar_coordinator.h", |
| "snackbar_coordinator.mm", |
| "snackbar_coordinator_delegate.h", |
| ] |
| deps = [ |
| "//ios/chrome/app/strings", |
| "//ios/chrome/browser/shared/coordinator/chrome_coordinator", |
| "//ios/chrome/browser/shared/coordinator/scene:scene_state_header", |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/snackbar", |
| "//ios/chrome/browser/shared/public/snackbar:constants", |
| "//ios/chrome/browser/shared/ui/chrome_overlay_window", |
| "//ios/chrome/browser/shared/ui/util", |
| "//ios/chrome/browser/snackbar/ui_bundled/ui", |
| "//ios/chrome/common/ui/colors", |
| "//ios/chrome/common/ui/util", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("eg_app_support+eg2") { |
| configs += [ "//build/config/ios:xctest_config" ] |
| testonly = true |
| sources = [ |
| "snackbar_view_test_app_interface.h", |
| "snackbar_view_test_app_interface.mm", |
| ] |
| deps = [ |
| "//ios/chrome/browser/shared/model/browser", |
| "//ios/chrome/browser/shared/public/commands", |
| "//ios/chrome/browser/shared/public/snackbar", |
| "//ios/chrome/test/app:test_support", |
| "//ios/chrome/test/earl_grey:eg_app_support+eg2", |
| ] |
| } |
| |
| source_set("eg_test_support+eg2") { |
| configs += [ "//build/config/ios:xctest_config" ] |
| testonly = true |
| sources = [ |
| "snackbar_view_test_app_interface.h", |
| "snackbar_view_test_app_interface_stub.mm", |
| ] |
| deps = [ "//ios/testing/earl_grey:eg_test_support+eg2" ] |
| } |
| |
| source_set("eg2_tests") { |
| configs += [ "//build/config/ios:xctest_config" ] |
| testonly = true |
| sources = [ "snackbar_view_egtest.mm" ] |
| deps = [ |
| ":eg_test_support+eg2", |
| "//base/test:test_support", |
| "//ios/chrome/browser/shared/public/snackbar:constants", |
| "//ios/chrome/test/earl_grey:eg_test_support+eg2", |
| "//ios/testing/earl_grey:eg_test_support+eg2", |
| "//ui/base", |
| ] |
| frameworks = [ "UIKit.framework" ] |
| } |
| |
| source_set("test_support") { |
| sources = [ |
| "stub_snackbar_coordinator_delegate.h", |
| "stub_snackbar_coordinator_delegate.mm", |
| ] |
| deps = [ ":ui_bundled" ] |
| } |