From ab820df141e6ab45fd8a095d2f57f91df44e6c9c Mon Sep 17 00:00:00 2001 From: "darin@google.com" Date: Tue, 26 Aug 2008 05:55:10 +0000 Subject: Chrome changes corresponding to my message_loop_type CL. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1363 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/animation_unittest.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'chrome/common/animation_unittest.cc') diff --git a/chrome/common/animation_unittest.cc b/chrome/common/animation_unittest.cc index e4429cd..3f9da3c 100644 --- a/chrome/common/animation_unittest.cc +++ b/chrome/common/animation_unittest.cc @@ -11,6 +11,8 @@ using namespace std; namespace { class AnimationTest: public testing::Test { + private: + MessageLoopForUI message_loop_; }; }; @@ -81,7 +83,7 @@ class TestAnimationDelegate : public AnimationDelegate { bool canceled_; }; -TEST(AnimationTest, RunCase) { +TEST_F(AnimationTest, RunCase) { TestAnimationDelegate ad; RunAnimation a1(150, &ad); a1.SetDuration(2000); @@ -92,7 +94,7 @@ TEST(AnimationTest, RunCase) { EXPECT_FALSE(ad.canceled()); } -TEST(AnimationTest, CancelCase) { +TEST_F(AnimationTest, CancelCase) { TestAnimationDelegate ad; CancelAnimation a2(2000, 150, &ad); a2.Start(); -- cgit v1.1