| # Copyright 2025 The Chromium Authors |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| import("//components/optimization_guide/features.gni") |
| |
| static_library("browser") { |
| sources = [ |
| "strike_databases/walletable_pass_save_strike_database_by_category.h", |
| "walletable_pass_client.h", |
| "walletable_pass_ingestion_controller.cc", |
| "walletable_pass_ingestion_controller.h", |
| "walletable_pass_service.cc", |
| "walletable_pass_service.h", |
| ] |
| deps = [ |
| "//base", |
| "//components/keyed_service/core", |
| "//components/optimization_guide/core", |
| "//components/strike_database", |
| "//url", |
| ] |
| } |
| |
| source_set("test_support") { |
| testonly = true |
| sources = [ "walletable_pass_ingestion_controller_test_api.h" ] |
| deps = [ |
| ":browser", |
| "//base", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ "walletable_pass_service_unittest.cc" ] |
| if (build_with_model_execution) { |
| sources += [ "walletable_pass_ingestion_controller_unittest.cc" ] |
| } |
| deps = [ |
| ":browser", |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/optimization_guide/core", |
| "//components/optimization_guide/core:test_support", |
| "//components/strike_database:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//url", |
| ] |
| } |