| # Copyright 2024 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") |
| |
| if (is_win || is_mac || is_linux || is_chromeos) { |
| static_library("browser") { |
| sources = [ |
| "autofill_ai_client.cc", |
| "autofill_ai_client.h", |
| "autofill_ai_import_utils.cc", |
| "autofill_ai_import_utils.h", |
| "autofill_ai_manager.cc", |
| "autofill_ai_manager.h", |
| "autofill_ai_metrics.cc", |
| "autofill_ai_metrics.h", |
| "autofill_ai_utils.cc", |
| "autofill_ai_utils.h", |
| "metrics/autofill_ai_logger.cc", |
| "metrics/autofill_ai_logger.h", |
| "metrics/autofill_ai_ukm_logger.cc", |
| "metrics/autofill_ai_ukm_logger.h", |
| "suggestion/autofill_ai_suggestions.cc", |
| "suggestion/autofill_ai_suggestions.h", |
| ] |
| |
| deps = [ |
| "//base", |
| "//components/autofill/core/browser", |
| "//components/autofill/core/common", |
| "//components/keyed_service/core", |
| "//components/optimization_guide/core:core", |
| "//components/optimization_guide/proto:optimization_guide_proto", |
| "//components/strings", |
| "//net", |
| "//services/metrics/public/cpp:metrics_cpp", |
| "//services/metrics/public/cpp:ukm_builders", |
| "//ui/native_theme:native_theme", |
| ] |
| } |
| |
| static_library("test_support") { |
| testonly = true |
| sources = [ |
| "autofill_ai_manager_test_api.h", |
| "mock_autofill_ai_client.cc", |
| "mock_autofill_ai_client.h", |
| ] |
| deps = [ |
| ":browser", |
| "//base", |
| "//components/autofill/core/browser:test_support", |
| "//components/autofill/core/common", |
| "//components/optimization_guide/core:test_support", |
| "//testing/gmock", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "autofill_ai_import_utils_unittest.cc", |
| "autofill_ai_manager_unittest.cc", |
| "metrics/autofill_ai_logger_unittest.cc", |
| "suggestion/autofill_ai_suggestions_unittest.cc", |
| ] |
| deps = [ |
| ":browser", |
| ":test_support", |
| "//base", |
| "//base/test:test_support", |
| "//components/autofill/core/browser:test_support", |
| "//components/autofill/core/common", |
| "//components/optimization_guide/core:test_support", |
| "//components/optimization_guide/proto:optimization_guide_proto", |
| "//components/prefs:test_support", |
| "//testing/gmock", |
| "//testing/gtest", |
| ] |
| } |
| } |