chromium/components/user_annotations/BUILD.gn

# 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.

static_library("user_annotations") {
  sources = [
    "user_annotations_database.cc",
    "user_annotations_database.h",
    "user_annotations_features.cc",
    "user_annotations_features.h",
    "user_annotations_service.cc",
    "user_annotations_service.h",
    "user_annotations_types.h",
  ]

  public_deps = [
    "//base",
    "//components/autofill/core/common",
    "//components/keyed_service/core",
    "//components/optimization_guide/core",
    "//components/optimization_guide/proto:optimization_guide_proto",
  ]

  deps = [
    "//sql",
    "//url",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "test_user_annotations_service.cc",
    "test_user_annotations_service.h",
  ]

  deps = [ ":user_annotations" ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "user_annotations_database_unittest.cc",
    "user_annotations_features_unittest.cc",
    "user_annotations_service_unittest.cc",
  ]
  deps = [
    ":test_support",
    ":user_annotations",
    "//base/test:test_support",
    "//components/optimization_guide/core:test_support",
    "//testing/gtest",
    "//url",
  ]
}