#include "chrome/browser/extensions/api/language_settings_private/language_settings_private_delegate.h"
#include "base/functional/bind.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/spellchecker/spellcheck_factory.h"
#include "chrome/browser/spellchecker/spellcheck_service.h"
#include "chrome/test/base/testing_profile.h"
#include "components/spellcheck/browser/pref_names.h"
#include "components/spellcheck/common/spellcheck_features.h"
#include "components/spellcheck/spellcheck_buildflags.h"
#include "extensions/browser/event_router_factory.h"
#include "extensions/browser/extension_prefs.h"
namespace extensions {
namespace {
std::unique_ptr<KeyedService> BuildEventRouter(
content::BrowserContext* profile) { … }
std::unique_ptr<KeyedService> BuildSpellcheckService(
content::BrowserContext* profile) { … }
}
class LanguageSettingsPrivateDelegateTest
: public ExtensionServiceTestBase,
public SpellcheckHunspellDictionary::Observer { … };
#if BUILDFLAG(USE_RENDERER_SPELLCHECKER)
TEST_F(LanguageSettingsPrivateDelegateTest,
RetryDownloadHunspellDictionaryTest) { … }
#endif
}