#include "chrome/services/speech/soda_speech_recognizer_impl.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "media/base/media_switches.h"
#include "media/mojo/mojom/audio_data.mojom.h"
#include "media/mojo/mojom/speech_recognition_error_code.mojom.h"
#include "media/mojo/mojom/speech_recognition_result.h"
#include "media/mojo/mojom/speech_recognition_result.mojom.h"
#include "media/mojo/mojom/speech_recognizer.mojom.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "testing/gtest/include/gtest/gtest-param-test.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace speech {
class SodaSpeechRecognizerImplTest
: public media::mojom::SpeechRecognitionRecognizer,
public media::mojom::SpeechRecognitionSessionClient,
public testing::TestWithParam<bool> { … };
TEST_P(SodaSpeechRecognizerImplTest, Start) { … }
TEST_P(SodaSpeechRecognizerImplTest, RecognitionEvent) { … }
TEST_P(SodaSpeechRecognizerImplTest, Abort) { … }
TEST_P(SodaSpeechRecognizerImplTest, EngineError) { … }
INSTANTIATE_TEST_SUITE_P(…);
}