diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 22:58:11 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-16 22:58:11 +0000 |
commit | d3a94165c9dc2f5142613304efa7c8e13c69fc8e (patch) | |
tree | 1bfdffdf1b9351df144ca77e454c92d761a8da8d /chrome/browser/spellcheck_unittest.cc | |
parent | aa573b305e7350bbfa6f9659dc36ce62d877e574 (diff) | |
download | chromium_src-d3a94165c9dc2f5142613304efa7c8e13c69fc8e.zip chromium_src-d3a94165c9dc2f5142613304efa7c8e13c69fc8e.tar.gz chromium_src-d3a94165c9dc2f5142613304efa7c8e13c69fc8e.tar.bz2 |
Port the spell checker to posix.
It all builds but does not link yet.
Review URL: http://codereview.chromium.org/14408
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7109 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/spellcheck_unittest.cc')
-rw-r--r-- | chrome/browser/spellcheck_unittest.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/spellcheck_unittest.cc b/chrome/browser/spellcheck_unittest.cc index 7bc95c1..745cd6e 100644 --- a/chrome/browser/spellcheck_unittest.cc +++ b/chrome/browser/spellcheck_unittest.cc @@ -256,7 +256,7 @@ TEST_F(SpellCheckTest, SpellCheckStrings_EN_US) { scoped_refptr<SpellChecker> spell_checker(new SpellChecker( hunspell_directory, L"en-US", NULL, std::wstring())); - for (int i = 0; i < arraysize(kTestCases); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { size_t input_length = 0; if (kTestCases[i].input != NULL) { input_length = wcslen(kTestCases[i].input); @@ -310,7 +310,7 @@ TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) { scoped_refptr<SpellChecker> spell_checker(new SpellChecker( hunspell_directory, L"en-US", NULL, std::wstring())); - for (int i = 0; i < arraysize(kTestCases); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { std::vector<std::wstring> suggestions; size_t input_length = 0; if (kTestCases[i].input != NULL) { @@ -358,7 +358,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckAddToDictionary_EN_US) { scoped_refptr<SpellChecker> spell_checker(new SpellChecker( hunspell_directory, L"en-US", NULL, kTempCustomDictionaryFile)); - for (int i = 0; i < arraysize(kTestCases); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { // Add the word to spellchecker. spell_checker->AddWord(std::wstring(kTestCases[i].word_to_add)); @@ -384,7 +384,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckAddToDictionary_EN_US) { scoped_refptr<SpellChecker> spell_checker_new(new SpellChecker( hunspell_directory, L"en-US", NULL, kTempCustomDictionaryFile)); - for (int i = 0; i < arraysize(kTestCases); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { // Now check whether it is added to Spellchecker. std::vector<std::wstring> suggestions; size_t input_length = 0; @@ -426,7 +426,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckSuggestionsAddToDictionary_EN_US) { scoped_refptr<SpellChecker> spell_checker(new SpellChecker( hunspell_directory, L"en-US", NULL, kTempCustomDictionaryFile)); - for (int i = 0; i < arraysize(kTestCases); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCases); ++i) { // Add the word to spellchecker. spell_checker->AddWord(std::wstring(kTestCases[i].word_to_add)); } @@ -452,7 +452,7 @@ TEST_F(SpellCheckTest, DISABLED_SpellCheckSuggestionsAddToDictionary_EN_US) { {L"oogleplex", false, 0, 0, L"Googleplex"}, }; - for (int i = 0; i < arraysize(kTestCasesToBeTested); i++) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(kTestCasesToBeTested); ++i) { std::vector<std::wstring> suggestions; size_t input_length = 0; if (kTestCasesToBeTested[i].input != NULL) { |