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

import("//third_party/blink/renderer/modules/modules.gni")

blink_modules_sources("spell_check_custom_dictionary") {
  sources = [
    "document_spell_check_custom_dictionary.cc",
    "document_spell_check_custom_dictionary.h",
    "spell_check_custom_dictionary.cc",
    "spell_check_custom_dictionary.h",
  ]
}

source_set("unit_tests") {
  testonly = true
  if (!is_mac && !is_android) {
    sources = [ "spell_check_custom_dictionary_test.cc" ]
  }

  deps = [
    "//components/spellcheck/renderer",
    "//components/spellcheck/renderer:unit_tests",
    "//testing/gmock",
    "//testing/gtest",
    "//third_party/blink/public/common:headers",
    "//third_party/blink/renderer/core:unit_test_support",
    "//third_party/blink/renderer/modules",
  ]
}
