diff options
author | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 01:00:23 +0000 |
---|---|---|
committer | mhm@chromium.org <mhm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-01 01:00:23 +0000 |
commit | 4be85a0d5e0f68724f4e44eb560fcd95c21b40e8 (patch) | |
tree | 5dc26d9505ea7468d91206fa81203caa422e8782 | |
parent | d2da40d52604228c5642105c4baa797fcf231b94 (diff) | |
download | chromium_src-4be85a0d5e0f68724f4e44eb560fcd95c21b40e8.zip chromium_src-4be85a0d5e0f68724f4e44eb560fcd95c21b40e8.tar.gz chromium_src-4be85a0d5e0f68724f4e44eb560fcd95c21b40e8.tar.bz2 |
Update hunspell DEPS to 1.2.8
BUG=14756
TEST=Ran valgrind and unit_tests for SpellCheckTest and all passed successfully.
Review URL: http://codereview.chromium.org/176046
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24998 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | DEPS | 4 | ||||
-rw-r--r-- | chrome/browser/spellcheck_unittest.cc | 6 | ||||
-rw-r--r-- | chrome/browser/spellchecker.cc | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -28,8 +28,8 @@ deps = { "/trunk/deps/third_party/icu38@24923", "src/third_party/hunspell": - "/trunk/deps/third_party/hunspell@23803", - + "/trunk/deps/third_party/hunspell128@24986", + "src/third_party/protobuf2/src": "http://protobuf.googlecode.com/svn/trunk@219", diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc index 8231e0d..8d97e9e 100644 --- a/chrome/browser/spellcheck_unittest.cc +++ b/chrome/browser/spellcheck_unittest.cc @@ -606,11 +606,11 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) { {L"wate", false, 0, 0, L"water"}, {L"wate", false, 0, 0, L"waste"}, {L"wate", false, 0, 0, L"sate"}, - {L"wate", false, 0, 0, L"rate"}, + {L"wate", false, 0, 0, L"ate"}, {L"jum", false, 0, 0, L"jump"}, - {L"jum", false, 0, 0, L"rum"}, + {L"jum", false, 0, 0, L"hum"}, {L"jum", false, 0, 0, L"sum"}, - {L"jum", false, 0, 0, L"tum"}, + {L"jum", false, 0, 0, L"um"}, #endif //!OS_MACOSX // TODO (Sidchat): add many more examples. }; diff --git a/chrome/browser/spellchecker.cc b/chrome/browser/spellchecker.cc index b8bcc7f..b6e43fb 100644 --- a/chrome/browser/spellchecker.cc +++ b/chrome/browser/spellchecker.cc @@ -595,7 +595,7 @@ void SpellChecker::AddCustomWordsToHunspell() { if (hunspell_.get()) { for (std::vector<std::string>::iterator it = list_of_words.begin(); it != list_of_words.end(); ++it) { - hunspell_->put_word(it->c_str()); + hunspell_->add(it->c_str()); } } } @@ -728,7 +728,7 @@ void SpellChecker::AddWord(const std::wstring& word) { // Add the word to hunspell. std::string word_to_add = WideToUTF8(word); if (!word_to_add.empty()) - hunspell_->put_word(word_to_add.c_str()); + hunspell_->add(word_to_add.c_str()); // Now add the word to the custom dictionary file. Task* write_word_task = |