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

Unified Diff: ui/base/animation/animation_unittest.cc

Issue 14061025: ui: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months 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
« no previous file with comments | « ui/base/animation/animation_container_unittest.cc ('k') | ui/base/animation/slide_animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/animation/animation_unittest.cc
diff --git a/ui/base/animation/animation_unittest.cc b/ui/base/animation/animation_unittest.cc
index a2321c403daeed284c404f7ec5d481359f87557e..007f92d07d49809a39932e03ce70f295b33ef316 100644
--- a/ui/base/animation/animation_unittest.cc
+++ b/ui/base/animation/animation_unittest.cc
@@ -15,7 +15,7 @@ namespace ui {
class AnimationTest: public testing::Test {
private:
- MessageLoopForUI message_loop_;
+ base::MessageLoopForUI message_loop_;
};
namespace {
@@ -73,7 +73,7 @@ class DeletingAnimationDelegate : public AnimationDelegate {
public:
virtual void AnimationEnded(const Animation* animation) OVERRIDE {
delete animation;
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
};
@@ -87,7 +87,7 @@ TEST_F(AnimationTest, RunCase) {
RunAnimation a1(150, &ad);
a1.SetDuration(2000);
a1.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(ad.finished());
EXPECT_FALSE(ad.canceled());
@@ -97,7 +97,7 @@ TEST_F(AnimationTest, CancelCase) {
TestAnimationDelegate ad;
CancelAnimation a2(2000, 150, &ad);
a2.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(ad.finished());
EXPECT_TRUE(ad.canceled());
@@ -109,7 +109,7 @@ TEST_F(AnimationTest, EndCase) {
TestAnimationDelegate ad;
EndAnimation a2(2000, 150, &ad);
a2.Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
EXPECT_TRUE(ad.finished());
EXPECT_FALSE(ad.canceled());
@@ -120,7 +120,7 @@ TEST_F(AnimationTest, DeleteFromEnd) {
DeletingAnimationDelegate delegate;
RunAnimation* animation = new RunAnimation(150, &delegate);
animation->Start();
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
// delegate should have deleted animation.
}
« no previous file with comments | « ui/base/animation/animation_container_unittest.cc ('k') | ui/base/animation/slide_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698