| # 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("url") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "url_util.h", |
| "url_util.mm", |
| ] |
| |
| deps = [ |
| ":constants", |
| "//base", |
| "//components/content_settings/core/browser", |
| "//ios/chrome/browser/content_settings", |
| "//ios/components/webui:url_constants", |
| "//ios/net", |
| "//url", |
| ] |
| } |
| |
| source_set("constants") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| sources = [ |
| "chrome_url_constants.cc", |
| "chrome_url_constants.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/commerce/core:commerce_constants", |
| "//components/optimization_guide/optimization_guide_internals/webui:url_constants", |
| "//ios/components/webui:url_constants", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| configs += [ "//build/config/compiler:enable_arc" ] |
| testonly = true |
| sources = [ "url_util_unittest.mm" ] |
| deps = [ |
| ":constants", |
| ":url", |
| "//base", |
| "//ios/components/webui:url_constants", |
| "//net", |
| "//testing/gtest", |
| "//url", |
| ] |
| } |