# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. source_set("voice") { configs += [ "//build/config/compiler:enable_arc" ] sources = [ "speech_input_locale.h", "speech_input_locale_config.h", "speech_input_locale_config.mm", "speech_input_locale_config_impl.h", "speech_input_locale_config_impl.mm", "speech_input_locale_match_config.h", "speech_input_locale_match_config.mm", "voice_search_navigations_tab_helper.h", "voice_search_navigations_tab_helper.mm", ] deps = [ "//base", "//components/pref_registry", "//components/prefs", "//ios/public/provider/chrome/browser", "//ios/public/provider/chrome/browser/voice", "//ios/web", ] } source_set("prefs") { sources = [ "voice_search_prefs_registration.cc", "voice_search_prefs_registration.h", ] deps = [ "//components/pref_registry", "//components/prefs", "//ios/public/provider/chrome/browser/voice", ] } source_set("tts") { configs += [ "//build/config/compiler:enable_arc" ] sources = [ "text_to_speech_listener.h", "text_to_speech_listener.mm", "text_to_speech_parser.h", "text_to_speech_parser.mm", "voice_search_url_rewriter.h", "voice_search_url_rewriter.mm", ] deps = [ ":voice", "//base", "//components/google/core/browser", "//components/prefs", "//ios/chrome/browser", "//ios/chrome/browser/browser_state", "//ios/public/provider/chrome/browser/voice", "//ios/web", "//net", "//third_party/google_toolbox_for_mac", "//url", ] } source_set("unit_tests") { configs += [ "//build/config/compiler:enable_arc" ] testonly = true sources = [ "text_to_speech_listener_unittest.mm", "text_to_speech_parser_unittest.mm", "voice_search_navigations_tab_helper_unittest.mm", ] deps = [ ":tts", ":voice", "//base", "//ios/web", "//ios/web/public/test", "//testing/gtest", "//third_party/google_toolbox_for_mac", ] }