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

Unified Diff: chrome/renderer/spellchecker/spellcheck_provider_test.cc

Issue 11361265: [Spellcheck] Removing cruft. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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: chrome/renderer/spellchecker/spellcheck_provider_test.cc
diff --git a/chrome/renderer/spellchecker/spellcheck_provider_test.cc b/chrome/renderer/spellchecker/spellcheck_provider_test.cc
index 0762899770e8a34474a753e67ddb4cee00b9c47d..22bd6a238515b2b818590ded8c7d28864ebe15cb 100644
--- a/chrome/renderer/spellchecker/spellcheck_provider_test.cc
+++ b/chrome/renderer/spellchecker/spellcheck_provider_test.cc
@@ -6,8 +6,12 @@
#include "base/stl_util.h"
#include "chrome/common/spellcheck_messages.h"
+#include "chrome/renderer/spellchecker/spellcheck.h"
#include "ipc/ipc_message_macros.h"
+class MockSpellcheck: public SpellCheck {
+};
+
FakeTextCheckingCompletion::FakeTextCheckingCompletion()
: completion_count_(0),
cancellation_count_(0) {
@@ -27,12 +31,13 @@ void FakeTextCheckingCompletion::didCancelCheckingText() {
}
TestingSpellCheckProvider::TestingSpellCheckProvider()
- : SpellCheckProvider(NULL, NULL),
+ : SpellCheckProvider(NULL, new MockSpellcheck),
offset_(-1) {
}
TestingSpellCheckProvider::~TestingSpellCheckProvider() {
- STLDeleteContainerPointers(messages_.begin(), messages_.end());
+ STLDeleteContainerPointers(messages_.begin(), messages_.end());
+ delete spellcheck_;
}
bool TestingSpellCheckProvider::Send(IPC::Message* message) {
« no previous file with comments | « chrome/renderer/spellchecker/spellcheck_provider.cc ('k') | chrome/renderer/spellchecker/spellcheck_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698