# 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.
assert(is_win || is_mac || is_linux || is_chromeos)
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",
"promo_handler.cc",
"promo_handler.h",
"signin_delegate.h",
"utils.cc",
"utils.h",
]
public_deps = [
"//chrome/browser/ui/views/side_panel:side_panel_enums",
"//third_party/abseil-cpp:absl",
]
deps = [
"mojom:mojo_bindings",
"proto",
"//base",
"//chrome/common:constants",
"//chrome/common/companion/visual_query:flags",
"//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",
"mock_signin_delegate.cc",
"mock_signin_delegate.h",
"promo_handler_unittest.cc",
"utils_unittest.cc",
]
deps = [
":core",
"mojom:mojo_bindings",
"proto",
"//base",
"//base/test:test_support",
"//chrome/browser/ui/views/side_panel:side_panel_enums",
"//chrome/common/companion/visual_query:flags",
"//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",
]
}