chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
// Legacy empty dictionary should be converted to new format empty dicitonary.
Legacy empty dictionary should be converted to new format empty dicitonary.
Legacy empty dictionary should be converted to new format empty dicitonary .
TEST_F(SpellcheckCustomDictionaryTest, LegacyEmptyDictionaryShouldBeConverted) {
  FilePath dictionary_path(
      profile_->GetPath().Append(chrome::kCustomDictionaryFileName));
  SpellcheckService* spellcheck_service =
      SpellcheckServiceFactory::GetForProfile(profile_.get());
  SpellcheckCustomDictionary* custom_dictionary =
      spellcheck_service->GetCustomDictionary();
  WordList loaded_custom_words;
  std::string content;
  file_util::WriteFile(dictionary_path, content.c_str(), content.length());
  custom_dictionary->LoadDictionaryIntoCustomWordList(&loaded_custom_words);
  EXPECT_TRUE(loaded_custom_words.empty());
  MessageLoop::current()->RunUntilIdle();
}
TEST_F ( SpellcheckCustomDictionaryTest , LegacyEmptyDictionaryShouldBeConverted ) { FilePath dictionary_path ( profile_ -> GetPath ( ) . Append ( chrome :: kCustomDictionaryFileName ) ) ; SpellcheckService * spellcheck_service = SpellcheckServiceFactory :: GetForProfile ( profile_ . get ( ) ) ; SpellcheckCustomDictionary * custom_dictionary = spellcheck_service -> GetCustomDictionary ( ) ; WordList loaded_custom_words ; std :: string content ; file_util :: WriteFile ( dictionary_path , content . c_str ( ) , content . length ( ) ) ; custom_dictionary -> LoadDictionaryIntoCustomWordList ( & loaded_custom_words ) ; EXPECT_TRUE ( loaded_custom_words . empty ( ) ) ; MessageLoop :: current ( ) -> RunUntilIdle ( ) ; }
Legacy empty dictionary should be converted to new format empty dicitonary.
Legacy empty dictionary should be converted to new format empty dicitonary .
// Flush the loop now to prevent service init tasks from being run during // TearDown();