| # Copyright 2022 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("infobar_delegate") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "permissions_infobar_delegate.h", |
| "permissions_infobar_delegate.mm", |
| ] |
| deps = [ "//components/infobars/core" ] |
| } |
| |
| source_set("tab_helper") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "permissions_tab_helper.h", |
| "permissions_tab_helper.mm", |
| ] |
| deps = [ |
| ":infobar_delegate", |
| "//components/infobars/core", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars/overlays", |
| "//ios/chrome/browser/infobars/overlays:util", |
| "//ios/chrome/browser/overlays", |
| "//ios/chrome/browser/overlays/public/common/infobars", |
| "//ios/chrome/browser/overlays/public/infobar_banner", |
| "//ios/chrome/browser/overlays/public/web_content_area", |
| "//ios/web/public", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ "permissions_tab_helper_unittest.mm" ] |
| deps = [ |
| ":infobar_delegate", |
| ":tab_helper", |
| "//base", |
| "//base/test:test_support", |
| "//ios/chrome/browser/infobars", |
| "//ios/chrome/browser/infobars/overlays", |
| "//ios/chrome/browser/permissions:infobar_delegate", |
| "//ios/chrome/test:test_support", |
| "//ios/web/public/permissions", |
| "//ios/web/public/test", |
| "//ios/web/public/test/fakes", |
| "//testing/gtest", |
| ] |
| } |