diff options
Diffstat (limited to 'chromium/chrome/services/speech')
-rw-r--r-- | chromium/chrome/services/speech/BUILD.gn | 26 | ||||
-rw-r--r-- | chromium/chrome/services/speech/proto/BUILD.gn | 19 |
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" ] -} |