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

Unified Diff: chrome/browser/spellchecker/spelling_service_client_unittest.cc

Issue 2848943002: Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Rebase Created 3 years, 7 months 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/browser/spellchecker/spelling_service_client_unittest.cc
diff --git a/chrome/browser/spellchecker/spelling_service_client_unittest.cc b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
index a90ea29f7d0f107f7da0c70b0c8febaf8a3bff23..e87056cee0b5383a4f4579df6969b26b4b57261c 100644
--- a/chrome/browser/spellchecker/spelling_service_client_unittest.cc
+++ b/chrome/browser/spellchecker/spelling_service_client_unittest.cc
@@ -160,7 +160,7 @@ class TestingSpellingServiceClient : public SpellingServiceClient {
base::string16 text(base::UTF8ToUTF16(sanitized_request_text_));
for (std::vector<SpellCheckResult>::const_iterator it = results.begin();
it != results.end(); ++it) {
- text.replace(it->location, it->length, it->replacement);
+ text.replace(it->location, it->length, it->replacements[0]);
}
EXPECT_EQ(corrected_text_, text);
}

Powered by Google App Engine
This is Rietveld 408576698