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

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

Issue 2891763003: [WIP, DONOTCOMMIT] Test case for multi-result spellcheck (Closed)
Patch Set: Proposed fix 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_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(
« no previous file with comments | « components/spellcheck/renderer/spellcheck_provider_test.cc ('k') | components/spellcheck/renderer/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698