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

Unified Diff: components/spellcheck/renderer/spellcheck_provider_test.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: 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 ffba9d14b0c2f6713aa7bc66180b68c53a499225..88882d2fb6079ce49aba7e19d04aa239e5726eb5 100644
--- a/components/spellcheck/renderer/spellcheck_provider_test.cc
+++ b/components/spellcheck/renderer/spellcheck_provider_test.cc
@@ -83,8 +83,9 @@ void TestingSpellCheckProvider::OnCallSpellingService(
text_.assign(text);
text_check_completions_.Remove(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;

Powered by Google App Engine
This is Rietveld 408576698