| # 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") |
| |
| mojom("mojom") { |
| generate_java = true |
| webui_module_path = "/" |
| use_typescript_sources = true |
| |
| # Required by components/attribution_reporting:registration_mojom which is |
| # used by Blink. Blink requires legacy JS bindings. |
| generate_legacy_js_bindings = true |
| |
| sources = [ "aggregation_service.mojom" ] |
| } |
| |
| component("aggregation_service") { |
| sources = [ |
| "parsing_utils.cc", |
| "parsing_utils.h", |
| ] |
| |
| public_deps = [ |
| ":mojom", |
| "//base", |
| ] |
| |
| defines = [ "IS_AGGREGATION_SERVICE_IMPL" ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| |
| sources = [ "parsing_utils_unittest.cc" ] |
| |
| deps = [ |
| ":aggregation_service", |
| "//testing/gtest", |
| ] |
| } |