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

Unified Diff: chrome/browser/spellcheck_unittest.cc

Issue 14408: Port the spell checker to posix. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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
« no previous file with comments | « chrome/browser/browser.scons ('k') | chrome/browser/spellcheck_worditerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/spellcheck_unittest.cc
===================================================================
--- chrome/browser/spellcheck_unittest.cc (revision 6919)
+++ chrome/browser/spellcheck_unittest.cc (working copy)
@@ -256,7 +256,7 @@
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 @@
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 @@
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 @@
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 @@
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 @@
{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) {
« no previous file with comments | « chrome/browser/browser.scons ('k') | chrome/browser/spellcheck_worditerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698