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

Unified Diff: chrome/renderer/spellchecker/spellcheck_unittest.cc

Issue 11377045: Removing cruft. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Next (and final?) round of "fix via trybot" Created 8 years, 1 month 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
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);
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider_test.cc ('k') | chrome/renderer/spellchecker/spelling_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698