# 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. assert(is_chromeos, "Non-Chrome-OS builds must not depend on //chromeos/ash") static_library("babelorca") { sources = [ "babel_orca_caption_translator.cc", "babel_orca_caption_translator.h", "babel_orca_consumer.cc", "babel_orca_consumer.h", "babel_orca_controller.h", "babel_orca_manager.cc", "babel_orca_manager.h", "babel_orca_producer.cc", "babel_orca_producer.h", "babel_orca_speech_recognizer.h", "babel_orca_translation_dispatcher.h", "babel_orca_translation_dispatcher_impl.cc", "babel_orca_translation_dispatcher_impl.h", "caption_bubble_settings_impl.cc", "caption_bubble_settings_impl.h", "caption_controller.cc", "caption_controller.h", "oauth_token_fetcher.cc", "oauth_token_fetcher.h", "pref_names.h", "request_data_wrapper.cc", "request_data_wrapper.h", "speech_recognition_event_handler.cc", "speech_recognition_event_handler.h", "tachyon_authed_client.h", "tachyon_authed_client_impl.cc", "tachyon_authed_client_impl.h", "tachyon_client.cc", "tachyon_client.h", "tachyon_client_impl.cc", "tachyon_client_impl.h", "tachyon_constants.h", "tachyon_registrar.cc", "tachyon_registrar.h", "tachyon_request_data_provider.h", "tachyon_response.cc", "tachyon_response.h", "tachyon_streaming_client.cc", "tachyon_streaming_client.h", "tachyon_utils.cc", "tachyon_utils.h", "token_data_wrapper.h", "token_fetcher.h", "token_manager.h", "token_manager_impl.cc", "token_manager_impl.h", "transcript_builder.cc", "transcript_builder.h", "transcript_receiver.cc", "transcript_receiver.h", "transcript_sender.h", "transcript_sender_impl.cc", "transcript_sender_impl.h", "transcript_sender_rate_limiter.cc", "transcript_sender_rate_limiter.h", "translation_view_wrapper_impl.cc", "translation_view_wrapper_impl.h", ] deps = [ ":soda_installer", "//ash/constants", "//base", "//chromeos/ash/components/boca", "//chromeos/ash/components/boca/babelorca/proto", "//chromeos/ash/components/boca/proto", "//chromeos/ash/components/boca/session_api", "//chromeos/ash/services/boca/babelorca/mojom", "//chromeos/strings:strings_grit", "//components/live_caption", "//components/live_caption:constants", "//components/live_caption:live_translate", "//components/live_caption:utils", "//components/pref_registry", "//components/prefs", "//components/signin/public/base", "//components/signin/public/identity_manager", "//components/soda", "//components/soda:constants", "//content/public/browser", "//google_apis", "//media/mojo/mojom:speech_recognition", "//mojo/public/cpp/bindings", "//net", "//services/network/public/cpp", "//ui/base", "//ui/native_theme", "//ui/views", ] } static_library("soda_installer") { sources = [ "soda_installer.cc", "soda_installer.h", ] deps = [ "//base", "//components/prefs", "//components/soda", "//components/soda:constants", ] } source_set("soda_test_support") { testonly = true sources = [ "soda_testing_utils.cc", "soda_testing_utils.h", ] deps = [ "//ash/constants", "//components/live_caption:constants", "//components/prefs", "//components/prefs:test_support", "//components/soda", "//testing/gmock", ] } source_set("test_support") { testonly = true sources = [ "fakes/fake_caption_controller_delegate.cc", "fakes/fake_caption_controller_delegate.h", "fakes/fake_tachyon_authed_client.cc", "fakes/fake_tachyon_authed_client.h", "fakes/fake_tachyon_client.cc", "fakes/fake_tachyon_client.h", "fakes/fake_tachyon_request_data_provider.cc", "fakes/fake_tachyon_request_data_provider.h", "fakes/fake_token_fetcher.cc", "fakes/fake_token_fetcher.h", "fakes/fake_token_manager.cc", "fakes/fake_token_manager.h", "fakes/fake_translation_dispatcher.cc", "fakes/fake_translation_dispatcher.h", "testing_utils.cc", "testing_utils.h", ] deps = [ ":babelorca", ":soda_installer", ":soda_test_support", "//ash/constants", "//base", "//components/live_caption", "//components/live_caption:constants", "//components/live_caption:live_translate", "//components/live_caption:utils", "//components/prefs", "//components/prefs:test_support", "//components/soda", "//media/mojo/mojom:speech_recognition", "//net/traffic_annotation", "//testing/gmock", "//third_party/protobuf:protobuf_lite", "//ui/native_theme", ] } source_set("unit_tests") { testonly = true sources = [ "babel_orca_caption_translator_unittest.cc", "babel_orca_consumer_unittest.cc", "babel_orca_manager_unittest.cc", "babel_orca_producer_unittest.cc", "caption_bubble_settings_impl_unittest.cc", "caption_controller_unittest.cc", "oauth_token_fetcher_unittest.cc", "soda_installer_unittest.cc", "speech_recognition_event_handler_unittest.cc", "tachyon_authed_client_impl_unittest.cc", "tachyon_client_impl_unittest.cc", "tachyon_registrar_unittest.cc", "tachyon_response_unittest.cc", "tachyon_streaming_client_unittest.cc", "token_manager_impl_unittest.cc", "transcript_builder_unittest.cc", "transcript_receiver_unittest.cc", "transcript_sender_impl_unittest.cc", "transcript_sender_rate_limiter_unittest.cc", "translation_view_wrapper_impl_unittest.cc", ] deps = [ ":babelorca", ":soda_installer", ":soda_test_support", ":test_support", "//ash/constants", "//base", "//base/test:test_support", "//chromeos/ash/components/boca", "//chromeos/ash/components/boca/babelorca/proto", "//chromeos/ash/components/boca/babelorca/proto:test_support", "//chromeos/ash/components/boca/proto", "//chromeos/ash/components/boca/session_api", "//chromeos/ash/services/boca/babelorca/mojom", "//chromeos/strings:strings_grit", "//components/live_caption", "//components/live_caption:constants", "//components/prefs", "//components/prefs:test_support", "//components/signin/public/base", "//components/signin/public/identity_manager:test_support", "//components/soda", "//components/soda:constants", "//google_apis", "//media/mojo/mojom:speech_recognition", "//mojo/public/cpp/bindings", "//net", "//net/traffic_annotation:test_support", "//services/network:test_support", "//services/network/public/cpp", "//testing/gmock", "//testing/gtest", "//ui/base", "//ui/events:test_support", "//ui/native_theme", "//ui/views", ] }