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

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

Issue 2086093003: Remove calls to deprecated MessageLoop methods in ui. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/gfx/animation/animation_container_unittest.cc ('k') | ui/views/animation/bounds_animator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/animation/animation_unittest.cc
diff --git a/ui/gfx/animation/animation_unittest.cc b/ui/gfx/animation/animation_unittest.cc
index 8901b69611f8b6d59f4b2602fbdcd6d673503440..3ee579c42fa6dc6601b440d40c415a2bfe918ec2 100644
--- a/ui/gfx/animation/animation_unittest.cc
+++ b/ui/gfx/animation/animation_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/run_loop.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/animation/animation_delegate.h"
@@ -88,7 +89,7 @@ TEST_F(AnimationTest, RunCase) {
RunAnimation a1(150, &ad);
a1.SetDuration(2000);
a1.Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(ad.finished());
EXPECT_FALSE(ad.canceled());
@@ -98,7 +99,7 @@ TEST_F(AnimationTest, CancelCase) {
TestAnimationDelegate ad;
CancelAnimation a2(2000, 150, &ad);
a2.Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(ad.finished());
EXPECT_TRUE(ad.canceled());
@@ -110,7 +111,7 @@ TEST_F(AnimationTest, EndCase) {
TestAnimationDelegate ad;
EndAnimation a2(2000, 150, &ad);
a2.Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
EXPECT_TRUE(ad.finished());
EXPECT_FALSE(ad.canceled());
@@ -121,7 +122,7 @@ TEST_F(AnimationTest, DeleteFromEnd) {
DeletingAnimationDelegate delegate;
RunAnimation* animation = new RunAnimation(150, &delegate);
animation->Start();
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
// delegate should have deleted animation.
}
« no previous file with comments | « ui/gfx/animation/animation_container_unittest.cc ('k') | ui/views/animation/bounds_animator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698