| # Copyright 2023 The Chromium Authors |
| # Use of this source code is governed by a BSD - style license that can be |
| # found in the LICENSE file. |
| |
| static_library("core") { |
| sources = [ |
| "companion_metrics_logger.cc", |
| "companion_metrics_logger.h", |
| "companion_permission_utils.cc", |
| "companion_permission_utils.h", |
| "companion_url_builder.cc", |
| "companion_url_builder.h", |
| "constants.h", |
| "features.cc", |
| "features.h", |
| "msbb_delegate.h", |
| "promo_handler.cc", |
| "promo_handler.h", |
| "signin_delegate.h", |
| ] |
| |
| deps = [ |
| "mojom:mojo_bindings", |
| "proto", |
| "//base", |
| "//chrome/browser/ui/side_panel:side_panel_enums", |
| "//components/prefs", |
| "//components/unified_consent", |
| "//content/public/browser", |
| "//net", |
| "//services/metrics/public/cpp:metrics_cpp", |
| "//services/metrics/public/cpp:ukm_builders", |
| "//url", |
| ] |
| } |
| |
| source_set("unit_tests") { |
| testonly = true |
| sources = [ |
| "companion_metrics_logger_unittest.cc", |
| "companion_url_builder_unittest.cc", |
| "promo_handler_unittest.cc", |
| ] |
| |
| deps = [ |
| ":core", |
| "mojom:mojo_bindings", |
| "proto", |
| "//base", |
| "//base/test:test_support", |
| "//chrome/browser/ui/side_panel:side_panel_enums", |
| "//chrome/test:test_support", |
| "//components/prefs", |
| "//components/ukm:test_support", |
| "//components/unified_consent", |
| "//content/public/browser", |
| "//content/test:test_support", |
| "//net", |
| "//services/metrics/public/cpp:ukm_builders", |
| "//testing/gmock", |
| "//testing/gtest", |
| "//url", |
| ] |
| } |