chromium/chrome/browser/ash/extensions/speech/BUILD.gn

# 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.

import("//build/config/chromeos/ui_mode.gni")

assert(is_chromeos_ash)

static_library("speech") {
  sources = [
    "speech_recognition_private_api.cc",
    "speech_recognition_private_api.h",
    "speech_recognition_private_delegate.h",
    "speech_recognition_private_manager.cc",
    "speech_recognition_private_manager.h",
    "speech_recognition_private_recognizer.cc",
    "speech_recognition_private_recognizer.h",
  ]

  public_deps = [ "//chrome/browser:browser_public_dependencies" ]

  deps = [
    "//ash/public/cpp",
    "//base",
    "//chrome/browser/profiles",
    "//chrome/browser/profiles:profile",
    "//chrome/common",
    "//components/keyed_service/core",
    "//components/language/core/browser",
    "//components/prefs",
    "//components/soda:constants",
    "//content/public/browser",
    "//extensions/browser",
    "//media",
  ]
}

source_set("browser_tests") {
  testonly = true

  defines = [ "HAS_OUT_OF_PROC_TEST_RUNNER" ]

  sources = [
    "speech_recognition_private_apitest.cc",
    "speech_recognition_private_base_test.cc",
    "speech_recognition_private_base_test.h",
    "speech_recognition_private_manager_browsertest.cc",
    "speech_recognition_private_recognizer_browsertest.cc",
  ]

  deps = [
    ":speech",
    "//base",
    "//base/test:test_support",
    "//chrome/browser",
    "//chrome/browser/profiles:profile",
    "//chrome/test:test_support",
    "//content/test:test_support",
    "//extensions:test_support",
  ]
}