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) { |