diff --git a/src/spelling/BUILD.bazel b/src/spelling/BUILD.bazel index 0fd41601a..c4da7a7ba 100644 --- a/src/spelling/BUILD.bazel +++ b/src/spelling/BUILD.bazel @@ -105,7 +105,6 @@ mozc_cc_library( "//protocol:commands_cc_proto", "//protocol:engine_builder_cc_proto", "@com_google_absl//absl/algorithm:container", - "@com_google_absl//absl/base:no_destructor", "@com_google_absl//absl/container:flat_hash_set", "@com_google_absl//absl/status", "@com_google_absl//absl/strings", @@ -130,6 +129,33 @@ mozc_cc_binary( ":spellchecker_service_interface", ":spellchecker_service_registration", "//protocol:commands_cc_proto", + "//protocol:engine_builder_cc_proto", + "@com_google_absl//absl/flags:flag", + "@com_google_absl//absl/strings", + ], +) + +mozc_cc_test( + name = "spellchecker_service_test", + size = "small", + srcs = ["spellchecker_service_test.cc"], + tags = [ + "nomac", + "nowin", + ], + target_compatible_with = mozc_select( + default = [], + macos = ["@platforms//:incompatible"], + windows = ["@platforms//:incompatible"], + ), + deps = [ + ":spellchecker_service", + "//base:file_stream", + "//base:file_util", + "//base:file_util_mock", + "//base:util", + "//converter:segments", + "//protocol:commands_cc_proto", "//testing:gunit_main", "@com_google_absl//absl/status", "@com_google_absl//absl/strings",