| // chromeos/services/machine_learning/public/mojom/soda.mojom-blink-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2019 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. |
| |
| #ifndef CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_SODA_MOJOM_BLINK_TEST_UTILS_H_ |
| #define CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_SODA_MOJOM_BLINK_TEST_UTILS_H_ |
| |
| #include "chromeos/services/machine_learning/public/mojom/soda.mojom-blink.h" |
| #include "base/component_export.h" |
| |
| |
| namespace chromeos { |
| namespace machine_learning { |
| namespace mojom { |
| namespace blink { |
| |
| |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM_BLINK) SodaClientInterceptorForTesting : public SodaClient { |
| virtual SodaClient* GetForwardingInterface() = 0; |
| void OnStart() override; |
| void OnStop() override; |
| void OnSpeechRecognizerEvent(SpeechRecognizerEventPtr event) override; |
| }; |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM_BLINK) SodaClientAsyncWaiter { |
| public: |
| explicit SodaClientAsyncWaiter(SodaClient* proxy); |
| |
| SodaClientAsyncWaiter(const SodaClientAsyncWaiter&) = delete; |
| SodaClientAsyncWaiter& operator=(const SodaClientAsyncWaiter&) = delete; |
| |
| ~SodaClientAsyncWaiter(); |
| |
| private: |
| SodaClient* const proxy_; |
| }; |
| |
| |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM_BLINK) SodaRecognizerInterceptorForTesting : public SodaRecognizer { |
| virtual SodaRecognizer* GetForwardingInterface() = 0; |
| void AddAudio(const WTF::Vector<uint8_t>& audio) override; |
| void Stop() override; |
| void Start() override; |
| void MarkDone() override; |
| }; |
| class COMPONENT_EXPORT(MLSERVICE_MOJOM_BLINK) SodaRecognizerAsyncWaiter { |
| public: |
| explicit SodaRecognizerAsyncWaiter(SodaRecognizer* proxy); |
| |
| SodaRecognizerAsyncWaiter(const SodaRecognizerAsyncWaiter&) = delete; |
| SodaRecognizerAsyncWaiter& operator=(const SodaRecognizerAsyncWaiter&) = delete; |
| |
| ~SodaRecognizerAsyncWaiter(); |
| |
| private: |
| SodaRecognizer* const proxy_; |
| }; |
| |
| |
| |
| |
| } // namespace blink |
| } // namespace mojom |
| } // namespace machine_learning |
| } // namespace chromeos |
| |
| #endif // CHROMEOS_SERVICES_MACHINE_LEARNING_PUBLIC_MOJOM_SODA_MOJOM_BLINK_TEST_UTILS_H_ |