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

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

Issue 2848943002: Allow storing multiple replacements on SpellCheckResult (Closed)
Patch Set: Created 3 years, 8 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_unittest.cc
diff --git a/components/spellcheck/renderer/spellcheck_provider_unittest.cc b/components/spellcheck/renderer/spellcheck_provider_unittest.cc
index 478fe21a1326be3a21b8efad25ac8b88d275d4de..02684c0b1e4d6c9e94c0ba181decc05d05da421a 100644
--- a/components/spellcheck/renderer/spellcheck_provider_unittest.cc
+++ b/components/spellcheck/renderer/spellcheck_provider_unittest.cc
@@ -29,8 +29,9 @@ TEST_F(SpellCheckProviderCacheTest, SubstringWithMisspellings) {
blink::WebVector<blink::WebTextCheckingResult> last_results;
std::vector<blink::WebTextCheckingResult> results;
- results.push_back(blink::WebTextCheckingResult(
- blink::kWebTextDecorationTypeSpelling, 5, 3, blink::WebString("isq")));
+ results.push_back(
+ blink::WebTextCheckingResult(blink::kWebTextDecorationTypeSpelling, 5, 3,
+ std::vector<blink::WebString>({"isq"})));
last_results.Assign(results);
provider_.SetLastResults(base::ASCIIToUTF16("This isq a test"), last_results);
EXPECT_TRUE(provider_.SatisfyRequestFromCache(

Powered by Google App Engine
This is Rietveld 408576698