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

Unified Diff: content/shell/test_runner/mock_spell_check.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: content/shell/test_runner/mock_spell_check.cc
diff --git a/content/shell/test_runner/mock_spell_check.cc b/content/shell/test_runner/mock_spell_check.cc
index 52c7bcad6ea4efcf7057a2a4082bd00a78101f92..141dc40997d876744d04101a92871b3ee0557df8 100644
--- a/content/shell/test_runner/mock_spell_check.cc
+++ b/content/shell/test_runner/mock_spell_check.cc
@@ -114,12 +114,12 @@ bool MockSpellCheck::IsMultiWordMisspelling(
const blink::WebString& text,
std::vector<blink::WebTextCheckingResult>* results) {
if (text == "Helllo wordl.") {
- results->push_back(
- blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 0,
- 6, blink::WebString("Hello")));
- results->push_back(
- blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 7,
- 5, blink::WebString("world")));
+ results->push_back(blink::WebTextCheckingResult(
+ blink::kWebTextDecorationTypeSpelling, 0, 6,
+ std::vector<blink::WebString>({"Hello"})));
+ results->push_back(blink::WebTextCheckingResult(
+ blink::kWebTextDecorationTypeSpelling, 7, 5,
+ std::vector<blink::WebString>({"world"})));
return true;
}
return false;

Powered by Google App Engine
This is Rietveld 408576698