chromium/components/aggregation_service/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.

import("//mojo/public/tools/bindings/mojom.gni")

component("aggregation_service") {
  sources = [
    "aggregation_coordinator_utils.cc",
    "aggregation_coordinator_utils.h",
    "features.cc",
    "features.h",
    "parsing_utils.cc",
    "parsing_utils.h",
  ]

  public_deps = [
    "//base",
    "//url",
  ]

  deps = [ "//components/attribution_reporting:is_origin_suitable" ]

  defines = [ "IS_AGGREGATION_SERVICE_IMPL" ]
}

source_set("unit_tests") {
  testonly = true

  sources = [
    "aggregation_coordinator_utils_unittest.cc",
    "parsing_utils_unittest.cc",
  ]

  deps = [
    ":aggregation_service",
    "//base/test:test_support",
    "//testing/gtest",
  ]
}