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

Unified Diff: components/spellcheck/renderer/spellcheck_provider_test.cc

Issue 2911253003: [Reland] 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: components/spellcheck/renderer/spellcheck_provider_test.cc
diff --git a/components/spellcheck/renderer/spellcheck_provider_test.cc b/components/spellcheck/renderer/spellcheck_provider_test.cc
index 595ecd0b0df5d75ffaf3eacae1b2400332e7e3d4..01d98106af6e5cee6e0c927e9e6fb5a69c31d7e1 100644
--- a/components/spellcheck/renderer/spellcheck_provider_test.cc
+++ b/components/spellcheck/renderer/spellcheck_provider_test.cc
@@ -92,8 +92,9 @@ void TestingSpellCheckProvider::OnCallSpellingService(
text_.assign(text);
text_check_completions_.Remove(last_identifier_);
std::vector<blink::WebTextCheckingResult> results;
- results.push_back(blink::WebTextCheckingResult(
- blink::kWebTextDecorationTypeSpelling, 0, 5, blink::WebString("hello")));
+ results.push_back(
+ blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 0, 5,
+ std::vector<blink::WebString>({"hello"})));
completion->DidFinishCheckingText(results);
last_request_ = text;
last_results_ = results;
« no previous file with comments | « components/spellcheck/renderer/spellcheck.cc ('k') | components/spellcheck/renderer/spellcheck_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698