summaryrefslogtreecommitdiff
path: root/chromium/chrome/services/speech
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/chrome/services/speech
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/chrome/services/speech')
-rw-r--r--chromium/chrome/services/speech/BUILD.gn26
-rw-r--r--chromium/chrome/services/speech/proto/BUILD.gn19
2 files changed, 25 insertions, 20 deletions
diff --git a/chromium/chrome/services/speech/BUILD.gn b/chromium/chrome/services/speech/BUILD.gn
index ebfdec781ff..c9c50a55dbe 100644
--- a/chromium/chrome/services/speech/BUILD.gn
+++ b/chromium/chrome/services/speech/BUILD.gn
@@ -12,6 +12,8 @@ buildflag_header("buildflags") {
source_set("lib") {
sources = [
+ "cloud_speech_recognition_client.cc",
+ "cloud_speech_recognition_client.h",
"speech_recognition_recognizer_impl.cc",
"speech_recognition_recognizer_impl.h",
"speech_recognition_service_impl.cc",
@@ -27,10 +29,32 @@ source_set("lib") {
deps = [
":buildflags",
"//base",
- "//services/service_manager/public/cpp",
+ "//components/speech",
+ "//content/public/browser:proto",
+ "//mojo/public/cpp/bindings",
+ "//net",
+ "//services/network/public/cpp",
+ "//services/network/public/mojom",
]
if (enable_soda) {
deps += [ "//chrome/services/soda/internal" ]
}
}
+
+source_set("unit_tests") {
+ testonly = true
+
+ sources = [ "cloud_speech_recognition_client_unittest.cc" ]
+
+ deps = [
+ ":lib",
+ "//base",
+ "//base/test:test_support",
+ "//chrome/test:test_support",
+ "//components/speech",
+ "//content/public/browser:proto",
+ "//testing/gmock",
+ "//testing/gtest",
+ ]
+}
diff --git a/chromium/chrome/services/speech/proto/BUILD.gn b/chromium/chrome/services/speech/proto/BUILD.gn
deleted file mode 100644
index de8ea1d0cef..00000000000
--- a/chromium/chrome/services/speech/proto/BUILD.gn
+++ /dev/null
@@ -1,19 +0,0 @@
-# Copyright 2020 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.
-
-import("//third_party/grpc/grpc_library.gni")
-import("//third_party/protobuf/proto_library.gni")
-
-proto_library("proto") {
- sources = [
- "any_speech.proto",
- "duration.proto",
- "status_speech.proto",
- ]
-}
-
-cc_grpc_library("cloud_speech_library") {
- sources = [ "cloud_speech.proto" ]
- deps = [ ":proto" ]
-}