// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROMEOS_ASH_COMPONENTS_BOCA_BABELORCA_SODA_TESTING_UTILS_H_
#define CHROMEOS_ASH_COMPONENTS_BOCA_BABELORCA_SODA_TESTING_UTILS_H_

#include "components/soda/soda_installer.h"
#include "testing/gmock/include/gmock/gmock.h"

class PrefRegistrySimple;

namespace ash::babelorca {

void RegisterSodaPrefsForTesting(PrefRegistrySimple* pref_service);

class MockSodaInstaller : public speech::SodaInstaller {
 public:
  MockSodaInstaller();
  ~MockSodaInstaller() override;

  MOCK_METHOD(base::FilePath, GetSodaBinaryPath, (), (const, override));
  MOCK_METHOD(base::FilePath,
              GetLanguagePath,
              (std::string_view language),
              (const, override));
  MOCK_METHOD(void,
              InstallLanguage,
              (std::string_view language, PrefService* global_prefs),
              (override));
  MOCK_METHOD(void,
              UninstallLanguage,
              (std::string_view language, PrefService* global_prefs),
              (override));
  MOCK_METHOD(void, InstallSoda, (PrefService * global_prefs), (override));
  MOCK_METHOD(std::vector<std::string>,
              GetAvailableLanguages,
              (),
              (const, override));

 protected:
  MOCK_METHOD(void, UninstallSoda, (PrefService * global_prefs), (override));
};

}  // namespace ash::babelorca
#endif  // CHROMEOS_ASH_COMPONENTS_BOCA_BABELORCA_SODA_TESTING_UTILS_H_
