chromium/ios/chrome/browser/shared/model/url/BUILD.gn

# 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") {
  sources = [
    "url_util.h",
    "url_util.mm",
  ]

  deps = [
    ":constants",
    "//base",
    "//components/content_settings/core/browser",
    "//ios/chrome/browser/content_settings/model",
    "//ios/components/webui:url_constants",
    "//ios/net",
    "//url",
  ]
}

source_set("constants") {
  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") {
  testonly = true
  sources = [ "url_util_unittest.mm" ]
  deps = [
    ":constants",
    ":url",
    "//base",
    "//ios/components/webui:url_constants",
    "//net",
    "//testing/gtest",
    "//url",
  ]
}