chromium/chrome/browser/speech/fake_speech_recognizer.cc

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

#include "chrome/browser/speech/fake_speech_recognizer.h"

#include "base/run_loop.h"
#include "media/mojo/mojom/audio_data.mojom.h"
#include "media/mojo/mojom/audio_logging.mojom.h"
#include "media/mojo/mojom/audio_stream_factory.mojom.h"
#include "media/mojo/mojom/media_types.mojom.h"
#include "media/mojo/mojom/speech_recognition.mojom.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace speech {

FakeSpeechRecognizer::FakeSpeechRecognizer() = default;
FakeSpeechRecognizer::~FakeSpeechRecognizer() = default;

void FakeSpeechRecognizer::BindRecognizerClientRemoteAndPassRecognitionOptions(
    mojo::PendingRemote<media::mojom::SpeechRecognitionRecognizerClient> client,
    media::mojom::SpeechRecognitionOptionsPtr recognition_options) {}

void FakeSpeechRecognizer::BindSpeechRecognizerClientRemote(
    mojo::PendingRemote<media::mojom::SpeechRecognitionRecognizerClient>
        client) {}

void FakeSpeechRecognizer::Start(
    mojo::PendingRemote<media::mojom::AudioStreamFactory> stream_factory,
    const std::string& device_id,
    const ::media::AudioParameters& audio_parameters) {}

void FakeSpeechRecognizer::Stop() {}

void FakeSpeechRecognizer::MarkDone() {}

void FakeSpeechRecognizer::SendSpeechRecognitionResult(
    const media::SpeechRecognitionResult& result) {}

void FakeSpeechRecognizer::SendAudioToSpeechRecognitionService(
    media::mojom::AudioDataS16Ptr buffer) {}

void FakeSpeechRecognizer::SendSpeechRecognitionError() {}

void FakeSpeechRecognizer::OnSpeechRecognitionEventCallback(bool success) {}

void FakeSpeechRecognizer::WaitForRecognitionStarted() {}

}  // namespace speech