| # Copyright 2020 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("test_modality") { |
| testonly = true |
| sources = [ |
| "test_contained_overlay_coordinator.h", |
| "test_contained_overlay_coordinator.mm", |
| "test_presented_overlay_coordinator.h", |
| "test_presented_overlay_coordinator.mm", |
| "test_resizing_presented_overlay_coordinator.h", |
| "test_resizing_presented_overlay_coordinator.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| "//base", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/test_modality", |
| "//ios/chrome/browser/ui/overlays:coordinators", |
| "//ios/chrome/browser/ui/overlays:presentation_controller", |
| "//ios/chrome/common/ui/util", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "test_contained_overlay_coordinator_unittest.mm", |
| "test_presented_overlay_coordinator_unittest.mm", |
| "test_resizing_presented_overlay_coordinator_unittest.mm", |
| ] |
| |
| configs += [ "//build/config/compiler:enable_arc" ] |
| |
| deps = [ |
| ":test_modality", |
| "//base/test:test_support", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/test_modality", |
| "//ios/chrome/browser/shared/model/browser/test:test_support", |
| "//ios/chrome/browser/shared/model/browser_state:test_support", |
| "//ios/chrome/browser/ui/overlays/test", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/test", |
| "//testing/gtest", |
| ] |
| } |