| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webkit_glue.h" | |
| 6 | |
| 7 #include "base/file_util.h" | 5 #include "base/file_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 6 #include "base/message_loop/message_loop.h" |
| 9 #include "base/path_service.h" | 7 #include "base/path_service.h" |
| 10 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 11 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
| 14 #include "chrome/common/spellcheck_common.h" | 12 #include "chrome/common/spellcheck_common.h" |
| 15 #include "chrome/common/spellcheck_result.h" | 13 #include "chrome/common/spellcheck_result.h" |
| 16 #include "chrome/renderer/spellchecker/hunspell_engine.h" | 14 #include "chrome/renderer/spellchecker/hunspell_engine.h" |
| (...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 strlen(kTestCases[i].misspelled), | 1353 strlen(kTestCases[i].misspelled), |
| 1356 0, | 1354 0, |
| 1357 &misspelling_start, | 1355 &misspelling_start, |
| 1358 &misspelling_length, | 1356 &misspelling_length, |
| 1359 &suggestions)); | 1357 &suggestions)); |
| 1360 EXPECT_GE(suggestions.size(), static_cast<size_t>(1)); | 1358 EXPECT_GE(suggestions.size(), static_cast<size_t>(1)); |
| 1361 if (suggestions.size() > 0) | 1359 if (suggestions.size() > 0) |
| 1362 EXPECT_EQ(suggestions[0], ASCIIToUTF16(kTestCases[i].suggestion)); | 1360 EXPECT_EQ(suggestions[0], ASCIIToUTF16(kTestCases[i].suggestion)); |
| 1363 } | 1361 } |
| 1364 } | 1362 } |
| OLD | NEW |