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

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

Issue 2494123002: Spellcheck : Fix caching in cases where text is deleted. (Closed)
Patch Set: actually add the unittest file Created 4 years, 1 month 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.h
diff --git a/components/spellcheck/renderer/spellcheck_provider_test.h b/components/spellcheck/renderer/spellcheck_provider_test.h
index 3ef9d965a31d90c520cb1cc9c04216e5db463571..8d8b6fc9b6d68353ae93a488c1fa5df6aacdb7ff 100644
--- a/components/spellcheck/renderer/spellcheck_provider_test.h
+++ b/components/spellcheck/renderer/spellcheck_provider_test.h
@@ -50,6 +50,12 @@ class TestingSpellCheckProvider : public SpellCheckProvider {
const std::vector<SpellCheckMarker>& markers);
void ResetResult();
+ void SetLastResults(
+ const base::string16 last_request,
+ blink::WebVector<blink::WebTextCheckingResult>& last_results);
+ bool SatisfyRequestFromCache(const base::string16& text,
+ blink::WebTextCheckingCompletion* completion);
+
base::string16 text_;
ScopedVector<IPC::Message> messages_;
size_t spelling_service_call_count_;

Powered by Google App Engine
This is Rietveld 408576698