# Copyright 2021 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("lib") {
sources = [
"web_app_origin_association_fetcher.cc",
"web_app_origin_association_fetcher.h",
"web_app_origin_association_parser.cc",
"web_app_origin_association_parser.h",
"web_app_origin_association_parser_impl.cc",
"web_app_origin_association_parser_impl.h",
"web_app_origin_association_uma_util.cc",
"web_app_origin_association_uma_util.h",
]
deps = [
"//base",
"//mojo/public/cpp/bindings",
"//net",
"//services/network/public/cpp",
"//skia",
"//url",
]
public_deps = [
"//components/webapps/services/web_app_origin_association/public/mojom",
]
}
source_set("service") {
sources = [
"web_app_origin_association_parser_service.cc",
"web_app_origin_association_parser_service.h",
]
deps = [ "//content/public/browser" ]
public_deps = [
"//components/webapps/services/web_app_origin_association/public/mojom",
"//mojo/public/cpp/bindings",
]
}
source_set("unit_tests") {
testonly = true
sources = [
"web_app_origin_association_fetcher_unittest.cc",
"web_app_origin_association_parser_impl_unittest.cc",
"web_app_origin_association_parser_unittest.cc",
]
deps = [
"//base",
"//base/test:test_support",
"//components/webapps/services/web_app_origin_association:lib",
"//content/public/browser",
"//content/test:test_support",
"//net",
"//net:test_support",
"//services/network:network_service",
"//services/network:test_support",
"//skia",
"//testing/gtest",
"//url",
]
}