#include "chrome/browser/accessibility/soda_installer_impl.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/live_caption/pref_names.h"
#include "components/prefs/testing_pref_service.h"
#include "components/soda/constants.h"
#include "components/soda/pref_names.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
const speech::LanguageCode kEnglishLocale = …;
const speech::LanguageCode kJapaneseLocale = …;
const base::TimeDelta kSodaUninstallTime = …;
constexpr char kSodaEnglishLanguageInstallationResult[] = …;
}
namespace speech {
class MockSodaInstallerImpl : public SodaInstallerImpl { … };
class SodaInstallerImplTest : public testing::Test { … };
TEST_F(SodaInstallerImplTest, IsSodaInstalled) { … }
TEST_F(SodaInstallerImplTest, IsDownloading) { … }
TEST_F(SodaInstallerImplTest, IsLanguagePackInstalled) { … }
TEST_F(SodaInstallerImplTest, UninstallLanguagePacks) { … }
TEST_F(SodaInstallerImplTest, AvailableLanguagesTest) { … }
TEST_F(SodaInstallerImplTest, UninstallSodaAfterThirtyDays) { … }
TEST_F(SodaInstallerImplTest,
SodaStaysInstalledAfterThirtyDaysIfFeatureEnabled) { … }
TEST_F(SodaInstallerImplTest, ReinstallSoda) { … }
}