blob: 3a1d6c73b5e50a000e8c39df88e2bbc28f1fd9f2 [file] [log] [blame]
// 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 COMPONENTS_SODA_MOCK_SODA_INSTALLER_H_
#define COMPONENTS_SODA_MOCK_SODA_INSTALLER_H_
#include "components/soda/soda_installer.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace speech {
class MockSodaInstaller : public speech::SodaInstaller {
public:
MockSodaInstaller();
MockSodaInstaller(const MockSodaInstaller&) = delete;
MockSodaInstaller& operator=(const MockSodaInstaller&) = delete;
~MockSodaInstaller() override;
MOCK_METHOD(base::FilePath, GetSodaBinaryPath, (), (const, override));
MOCK_METHOD(base::FilePath,
GetLanguagePath,
(const std::string&),
(const, override));
MOCK_METHOD(void,
InstallLanguage,
(const std::string&, PrefService*),
(override));
MOCK_METHOD(void,
UninstallLanguage,
(const std::string&, PrefService*),
(override));
MOCK_METHOD(std::vector<std::string>,
GetAvailableLanguages,
(),
(const, override));
MOCK_METHOD(void, InstallSoda, (PrefService*), (override));
MOCK_METHOD(void, UninstallSoda, (PrefService*), (override));
MOCK_METHOD(void, Init, (PrefService*, PrefService*), (override));
};
} // namespace speech
#endif // COMPONENTS_SODA_MOCK_SODA_INSTALLER_H_