chromium/ios/chrome/browser/web/model/annotations/BUILD.gn

# Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build/buildflag_header.gni")
import("//ios/build/config.gni")
import("//ios/web/public/js_messaging/optimize_js.gni")

source_set("annotations") {
  deps = [
    "//base",
    "//components/prefs",
    "//components/shared_highlighting/ios",
    "//components/ukm/ios:ukm_url_recorder",
    "//ios/chrome/browser/mailto_handler/model",
    "//ios/chrome/browser/mailto_handler/model:mailto_handler_factory",
    "//ios/chrome/browser/parcel_tracking:features",
    "//ios/chrome/browser/parcel_tracking:prefs",
    "//ios/chrome/browser/shared/model/application_context",
    "//ios/chrome/browser/shared/model/browser_state",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/chrome/browser/shared/model/profile",
    "//ios/chrome/browser/shared/public/commands",
    "//ios/chrome/browser/shared/public/features",
    "//ios/chrome/browser/text_selection/model",
    "//ios/public/provider/chrome/browser/context_menu:context_menu_api",
    "//ios/web/annotations",
    "//ios/web/common",
    "//ios/web/public",
    "//ios/web/public:web_state_observer",
    "//ios/web/public/annotations",
    "//ios/web/public/annotations:custom_text_check_result",
    "//ios/web/public/js_messaging",
    "//ios/web/public/navigation",
    "//ios/web/public/navigation:referrer",
    "//ui/base",
  ]

  sources = [
    "annotations_tab_helper.h",
    "annotations_tab_helper.mm",
    "annotations_util.h",
    "annotations_util.mm",
    "parcel_number_tracker.h",
    "parcel_number_tracker.mm",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "annotations_util_unittest.mm",
    "parcel_number_tracker_unittest.mm",
  ]
  deps = [
    ":annotations",
    "//base/test:test_support",
    "//components/prefs",
    "//components/prefs:test_support",
    "//ios/chrome/browser/shared/model/prefs:pref_names",
    "//ios/web/common:features",
    "//ios/web/public/annotations:custom_text_check_result",
    "//testing/gtest",
  ]
}