Index: chrome/renderer/spellchecker/spellcheck_unittest.cc |
diff --git a/chrome/renderer/spellchecker/spellcheck_unittest.cc b/chrome/renderer/spellchecker/spellcheck_unittest.cc |
index 7f2c1b0281ef1c115935449b18f5682efa510242..3a9a67358c6d4773fbeff1b8ff240b0f7f3718d8 100644 |
--- a/chrome/renderer/spellchecker/spellcheck_unittest.cc |
+++ b/chrome/renderer/spellchecker/spellcheck_unittest.cc |
@@ -1064,8 +1064,11 @@ TEST_F(SpellCheckTest, CreateTextCheckingResults) { |
spellcheck_results.push_back(SpellCheckResult( |
SpellCheckResult::SPELLING, 0, 2, string16())); |
WebKit::WebVector<WebKit::WebTextCheckingResult> textcheck_results; |
- spell_check()->CreateTextCheckingResults( |
- 0, text, spellcheck_results, &textcheck_results); |
+ spell_check()->CreateTextCheckingResults(SpellCheck::USE_NATIVE_CHECKER, |
+ 0, |
+ text, |
+ spellcheck_results, |
+ &textcheck_results); |
EXPECT_EQ(spellcheck_results.size(), textcheck_results.size()); |
EXPECT_EQ(WebKit::WebTextCheckingTypeSpelling, textcheck_results[0].type); |
EXPECT_EQ(spellcheck_results[0].location, textcheck_results[0].location); |
@@ -1080,8 +1083,11 @@ TEST_F(SpellCheckTest, CreateTextCheckingResults) { |
spellcheck_results.push_back(SpellCheckResult( |
SpellCheckResult::SPELLING, 7, 4, string16())); |
WebKit::WebVector<WebKit::WebTextCheckingResult> textcheck_results; |
- spell_check()->CreateTextCheckingResults( |
- 0, text, spellcheck_results, &textcheck_results); |
+ spell_check()->CreateTextCheckingResults(SpellCheck::USE_NATIVE_CHECKER, |
+ 0, |
+ text, |
+ spellcheck_results, |
+ &textcheck_results); |
EXPECT_EQ(spellcheck_results.size(), textcheck_results.size()); |
EXPECT_EQ(WebKit::WebTextCheckingTypeGrammar, textcheck_results[0].type); |
EXPECT_EQ(spellcheck_results[0].location, textcheck_results[0].location); |