# Copyright 2019 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/features.gni")
assert(target_os == "ios")
group("ios") {
public_deps = [ ":ukm_url_recorder" ]
}
source_set("ukm_url_recorder") {
sources = [
"ukm_url_recorder.h",
"ukm_url_recorder.mm",
]
public_deps = [ "//services/metrics/public/cpp:metrics_cpp" ]
deps = [
"//base",
"//ios/web/public",
"//url",
]
}
source_set("ukm_reporting_ios_util") {
deps = [ "//base" ]
sources = [
"ukm_reporting_ios_util.h",
"ukm_reporting_ios_util.mm",
]
}
source_set("unit_tests") {
testonly = true
sources = [ "ukm_url_recorder_unittest.mm" ]
deps = [
":ukm_url_recorder",
"//base",
"//base/test:test_support",
"//components/ukm:test_support",
"//ios/web/public",
"//ios/web/public/test",
"//ios/web/public/test:test_fixture",
"//net:test_support",
"//services/metrics/public/cpp:metrics_cpp",
"//testing/gtest",
]
}