| # 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("lookalikes") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "lookalike_url_blocking_page.h", |
| "lookalike_url_blocking_page.mm", |
| "lookalike_url_container.h", |
| "lookalike_url_container.mm", |
| "lookalike_url_controller_client.h", |
| "lookalike_url_controller_client.mm", |
| "lookalike_url_error.h", |
| "lookalike_url_error.mm", |
| "lookalike_url_tab_allow_list.h", |
| "lookalike_url_tab_allow_list.mm", |
| "lookalike_url_tab_helper.h", |
| "lookalike_url_tab_helper.mm", |
| ] |
| deps = [ |
| "//base", |
| "//components/lookalikes/core", |
| "//components/lookalikes/core:safety_tips", |
| "//components/security_interstitials/core", |
| "//components/ukm/ios", |
| "//components/url_formatter/spoof_checks/top_domains:common", |
| "//ios/components/security_interstitials", |
| "//ios/net", |
| "//ios/web/public", |
| "//net", |
| "//services/metrics/public/cpp:metrics_cpp", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ |
| "lookalike_url_blocking_page_unittest.mm", |
| "lookalike_url_tab_helper_unittest.mm", |
| ] |
| deps = [ |
| ":lookalikes", |
| "//base/test:test_support", |
| "//components/lookalikes/core", |
| "//components/lookalikes/core:safety_tips", |
| "//components/security_interstitials/core", |
| "//components/ukm:test_support", |
| "//components/ukm/ios", |
| "//ios/web/public", |
| "//ios/web/public/test", |
| "//net", |
| "//services/metrics/public/cpp:metrics_cpp", |
| "//testing/gtest", |
| ] |
| } |