chromium/chrome/browser/accessibility/live_caption/live_caption_automatic_language_download_browsertest.cc

// Copyright 2023 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/accessibility/live_caption/live_caption_speech_recognition_host_browsertest.h"

#include <set>

#include "base/containers/contains.h"
#include "base/functional/callback_forward.h"
#include "base/run_loop.h"
#include "base/scoped_observation.h"
#include "components/soda/constants.h"
#include "components/soda/soda_installer.h"
#include "media/mojo/mojom/speech_recognition.mojom.h"

namespace captions {

class LiveCaptionAutomaticLanguageDownloadTest
    : public LiveCaptionSpeechRecognitionHostTest,
      public speech::SodaInstaller::Observer {};

// Verify that 3 consecutive highly confident language identification events
// trigger an automatic download of the language pack.
IN_PROC_BROWSER_TEST_F(LiveCaptionAutomaticLanguageDownloadTest,
                       AutomaticLanguageDownload) {}

}  // namespace captions