chromium/chromeos/components/editor_menu/public/cpp/BUILD.gn

# 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_chromeos)

component("cpp") {
  defines = [ "IS_EDITOR_MENU_PUBLIC_CPP_IMPL" ]

  sources = [
    "editor_helpers.cc",
    "editor_helpers.h",
    "icon.cc",
    "icon.h",
    "preset_text_query.cc",
    "preset_text_query.h",
  ]

  deps = [
    "//base",
    "//chromeos/constants:constants",
    "//chromeos/ui/vector_icons",
    "//components/vector_icons",
    "//ui/gfx",
    "//ui/gfx/range",
  ]
}

source_set("unit_tests") {
  testonly = true
  deps = [
    ":cpp",
    "//base",
    "//base/test:test_support",
    "//testing/gtest",
  ]
  sources = [ "editor_helpers_unittest.cc" ]
}