summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authordarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 07:28:34 +0000
committerdarin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-26 07:28:34 +0000
commitdd3eac25b4b1600058cfb88a45fdc3be5dbf52a6 (patch)
treecc7b3346263a97fc3edc901b8a4cfd552a5e7fb2 /chrome/renderer
parent036284dcd16ca460fac90dd9d26b80c32e879b05 (diff)
downloadchromium_src-dd3eac25b4b1600058cfb88a45fdc3be5dbf52a6.zip
chromium_src-dd3eac25b4b1600058cfb88a45fdc3be5dbf52a6.tar.gz
chromium_src-dd3eac25b4b1600058cfb88a45fdc3be5dbf52a6.tar.bz2
fix unit tests
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1371 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/spellcheck_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/chrome/renderer/spellcheck_unittest.cc b/chrome/renderer/spellcheck_unittest.cc
index b4c5dbc..61940cb 100644
--- a/chrome/renderer/spellcheck_unittest.cc
+++ b/chrome/renderer/spellcheck_unittest.cc
@@ -5,6 +5,7 @@
#include "webkit/glue/webkit_glue.h"
#include "base/file_util.h"
+#include "base/message_loop.h"
#include "base/path_service.h"
#include "chrome/browser/spellchecker.h"
#include "chrome/common/chrome_paths.h"
@@ -12,6 +13,8 @@
namespace {
class SpellCheckTest : public testing::Test {
+ private:
+ MessageLoop message_loop_;
};
} // namespace
@@ -50,7 +53,7 @@ extern void InitHunspellWithFiles(FILE* file_aff_hunspell,
// A test with a "[ROBUSTNESS]" mark shows it is a robustness test and it uses
// grammartically incorrect string.
// TODO(hbono): Please feel free to add more tests.
-TEST(SpellCheckTest, SpellCheckStrings_EN_US) {
+TEST_F(SpellCheckTest, SpellCheckStrings_EN_US) {
static const struct {
// A string to be tested.
const wchar_t* input;
@@ -269,7 +272,7 @@ TEST(SpellCheckTest, SpellCheckStrings_EN_US) {
}
-TEST(SpellCheckTest, SpellCheckSuggestions_EN_US) {
+TEST_F(SpellCheckTest, SpellCheckSuggestions_EN_US) {
static const struct {
// A string to be tested.
const wchar_t* input;