Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc

Issue 11362063: Editing the custom spelling dictionary (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
diff --git a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
index 249ca1b8ac3680f284e2ce06663b3b91964a5837..f9f939538d60072c7b79e312de76f841859f57fc 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
@@ -58,7 +58,7 @@ TEST_F(SpellcheckCustomDictionaryTest, SpellcheckSetCustomWordList) {
SpellcheckCustomDictionary* custom_dictionary =
spellcheck_service->GetCustomDictionary();
custom_dictionary->SetCustomWordList(&loaded_custom_words);
- EXPECT_EQ(custom_dictionary->GetCustomWords(), expected);
+ EXPECT_EQ(custom_dictionary->GetWords(), expected);
}
TEST_F(SpellcheckCustomDictionaryTest, CustomWordAddedLocally) {
@@ -70,13 +70,13 @@ TEST_F(SpellcheckCustomDictionaryTest, CustomWordAddedLocally) {
spellcheck_service->GetCustomDictionary();
custom_dictionary->Load();
WordList expected;
- EXPECT_EQ(custom_dictionary->GetCustomWords(), expected);
+ EXPECT_EQ(custom_dictionary->GetWords(), expected);
custom_dictionary->CustomWordAddedLocally("foo");
expected.push_back("foo");
- EXPECT_EQ(custom_dictionary->GetCustomWords(), expected);
+ EXPECT_EQ(custom_dictionary->GetWords(), expected);
custom_dictionary->CustomWordAddedLocally("bar");
expected.push_back("bar");
- EXPECT_EQ(custom_dictionary->GetCustomWords(), expected);
+ EXPECT_EQ(custom_dictionary->GetWords(), expected);
}
TEST_F(SpellcheckCustomDictionaryTest, SaveAndLoad) {

Powered by Google App Engine
This is Rietveld 408576698