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

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: Exclude custom dictionary WebUI from mac 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 a3e66d31d118c9523ec2852324f63036c76b704f..b5fb4253be5d799a4e88c3ee9b1aaa235607f581 100644
--- a/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
+++ b/chrome/browser/spellchecker/spellcheck_custom_dictionary_unittest.cc
@@ -57,7 +57,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) {
@@ -69,13 +69,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